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

redirect to direct login on failure #3406

Merged
merged 2 commits into from Apr 2, 2024

Conversation

cmintey
Copy link
Contributor

@cmintey cmintey commented Apr 2, 2024

What type of PR is this?

(REQUIRED)

  • bug

What this PR does / why we need it:

This problem occurs when the group is private and a login is unsuccessful. So we can detect when the login fails and we on the login screen, we will redirect the user to /login?direct=1 which will prevent the automatic redirect to the OAuth login page.

This also solves an issue I found where sometimes getting a token from the IdP fails because we send a mealie token in the request.

Which issue(s) this PR fixes:

#3399

Testing

Manual

@michael-genson michael-genson linked an issue Apr 2, 2024 that may be closed by this pull request
6 tasks
@hay-kot hay-kot enabled auto-merge (squash) April 2, 2024 15:07
@hay-kot hay-kot merged commit f709d11 into mealie-recipes:mealie-next Apr 2, 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] - OAuth Infinite redirects
2 participants