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

Fix OIDC infinite loop if user is not in OIDC_USER_GROUP #3487

Conversation

cmintey
Copy link
Contributor

@cmintey cmintey commented Apr 17, 2024

What type of PR is this?

  • bug

What this PR does / why we need it:

There is another infinite redirect bug when a user is not in the proper group, resulting in a 401 when attempting to get a Mealie token. The reason for the redirect is that we have a proper access and id token so we keep trying to authenticate. Now, if we receive an error from Mealie while getting a token, we'll completely reset the auth state which should prevent the redirects.

Which issue(s) this PR fixes:

Fixes #3483

Testing

Manually, E2E test

@michael-genson michael-genson enabled auto-merge (squash) April 19, 2024 00:11
@michael-genson michael-genson merged commit c6f5b62 into mealie-recipes:mealie-next Apr 19, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

[BUG] - OIDC infinite loop if user is not in OIDC_USER_GROUP
2 participants