How to get MsalInterceptor's error
See original GitHub issueCore Library
MSAL.js v2 (@azure/msal-browser)
Core Library Version
2.26.0
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
2.3.2
Public or Confidential Client?
Public
Description
I want handle the MsalInterceptor error but I just got error log. I have requested an api which is not authorized by the admin. He seems to keep looping, requesting a token, making an error, logging in again. I want to deal with this error how to do? Do I need to write my own Interceptor? I listened to all events and it doesn’t seem to be an error event. .
MSAL Configuration
No response
Relevant Code Snippets
this.broadcastService.msalSubject$.subscribe((result: EventMessage) => {
console.error(result);
});
Identity Provider
No response
Source
External (Customer)
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
MsalInterceptor not acquiring tokens when endpoint contains ...
MsalInterceptor does not seem to acquire tokens for such endpoints (e.g. ... 401 core.js:5980 ERROR HttpErrorResponse {headers: HttpHeaders, ...
Read more >Handle errors and exceptions in MSAL.js - Microsoft Entra
Learn how to handle errors and exceptions, Conditional Access claims challenges, and retries in MSAL.js applications.
Read more >Azure AD for Angular + ASP.net web api - Stack Overflow
header by MSAL Interceptor. all working good so far. When I run Post call to same API, I get unauthorized 401 error for...
Read more >@azure/msal-angular - GitHub Pages
MsalInterceptor will obtain tokens and add them to all your Http requests in API calls based on the protectedResourceMap . @NgModule({ imports: [...
Read more >How to use MSAL Angular 8 for authenticating Users - Medium
forRoot we will get the error “Cannot find the MsalModule”; ... import { MsalModule, MsalInterceptor } from '@azure/msal-angular';.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your help.I would write myself interceptor. have a great day!
Thank you. Closing this issue as customer question answered.