Questions tagged [msal-angular]

172 questions
0
votes
1 answer

NullInjectorError: No provider for MsalService

I have added Azure SSO in my application, but when trying to create PR, the build is failing with an error, NullInjectorError: No provider for MsalService! I have gone through the pipeline looks like this command ng test --watch=false…
0
votes
0 answers

How to allow logins from multiple B2C policies using MSAL Angular

We are looking at implementing a impersonation flow to our Angular application. Currently we are using a custom sign-in sign-up policy using local accounts. The requirements are to be able to login via Azure AD (single tenant) then impersonate a…
0
votes
0 answers

how to get share point list data in angular using MSAL login token

I added the scope of msal still able to login to the system but get unauthorized exception while access the SharePoint list endpoint
bvkumar67
  • 1
  • 2
0
votes
1 answer

issue on uninstalling @azure/msal-angular from Angular project. BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules

My project was using @azure/msal-angular. I uninstalled the library and removed all the related imports. On uninstalling the library my build and ng s is failing and showing following error. Kindly help on this BREAKING CHANGE: webpack < 5 used to…
S8321
  • 37
  • 1
  • 6
0
votes
1 answer

Best way to authorize with AzureAD app registration: roles or group claims when only one AD group is required for access

I have an AzureAD application registration for my front end SPA. I am using Angular with Microsoft’s @azure/msal-angular v2 authentication library. My app registration has all the necessary redirect URIs and configured for proper OAuth2 OpenID…
J-man
  • 1,743
  • 3
  • 26
  • 50
0
votes
1 answer

Upgrading from Azure MSAL to MSAL 2.0

Trying to upgrade from the @Azure/MSAL library to the latest v2 of MSAL.js 2.0 but getting the following error: Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type…
sevenam
  • 592
  • 1
  • 8
  • 21
0
votes
1 answer

Delegate authentication to the B2C Active Directory and not to all users in Angular 14 with MSAL

I have created an Active Directory in Azure and user management must be managed with a web application in Angular 14 with rxjs7 and with MSAL-Angular v2 and some APIs in Nodejs. Now in this section of code, in the authority…
0
votes
1 answer

Missing BroadcastService in @azure/msal-angular@2.X.X

I'm trying to update MSAL Angular v1 to v2 now, but have had some problems. One of them is that BroadcastService is missing in V2. I have followed this guide, but none mentions what an equivalent of BroadcastService is in…
Yoo Matsuo
  • 2,361
  • 2
  • 28
  • 41
0
votes
0 answers

MSAL redirects when web api is called in Angular Application

I am using B2c with an Angular application hosted in Azure Storage Static Website and an Angular functions application. Using the code below I can see that I appear to be logged in. Where isLoggedIn = true. await…
Xander
  • 9,069
  • 14
  • 70
  • 129
0
votes
0 answers

MSAL Interceptor: How to retrieve token claims right after login before initializing components?

I have an Angular app authenticating against Azure AD. I get a bearer token that is being used to authenticate and authorize API calls. That works fine. However, I need to access the group and role claims in the token BEFORE initializing any…
Aileron79
  • 523
  • 5
  • 27
0
votes
1 answer

Authenticating using Azure Active Directory with Angular 13 and .NET core web api

I have a .NET CORE 6 Api for the back end and a Angular 13 for the front end. Currently I am trying to authenticate via Angular using msal and then call the protected .net core API. I think I am missing something. The Api is the weatherforcast Api…
0
votes
0 answers

Angular 13 MSAL Authentication Redirect Login

I'm trying to develop a project using Angular 13 - ngrx & angular/msal with redirection I have setup ngrx - actions, reducers, effects, selectors. When, in landing page is going into infinite loop of msal redirection login, I'm unable to fix it, …
0
votes
1 answer

I am not able to login using MSAL angular . Please find issue details below

"@azure/msal-angular": "^2.0.1", "@azure/msal-browser": "^2.15.0", this.msalBroadcastService.msalSubject$ .pipe( takeUntil(this.\_destroying$) ).subscribe(val =\> console.log('SUBJEECT', val)); this.msalBroadcastService.inProgress$ …
0
votes
0 answers

Redirect flow within iframe with allowRedirectInIframe flag

My application B is hosted inside an iframe of another application A. The user journey is that the user logs into the parent application A and then clicks on the navigation menu which loads my application B in an iframe. This application B is an…
Sibi John
  • 475
  • 6
  • 22
0
votes
2 answers

angular Microsoft authentication library issue

I am using MICROSOFT AUTHENTICATION LIBRARY in our angular 10 project. I have used MSAL loginPopup() function to login the user in our active directory. But sometimes When I click the login function msal login pop appear and when I close the parent…