Replies: 1 comment
-
Hard to determine without more information. Have you tried debugging |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
After a week of testing and debug, I am completely stuck with random 401 errors on azure/msal-angular (v2.0.5) and passport-azure-ad (v4.3.1) authentification (with Nest.js).
Here is my app.module.ts :
When i try to access to a protected route (canActivate: [MsalGuard]) i am redirected to MS login page, and then redirected again to my app.
After that, i call the /checkOpenId route, MSAR is adding the Bearer Token, but here is the problem: i got a random responses from /checkOpenId, some times it is 200 ok and some times it is a 401 unauthorized.
I compared a 401 and a 200 queries and they are the same (token, header) :
Here is my azure ad strategy :
Beta Was this translation helpful? Give feedback.
All reactions