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(auth): ensure oauth login respects return url #4656

Closed
wants to merge 3 commits into from

Conversation

axiomofjoy
Copy link
Contributor

@axiomofjoy axiomofjoy commented Sep 18, 2024

Ensures that OAuth2 login respects the returnUrl query parameter so that users are returned to the specific URL they were trying to access upon login. This is accomplished by using JWTs to encode the return URL inside the state parameter used by the OAuth2 authorization code flow.

resolves #4653

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Sep 18, 2024
@axiomofjoy axiomofjoy changed the base branch from main to xander/oauth September 18, 2024 04:53
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Sep 18, 2024
@axiomofjoy axiomofjoy marked this pull request as draft September 18, 2024 05:07
@axiomofjoy axiomofjoy closed this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[oauth] support returnUrl query parameter
1 participant