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 redirect uri handling at login #134

Merged
merged 4 commits into from
Nov 11, 2024

Conversation

michpohl
Copy link
Contributor

This fix addresses the issue discovered here

While the change is small - we don't grab the url from the backend anymore (it's unsafe and differs from the spec as well), but persist it when passed in from the client, and only look at the query string anymore - this introduces a breaking change, as it changes the signature of Auth.finalizeLogin.

@michpohl michpohl requested a review from a team as a code owner October 31, 2024 14:29
@michpohl michpohl changed the title Michael/fix redirect uri handling at login Fix redirect uri handling at login Nov 1, 2024
As part ofd this change, the RedirectUri type has been renamed to RedirectData, for clarity.
as we don't submit full urls anymore, we don't need to check for url correctness
They shouldn't pass in the whole Uri, just the query part.
@michpohl michpohl force-pushed the michael/Fix-redirectUri-handling-at-login branch from d1f881c to 9dabd29 Compare November 5, 2024 07:36
@michpohl michpohl enabled auto-merge November 5, 2024 20:01
@michpohl michpohl added this pull request to the merge queue Nov 11, 2024
Merged via the queue into main with commit ac13415 Nov 11, 2024
7 checks passed
@michpohl michpohl deleted the michael/Fix-redirectUri-handling-at-login branch November 11, 2024 11:52
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.

2 participants