Questions tagged [msal-angular]
172 questions
0
votes
1 answer
Azure AD - Using Graph API access token from Angular SPA in C# Web API
It looks like I'm missing something fundamental when it comes to Azure AD Enterprise applications.
I have an application running as Angular SPA with a backend ASPNETCore API that have 2 separate App Registrations in Azure AD. MyAPI is exposed as a…

Kim Raaness
- 452
- 3
- 9
0
votes
1 answer
how can I force users to use two factor authentication with MSAL angular?
I am trying to implement two-factor sign in using msal-angular, I want to force users to use two factor authentication, preferably Authenticator App.
So far I only managed to configure it the way users only required to enter password.
my…

Michael Razgoner
- 124
- 1
- 8
0
votes
0 answers
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 MsalGruad. Need alternate for using MsalGuard
{
path: '',
…

user2569172
- 23
- 4
0
votes
0 answers
Msal-angular : How to Fetch latest payload after edit profile
I am facing issue with how to fetch updated user profile information. Right now in chrome Inspect : Application Session storage is showing both information, old first name, last name and after edit profile updated first name, last name. My below…

Vin
- 15
- 7
0
votes
1 answer
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…

hitesh
- 1
- 1
0
votes
1 answer
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…

Mitul
- 27
- 1
- 6
0
votes
1 answer
How do I know that I already single sign-on in angular application?
I use https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/docs/v2-docs/configuration.md to setup a single sign-on in angular. So if I click the sign in button then I can login.
My question is that if in other…

Bigeyes
- 1,508
- 2
- 23
- 42
0
votes
1 answer
Using MSAL for Angular and NGXLogger
I recently upgraded my Angular application to use MSAL for Angular V2.X.
https://www.npmjs.com/package/@azure/msal-angular
My app uses NGXLogger for logging.
https://www.npmjs.com/package/ngx-logger
I am getting these errors when I run my app:
ERROR…

Datum Geek
- 1,358
- 18
- 23
0
votes
1 answer
MSAL - No Tokens Available when Using IneractionType.Redirect
In our application, we authenticate users using AAD, but we authorize users using our own User and Role tables in our local SQL database.
With the old ADAL library, we were able to return users to our callback url, then from there we would grab the…

FunkMonkey33
- 1,956
- 2
- 16
- 24
0
votes
1 answer
Get MSAL Interceptor Configuration from API
For a Static Web App (SPA) I have configured one endpoint /api/settings. This endpoint does not require authentication and returns a list of other endpoints that are needed in the application. Now the problem is, these endpoints returned by…

Vincent Bitter
- 1,000
- 1
- 6
- 15
0
votes
0 answers
how to catch msal login failure event in 2.x or no cache authority error
I am using 2.x MSAL Angular library and facing issue while logging in after user has changed his password with the error : no cache authority found. I want to catch this event and redirect user to login screen but unable to find any way. Please find…

Ankush Daga
- 31
- 4
0
votes
1 answer
Cannot Authenticate with Azure B2C Using MSAL with Custom Protocol due to Missing 'profile' Scope
Good Afternoon,
I am currently trying to authenticate our Angular client application using B2C and the following versions of the msal library:
"@auth0/angular-jwt": "5.0.2",
"@azure/msal-angular": "2.0.0",
"@azure/msal-browser":…

Robert
- 11
- 2
0
votes
1 answer
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:…

Iwoo
- 147
- 2
- 12
0
votes
1 answer
How to diagnose Microsoft Identity authentication failure?
I have an ASP.NET Core 3.1 web API application that is protected by Azure Authentication. I also have an Angular 11 application that calls the web API.
They work fine on our integration environment. But authentication fails on the test…

Jesús López
- 8,338
- 7
- 40
- 66
0
votes
1 answer
Msal-Angular v1 - acquireTokenPopup/LoginPopup returns an Access Token with Insufficient Privileges even after granting admin consent
We are receiving an invalid accessToken with empty scopes on the first grant of admin consent. If the user retries again - we call the acquireTokenPopup and the accessToken becomes valid.
Reproduction Steps
Step 1: Admin clicks the log in button…

smiranda
- 23
- 3