How to fix redirect issue using msal in angular if using hash routing strategy ?
I am using Microsoft Azure AD to authenticate the user and redirect back to my angular application with response.
Here in redirect url i am giving http://localhost:4200/demo/#/abc here abc is component where i want user to redirect after successful authentication.
Now I am able to get response but redirect is not working instead coming on login page.
Note : I am using handleRedirectObservable() method instead of MSAL redirect component.
Please help me so that i can redirect my user back to angular application with hash in the url and also get response i.e token API called.
Have you looked into this sample for MSAL using handleRedirectObservable() ? If your page is protected by MSAL Guard and you call handleRedirectObservable , you may receive a null response as described here. The redirect URI for your app should be set to a page that is not protected by the MSAL Guard.
Sign in to comment