How to fix redirect issue using msal in angular if using hash routing strategy ?

Vishva Cipherhex 0 Reputation points
2023-01-28T13:25:50.9866667+00:00

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.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,455 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.