Questions tagged [msal-angular]

172 questions
1
vote
1 answer

LoaderService issue using MSAL Service for login in Angular

I'm developing an Angular app that requires MS credentials for get logged in. Furthermore I'm using an Http Interceptor for showing up a loader component when any HttpClient's call is in use. My problem here is when I log into my app, the calls that…
1
vote
0 answers

msal angular get a picture of the user

I'm using with azure/msal-angular Library. and I'm trying to get a picture of the user profile. This is me code in app.module.ts MsalModule.forRoot( new PublicClientApplication({ auth: { clientId: 'xxx', authority:…
liav hadad
  • 11
  • 1
1
vote
1 answer

How can I use idp_access_token returned by azure b2c service

I have setup a azure ad b2c service to sign up/ sign in my users and have used third party identity providers google and microsoft. After successful logging in, I get idp_access_token back from b2c service. Can I use this token to directly connect…
rr14
  • 43
  • 5
1
vote
1 answer

Jest unit tests failing with MsalModule does not have a module def (ɵmod property)

I suspect this might be related to Ivy and @azure/msal-angular [es2015/esm2015] being compiled with target. I have been trying to run jest unit tests on a project that imports MsalModule and I am getting that error.
1
vote
1 answer

React MSAL: how to logout from all devices?

We have an application where we use msal-react for login/logout. Is there a way to log out of all devices with which a user is logged in when logging out? Unfortunately, nothing can be found in the official documentation about this. We also have a…
1
vote
1 answer

Angular 13 MSAL 2.0 & .NET core API: Bearer error="invalid_token", error_description="The signature is invalid"

To isolate the problem, I have created the famous Visual Studio default "weather forecast" .NET core project with angular and tried to make the Angular ClientApp authenticate using a bearer token. I have created a similar project two years ago with…
1
vote
0 answers

app roles not present in returned claims after authenticating from Azure AD B2C using Angular

i have an angular app with version 2.2 of msal-angular i have registered 2 apps on azure. the UI app and the api app in the ui app manifest i created 2 app roles. and form the UI i was able to assign one of the app role to one of the user. when i…
1
vote
1 answer

MSAL - MsalGuard on Redirect URI - getting into redirect loop

I'm implementing msal in my angular application and I'm using msal-v1 library. I have taken angular-7 sample from the documented samples and tried implementing the below code in my enterprise application. I have added popup as false in…
RealSteel
  • 1,871
  • 3
  • 37
  • 74
1
vote
1 answer

msal angular - continuous reloading while authentication using MsalGuard on routing

I'm trying to implement msal-v1 in my angular application to authenticate my enterprise application. There are few routes in my application like below const routes: Routes = [ { path: '', component: HomeComponent, canActivate: [MsalGuard] }, {…
RealSteel
  • 1,871
  • 3
  • 37
  • 74
1
vote
0 answers

Can I use 2 msal-angular login with different clientID and authority in one application?

Can I use 2 msal-angular login with different clientID and authority in one application? I can login with msal to my app and i can login without msal. When i am in aplication there is some functional for which you must login with msal but to another…
1
vote
0 answers

Unable to Append Dynamic Parameter in App Registration Redirect URI Azure AD

have implemented a routing with parameter in Angular Routing and declared as { path: 'xyz-detail/:id', component: xyzDetailComponent, canActivate:[MsalGuard], canDeactivate: [CanDeactivateGuard] }, i am using MSAL Angular Plugin and tring to add…
1
vote
1 answer

How to create events on outlook using microsoft graph api after login with sso

I have a app that fetches the token after sso login with Microsoft. I want to create event for using that token. But it gives an error when I use that token to create an event. The token that is generate by the graph explorer works fine but the…
1
vote
1 answer

Issue logging into Azure B2C Angular application using @azure/msal-angular

I'm having an odd error logging my app into B2C using auth code flow with PKCE using the @azure/msal-angular library. I'm redirecting back to the B2C login, get redirected back to my app, my app successfully gets a token back from the token api but…
cobolstinks
  • 6,801
  • 16
  • 68
  • 97
1
vote
0 answers

Angular MSAL v2 redirect with unexpected parameters

I'm upgrading my Angular 10 project with Active Directory Authentication (MSAL) from v1 to v2. The configuration seems to be correct since I can log in without any problems. BUT, when I'm logged in, I should be redirected to a specific page (here…
Ferenc
  • 39
  • 7
1
vote
0 answers

How to get User within a [AllowAnonymous] controller and AzureAdB2C?

I'm using msal for angular and AzureAdB2C for authentication/authorization. I would like to get the Authenticated User within a controller if the User is logged in. I'm using the following code snippet which works with the [Authorize] attribute and…