After successful login and redirection, the execution of the routing guard is interrupted.
See original GitHub issueCore Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.26.0
Wrapper Library
Not Applicable
Wrapper Library Version
None
Description
HI,
I have a sign in page. When you visit the website without authentication, you will be redirected to this page.
When I click sign in to enter the login process and successfully authenticate and jump back to my website, there seems to be a problem with the routing guard, which makes me return to the sign in page.
I need to enter the home page after successful authentication. I don’t know how to implement it.
But in fact, the login is successful. When I visit the website again, I can get the login user information. It seems that it is not waiting for the execution of handleredirectpromise
at the routing guard.
The source code is here vue3-sample-app.zip .
MSAL Configuration
No response
Relevant Code Snippets
No response
Identity Provider
No response
Source
External (Customer)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
@zico209 Can you please provide your configuration and your routing guard implementation so I can better assist you? Have you seen our Vue3 sample, which implements a routing Guard here?
@tnorling Thank you! This is really helpful.