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

Only redirect after refresh failure in middleware auth mode #155

Merged
merged 5 commits into from
Jan 10, 2025

Conversation

PaulAsjes
Copy link
Contributor

Changes our previous behaviour slightly where we would redirect if a refresh failed. Unless we're in middleware auth mode, the page itself should decide on whether a redirect is needed as it could contain content that's meant to be viewable when a user isn't logged in.

@PaulAsjes PaulAsjes mentioned this pull request Dec 27, 2024
@PaulAsjes PaulAsjes requested a review from cmatheson January 2, 2025 12:55
@PaulAsjes PaulAsjes merged commit e695170 into main Jan 10, 2025
3 checks passed
@PaulAsjes PaulAsjes deleted the pma/middleware-auth-redirect branch January 10, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants