Questions tagged msal

Explore the latest questions and answers asked by our top developers.

Msal interaction in progress error in at MsalService.acquireTokenRedirect if dont use MsalGuard

i am not getting issue for below route. { path: ”, component: HomeComponent, canActivate: [ MsalGuard ] } I am getting issue for below route without MsalGuard. Need alternate for using MsalGuard because i cant use guard { path: ”, component: HomeComponent } Source: Angular Questions

By user2569172
Categorized as angular, azure, msal, msal-angular, msal.js Tagged , , , ,

In my angular application we are using msal v2 authentication code flow for mock data testing we need to disable/skip login in mock environment

Earlier in our application we were using oauthidc for authentication implicit flow where we can mock token and bypass login but post implementation of msal v2 the mock is failing as the user is prompt for login. We need to bypass this login and test the mock data Source: Angular Questions

By Rahul Nambiar
Categorized as angular, authentication, msal Tagged , ,

Msal-Angular : Handle Cancel event

How can we handle Cancel event, when coming from third party to Home App in Angular? How to check from which policy it is coming back. Policy like edit profile, Reset-Password, Change Phone? In Console we are getting Error : access_denied = ‘AADB2C90091: The user has cancelled entering self-asserted information. Correlation ID: 7a35d452-cc14-46aa-9b9a-9779c8506c5d Source: Angular […]

By Vin
Categorized as angular, msal, msal-angular, reactjs Tagged , , ,

How can I add custom Policy for forgot password and change phone number in azure msal?

Currently we are using @azure/msal-browser package for msal signin by passing this config and it works fine for signIn but now we need to add custom policy for forgot password and change phone no. But I didn’t able to find any way how to pass custom policy in config . Here is my current config […]

By Sahil Siddiqui
Categorized as angular, azure, azure-functions, msal Tagged , , ,

Angular access to Azure Function with AAD authentification

I have an application with Angular in front and Azure Functions as Backend. For protecting the Frontend I use the official MSAL V2 library ( My Azure Function app should be also secured in this way. To achieve this, i followed the following tutorial: What I did? In short, I did the following: created […]

By Nico Schuck
Categorized as angular, azure, azure-functions, msal Tagged , , ,

How to resolve this "Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API"

I am facing interaction is currently in progress error while trying to upgrade my angular application from MSAL 1.0 to MSAL 2.0. Can anyone help me how to resolve this issue? Please find the below code Note: I have upgraded my msal version to 2.0 and in package.json it got modified. In app.component.ts this.authservice.initializeAuth(); if(ConfigService.settings.AppSettings.userName!==undefined){ […]

By Nivedhini Muralidharan
Categorized as angular, msal Tagged ,

How to reinitialise Angular HTTP_INTERCEPTORS after loading

I have a question on how to re-initialise Angular providers declared in the app.module.ts. I’m trying to build an application based on the Microsoft MSAL 2.x Angular12 exemplar project that offers both B2B and B2C authentication flows. The Microsoft MSAL Angular exemplar uses HTTP_INTERCEPTORS and MSAL_INSTANCE which are created on initial application loading. However, I […]

By Aiden Dipple
Categorized as angular, azure, msal Tagged , ,

Facing some errors when integrating angular 8 application with Azure SSO

I have integrated my angular 8 application with azure SSO as there are 2 ways to integrate for sign-in with popup or redirect() I am not facing any issue with popup but when I try to integrate with redirect I am getting below error I tried searching for similar issue online to find solution but […]

By Hitesh
Categorized as angular, azure, msal, msal-angular, node-modules Tagged , , , ,

How to get Microsoft MSAL angular12-sample-app working in StackBlitz?

I have a question that I want to ask help for regarding an Angular app that offers both B2B and B2C authentication flows. I want it to be based off the Microsoft MSAL Angular exemplar project that uses HTTP_INTERCEPTORS and I want to have a StackBlitz example to illustrate clearly what I’m trying to achieve. […]

By Aiden Dipple
Categorized as angular, msal, stackblitz Tagged , ,

MSAL v1 after logout click on login button it is directly login without asking credential

I’m using the below version of angular and MSAL for login flow, "@angular/cli": "~6.0.8", "@azure/msal-angular": "^1.1.2", "msal": "^1.4.4" issue: once I click on logout it is taking me to log out screen which is current behave but when I click on the login button I’m calling the loginRedirect() method for login but it directly login […]

By mitul
Categorized as angular, azure-devops, msal, msal-angular Tagged , , ,
1 11

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us