Skip to content

Fix return_to being ignored after OAuth login#4916

Open
barnabasdomozi wants to merge 1 commit into
Ericsson:masterfrom
barnabasdomozi:fix_login_oauth_vue
Open

Fix return_to being ignored after OAuth login#4916
barnabasdomozi wants to merge 1 commit into
Ericsson:masterfrom
barnabasdomozi:fix_login_oauth_vue

Conversation

@barnabasdomozi

Copy link
Copy Markdown
Collaborator

Persist the return_to query parameter in localStorage before redirecting to the OAuth provider, since the browser navigation loses query params. After successful OAuth callback, read it back and navigate accordingly instead of always redirecting to the app root.

Also set userName to null on OAuth login so the actual username is fetched from the server via getLoggedInUser instead of using a placeholder string.

Persist the return_to query parameter in localStorage before redirecting
to the OAuth provider, since the browser navigation loses query params.
After successful OAuth callback, read it back and navigate accordingly
instead of always redirecting to the app root.

Also set userName to null on OAuth login so the actual username is
fetched from the server via getLoggedInUser instead of using a
placeholder string.
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.

1 participant