Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is an issue with gated content #479

Open
kruncher opened this issue Jul 20, 2021 · 0 comments
Open

There is an issue with gated content #479

kruncher opened this issue Jul 20, 2021 · 0 comments

Comments

@kruncher
Copy link

Given a redirects file like the following:

/*      /cy/:splat  302     Role=member Language=cy
/*      /en/:splat  302     Role=member

/en/*   /en/:splat  200!    Role=member
/en/*   /login  401!

/cy/*   /cy/:splat  200!    Role=member
/cy/*   /login  401!

/*      /login      401!

And a very simple login page with the Netlify Identity Widget; the following happens.

  1. Attempt to access a gated URL (i.e. /en/test).
  2. The login page appears as expected.
  3. Login using the Netlify Identity Widget.
  4. Refresh the page.
  5. Page continues to show 401 redirect to login page; however all other gated URLs start to work as expected.

In addition to the above; when the user logs out using the Netlify Identity Widget; they can continue to refresh gated URLs and see gated content even though it should be showing 401 redirects to the login page.

Other people appear to be experiencing the same issue: https://answers.netlify.com/t/weird-behavior-by-netlify-identity-widget-and-role-based-access-control-redirects/32413

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant