-
Notifications
You must be signed in to change notification settings - Fork 694
Hash routing and append of access_token not working #477
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
Comments
Hi, the good thing about using the hash-fragment is, that it will never be send to the server. By definition, it stays in the browser. Regarding the issue with hash routing, the following link could be interresting: Wishes, |
The hash strategy does not work for us, as we do not want to set the |
I have the same problem. I implemented the implicit flow. It all works fine when i am using
This is my implementation of it and it does not work! After the login i get redirected to my application and i get following url |
There's not a great satisfactory built-in library solution perhaps for older versions (e.g. v4 mentioned in the question), so if you're on one of those versions and landed here you might need to look for workarounds, unfortunately. For newer versions, I saw Manfred mention in #622 mentioning the intention to move to the "history" API, where this issue could be tackled. Closing the issue for now, since it's not seeing any other substantial activity. (Let us know if there's a reason to re-open it, or leave additional comments if folks have tips and workarounds for those older versions.) |
We are using version 4.0.3. as we are not yet able to upgrade to angular 7.
When we want to use hash routing in our angular application, this framework redirects appending the access_token using a
&
instead of a#
.Does anyone knows why it does that ?
We are now getting the following error :
Cannot match any routes. URL Segment: [segment]&acces_token
The only way to fix this, is to postfix the redirect url with a
?
...Is there also a way to not show the access_token in the url? We actually don't want to show that
The text was updated successfully, but these errors were encountered: