Questions tagged [msal-angular]
172 questions
0
votes
1 answer
Unable to authenticate using Angular MSAL library after upgrade to version 3.0.0-beta.0
After upgrading my app from Angular v15 to v16 and from msal-angular 2.5.3 to 3.0.0-beta.0, I am no longer able to authenticate against Azure AD B2C. I see the following exception in the console when attempting to execute MSAL…

ebhh2001
- 2,034
- 4
- 18
- 27
0
votes
1 answer
How to get thirrd party oAuth v2 token From UI using msal-angular
Consider this scenario:
I have an application which is registered in Azure AD and under that in API permissions one API is configured. I want to call that API but it is not deployed in our namespace and is a separate application. So I need to fetch…
0
votes
0 answers
Allowing all accounts when using MSAL in an Angular App and Web API
I'm trying to allow all MS users to be able to log into my Angular app and have permissions that allow the Angular app to communicate with my web api as that user.
In my Azure Portal I've registered two applications.
TulipseWebApi
Supported account…

SheppardDigital
- 3,165
- 8
- 44
- 74
0
votes
0 answers
MSAL Angular redirect to "/#code=..." after login popup or redirect with msalGuard
I try to use MSAL 2.5.8 in my Angular 11 project but after login using canActivate: [MsalGuard], it redirect the popup to "http://localhost:4200/#code=0.AX..."
I followed this github to implement msal into my project
app.module.ts
export function…

Cédric
- 1
0
votes
1 answer
Auth guard popup in angular is blocked by the browser
In an Angular project, I'm using the canActivate method in the routing to restrict access to a page. I'm using the popUp function from the @azure/msal-browser library to verify the user. When entering the page, the browser blocks the pop-up by…

Jenath
- 3
- 3
0
votes
1 answer
Switch AccessToken with idToken (MSAL)
I'm facing an issue with validating the AccessToken received from Microsoft in my Angular 16 frontend application using MSAL 3 for authentication. Although I can successfully obtain the tokens, I'm encountering problems when it comes to validating…

Heiße Marone
- 3
- 1
0
votes
0 answers
Azure AD - Server side check if user logged in to the Azure AD using MSAL Angular
I've managed to add Azure AD login to my angular application using MSAL Angular package.
I can simply use the following code in my front end login component (Typescript side) to check if the user has logged in,
const details =…

Indika
- 188
- 1
- 9
0
votes
0 answers
Azure B2C not calling logout endpoint of openid identity provider
I have two Azure AD tenants, a primary one and a B2C one. The B2C tenant is setup to use the primary Azure AD as an openid connect IDP for reasons described here.
I am using the msal-angular library on the client app. And I can successfully login…

spectacularbob
- 3,080
- 2
- 20
- 41
0
votes
0 answers
BrowserConfigurationAuthError
Though I have updated store auth cookies to true sill I am getting this issue,Here is my code
{
"clientID": "Account GUID",
"authority": "https://login.microsoftonline.com/36da45f1-dd2c-4d1f-af13-5abe46b99921",
"redirectUri":…

mona
- 1
0
votes
0 answers
How to sign in without redirecting to Microsoft page for account selection?
when I'm try to sign in, I'm redirected to a Microsoft page for account selection, and I want to know how to sign in without being redirected. I provide my screenshot of Microsoft redirection for reference .
I'm trying to sign-in my web application…

user19141723
- 21
- 2
0
votes
1 answer
Azure AD B2C - ASP.Net Core Angular Application - Error while acquiring token for downstream Web API
I have a SPA that uses Azure AD B2C and MSAL libraries. SPA is part of a ASP.Net Core Angular Application. So, the application has .Net Controller that connects to the other azure hosted Web APIs. When angular code makes a HTTP call to the…
0
votes
1 answer
Angular with MSAL authentication - gets AADSTS50011 URI does not match the redirect URIs
I have a problem with authorization in my Angular application. It works ok, but when I enter via the main URL, but if I start from a subpage, and token expires, I get the following error:
AADSTS50011: The redirect URI 'https://xxxx/subpage'…

andrew.fox
- 7,435
- 5
- 52
- 75
0
votes
0 answers
Slow msalSubject$ subscription. Is there a way to get logged user info faster after redirect?
I'm using login redirect with msal library in Angular. After redirecting and successfully login I'm redirected back to my app login page but it takes so much time to get the subscription result from this.msalBroadcastService.msalSubject$ in order to…

Yordan Georgiev
- 65
- 5
0
votes
1 answer
Angular APP_INITIALIZER application configuration initialized slowly
I am using Angular 8 . My AppModule has config like so
{
provide: APP_INITIALIZER,
useFactory: initConfig,
deps: [AppConfigService],
multi: true,
}
with factory function like
export function initConfig(appConfig: AppConfigService) {
return () =>…

harsha kumar Reddy
- 1,251
- 1
- 20
- 32
0
votes
0 answers
angular application stopped loading at the auth action
the MSAL for Angular library is in use with the Azure AD B2C custom policy. In some specific cases, for example when opening browser with restored session and logging in, the application stops loading at the auth controller action.
The exact steps…

Semen Shekhovtsov
- 802
- 6
- 29