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

Oauth # hash based redirects #1672

Closed
ivankostic85 opened this issue Nov 9, 2019 · 1 comment · Fixed by #1676
Closed

Oauth # hash based redirects #1672

ivankostic85 opened this issue Nov 9, 2019 · 1 comment · Fixed by #1676

Comments

@ivankostic85
Copy link

Hash-based redirects are not possible.
I'm tried to redirect to Vuejs frontend with Vue-router (history) in hash mode. It's working when redirecting to the landing page but not to the dashboard route.
This is a URL I'm getting is:
www.sitename.com/#/dashboard#access_token=eyJhbG...

I'm looking solution to customizing the getRedirect method of the oAuth strategy. I'm not sure how to do that, maybe sending authentication result in JSON?

@daffl
Copy link
Member

daffl commented Nov 11, 2019

This has been improved in v4.3.11. It will now redirect to www.sitename.com/#/dashboard?access_token=eyJhbG.... The access_token=eyJhbG... part needs to be in the hash in order for the client to retrieve that information unless you customize it yourself.

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 a pull request may close this issue.

2 participants