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

auth: Validate redir on return from auth #3114

Merged
merged 4 commits into from
Jun 21, 2023

Conversation

mastercactapus
Copy link
Member

Description:
This PR adds additional validation on the login_redir cookie before issuing a redirect on successful login. The added validation is identical to the validation performed before setting the cookie value initially.

Describe any introduced user-facing changes:
There are no changes in behavior: in user flows, the validation happens before the cookie is set. However, invalid cookie values will now be rejected.

Additional Context

  • A recent integration test (oidc) validates that authentication works as it did before.

Copy link
Collaborator

@tony-tvu tony-tvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mastercactapus mastercactapus merged commit 5381556 into master Jun 21, 2023
6 checks passed
@mastercactapus mastercactapus deleted the validate-redir-on-return branch June 21, 2023 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants