Questions tagged msal.js

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
Published
Categorized as angular, azure, msal, msal-angular, msal.js Tagged , , , ,

MSAL Angular MsalGuard configuring logout

I am doing a POC on MSAL implementation on our Angular app. Requirements: The user has to login once a day. When he visits more than once, he is to be taken directly to the app with no login interaction. The auth flow is only required for authentication and not authorization (no need for access […]

By puterBoy
Published
Categorized as angular, msal, msal-angular, msal.js Tagged , , ,

MSAL Angular MsalGuard configuring local storage clear on token expiry

I am doing a POC on MSAL implementation on our Angular app. Requirements: The user has to login once a day. When he visits more than once, he is to be taken directly to the app with no login interaction. The auth flow is only required for authentication and not authorization (no need for access […]

By Senthamizh
Published
Categorized as angular, msal, msal-angular, msal.js Tagged , , ,

Getting logged out after refreshing page or restarting angular app, MSAL service

I have integrated Azure Active Directory with MSAL in my angular application, So everything works fine until the page is refreshed. I mean when I start my application, I go with the flow of Login, then I get user email and other details after completing the Login process but when I copy the URL and […]

Why does MSAL.js return CORS header is missing

MSAL.js keeps returning the following errors: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://webapi.azurewebsites.net/api/order. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://webapi.azurewebsites.net/api/order. (Reason: CORS request did not succeed). My Back-end is hosted in Azure and is also registered […]

Is there any way to get logged in user azure subscription Id’s using @azure/msal-angular?

I am using @azure/msal-angular to authenticate user. I have done it smoothly as in response i am getting id_Token, access_Token and tenant Id. Now i need to get logged in user’s azure subscriptions. Is there any way to do it using msal or azure is providing any java script libraries through which i can get […]

By bilal khan
Published
Categorized as angular, azure, javascript, msal.js Tagged , , ,

Scopes Does Not Exist on type MsalGuardAuthRequest

I have been using Msal for logging in on my application, but recently my Angular app is no longer building with the current configuration. I am using a renewTokenSilent() function where the msalService is being used to check if the page should be refreshed. renewTokenSilent(): Observable<AuthenticationResult> { const account = this.msalService.instance.getAllAccounts()[0]; const silentRequest: SilentRequest = […]

By Jeremy
Published
Categorized as angular, msal, msal.js Tagged , ,

Token call are block in hidden iframes Angular 8+

Configuration: "@azure/msal-angular": "^1.1.2", "msal": "^1.4.4", "rxjs": "~6.4.0", Angular 8+ export const msalConfig: Configuration = { auth: { clientId: environment.msalModule.clientID, authority: environment.msalModule.authority, redirectUri: environment.msalModule.redirectUri, validateAuthority: true, postLogoutRedirectUri: environment.msalModule.redirectUri, navigateToLoginRequestUrl: true }, cache: { cacheLocation: ‘localStorage’, } } export const angularConfig: MsalAngularConfiguration = { popUp: false, consentScopes: [ ‘user.read’, environment.msalModule.appScope ], protectedResourceMap: protectedResourceMap } I have Angular […]

By Iwoo
Published
Categorized as angular, msal-angular, msal.js Tagged , ,

Angular msal.js secure public API

I’ve been researching security for APIs and an angular website and using Microsoft’s samples for securing applications using Azure ADB2C and Azure AD. I’ve figured out how to secure a website where a user logs in using Azure AD B2C and the MSAL.js library within Angular. I have a few public facing APIs that I […]

By AnnR
Published
Categorized as angular, api, azure, msal.js, security Tagged , , , ,

How to use refresh token coming from acquiretoken silent in MSAL-browser

I am trying to acquire token by aquiretokensilent after login and then have to do authorization in multiple modules.As documentation of MSAL-browser acquiretokensilent will automatically take care of refresh token.In network tab also i am able to see refresh token.But how to use it, does it automatically replace access token or do i need to […]

1 2 3 4

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
faq