Questions tagged [msal-angular]
172 questions
1
vote
2 answers
Angular 16 and MSAL 3.0: BrowserAuthError: native_broker_called_before_initialize
I'm building a angular 16 spa. When I try to add Msal 3.0 (beta) it throws a BrowserAuthError: native_broker_called_before_initialize Error. I tried to "migrate" the Msal Tutorial from Microsoft to Standalone Components. Has someone an complete…

TheLegend27
- 73
- 1
- 10
1
vote
1 answer
Angular 13 - BrowserAuthError: interaction_in_progress: Interaction is currently in progress
I'm getting the following error when logging out and immediately trying to log back in. Only closing the browser seems to fix the issue. So I'm assuming it's some sort of caching issue but I can't seem to figure out a way around it.
Here is the…

CStreet
- 365
- 1
- 5
- 20
1
vote
0 answers
Ionic 7 and MSAL Authentication not running in android studio emulator
I have tried ( https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-angular-auth-code ) in ionic 7+capacitor and it works without any hassle when i do ionic serve.
However, when I run the same in android emulator it…

Manu88
- 33
- 5
1
vote
1 answer
How to bypass MSAL interceptor conditionally in Angular
I have an application that so far uses username and password authentication to get a custom JWT token from the backend. Once I got the token, I use my custom interceptor to add it to the headers:
@Injectable()
export class JwtInterceptor implements…

Kamil
- 485
- 1
- 10
- 24
1
vote
2 answers
AADB2C90080: The provided grant has expired. Please re-authenticate and try again
We are using azure/msal-angular v2.3 with ADB2C Custom policies having MFA enabled with either Phone or Email method.
Many LIVE users are reporting issues while logging in.
At times they need to do MFA twice (at times thrice) to get into the…

Ankush Daga
- 31
- 4
1
vote
0 answers
Redirect to request URL after msal token validation
Below is the routing module, After clearing cache when I try to access page with direct url (locahost:4200/create) it is being redirected for microsoft token validation after successful token validation it's being redirected to home instead of…

user15814390
- 21
- 5
1
vote
1 answer
performanceMeasurement.startMeasurement error when using @azure-msal-angular for Microsoft AD authentication
I was trying to implement Microsoft Active Directory authentication in simple Angular application following the instruction: Tutorial: Sign in users and call the Microsoft Graph API (...)
When using loginPopUp() or loginRedirect() methods from…

PabloK
- 11
- 2
1
vote
0 answers
Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API
I have this error in iPhone Mobile devices only when trying to login into the angular app using @azure/msal-angular and @azure/msal-browser. while it's working fine for Android and other devices. The login data returns correctly but the exception is…

Engr Ejaz Ashraf
- 11
- 1
1
vote
0 answers
Store external token using msal-angular
I have an angular web applicaton using Azure AD B2C for access control.
I have a different Android application that use the same authentication system.
Currently, the Android App can open the original web application, but it requires the user to log…

Robbie Matthews
- 1,404
- 14
- 22
1
vote
1 answer
Single Sign Out in Azure AD B2C using Custom policies not working as expected
We are trying to implement SSO Azure AD B2C using Custom policies. We have a single App Registration with 2 redirect URIs for 2 Single Page Applications. The Single Sign In Process is working as expected. But we are facing an issue with Single Sign…

sajna m nair
- 13
- 2
1
vote
0 answers
using HashLocationStrategy and redirectToLogin in MSAL
i try to redirect to the MsalGuard secured url after login with msal redirect login while using HashLocationStrategy in angular.
I activated navigateToLoginRequestUrl: true in the Module configuration, but MSAL always redirects back to /.
I also…

Andresch Serj
- 35,217
- 15
- 59
- 101
1
vote
1 answer
What is the best way to obtain a Microsoft Graph API token through an Azure B2C logged in user so to act upon the users context
From the documentation it seems that using an application that is in the B2C tenant and thus hosts user accounts that there is no way to directly access Microsoft Graph API via a logged in user per their own context.
I want to establish the use case…

Christian Matthew
- 4,014
- 4
- 33
- 43
1
vote
1 answer
Properties do not exist on type 'MsalService'
I'm encountering some issues when trying to build my program. I started implementing the Azure AD authentication on my interface and it's working fine locally. However, I see some errors when I'm deploying it. Thanks for any…

Skairipa
- 13
- 4
1
vote
0 answers
MSAL angular login multiple redirects
I'm trying to use MSALv2 for my angular 14 app. I followed the guide on Microsoft's page for MSAL login and logout works fine but whenever I login, I get forwarded to the login page at least 2 times and then finally to the previous route.…

tonylex
- 11
- 1
1
vote
0 answers
Issue with accessing azure B2C custom page layout hosted in AWS S3
My team is having a 'random' issue to where certain users are getting the error below when trying to run one of our b2c userflows. The userflow works 95% of the time, but 'randomly' a user (existing or new) will get this issue and be unable to sign…

CCoggin
- 11
- 1