The Microsoft Authentication Libraries (MSAL) gives you the ability to add support for Azure Active Directory v2 (serves Microsoft Account and AAD) and B2C. Supports native clients such as Windows, iOS, OSX, Android, and Linux.
Questions tagged [azure-ad-msal]
2700 questions
8
votes
5 answers
Microsoft graph return "access token is empty"
I post this request:
POST https://login.microsoftonline.com:443/{my-tennant-here}/oauth2/v2.0/token HTTP/1.1
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
client_id={client id…

Olav Nybø
- 11,454
- 8
- 42
- 34
8
votes
2 answers
access token / refresh token with MSAL
I'm moderately familiar with OAuth2 and the concepts of the AccessToken and RefreshToken.
It looks like MSAL is doing some work for us when using ClientApplicationBase.AcquireTokenSilentAsync().
I'm not clear as to whether it will always check the…

AWeber
- 381
- 1
- 3
- 14
8
votes
2 answers
MSAL access token invalid signature
I'm using MSAL to get an access token. It works fine and I'm able to log in and retrieve my Active Directory user.
However when I'm having problems using it to access an API and I have noticed that when I inspect the token at https://jwt.io/ it says…

Ben Gannaway
- 1,053
- 1
- 14
- 28
8
votes
2 answers
Login redirect a user with Azure AD B2C from an Angular application and msal.js
I'm trying to get an Angular 4 app to correctly do an implicit authentication with Azure AD B2C. I'm using msal.js to try and make it to work. I've checked the very limited official sample code, but it's of no real use as it's using a popup to login…

Gimly
- 5,975
- 3
- 40
- 75
8
votes
2 answers
Using MSAL.js in SPA for Azure B2C Authentication - Pop up window an issue?
So I was thinking of using MSAL for authentication against the AZURE B2C Identity Provider, but from what I can see by looking at the code, MSAL is dependent on pop up windows for logins. (Please correct me if I'm wrong).
My question is, given that…

Jim Taliadoros
- 495
- 4
- 13
7
votes
2 answers
Using MSAL with non-Microsoft Identity providers
I would like to know if MSAL can be used with Identity providers other than Microsoft products. If yes, how.
I checked the MSAL documentetion but it is not straightforward in this question.
What I would like to do is to authenticate to Google and…

KTib
- 71
- 2
7
votes
3 answers
ClientAuthError: Token renewal operation failed due to timeout MSAL Angular
I am very new MSAL. So I was only following the basic setup for implementing it from here https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/README.md.
What I did is setup configuration in app.module like…

Sandeep Thomas
- 4,303
- 14
- 61
- 132
7
votes
3 answers
Error in using MSAL library to authenticate users in azure b2c and unprotected resources
I m using MSAL 1.3 to authenticate Azure B2C users in my Angular 8 app which has .net core back end API. It all works great except when a user is not logged in, we get an error when trying to call an unprotected end point in my webapi to register…

rumi
- 3,293
- 12
- 68
- 109
7
votes
4 answers
Account not found after restart: No account or login hint was passed to the AcquireTokenSilent call
I have a web application that must send a B2C Bearer token to the API in order to get authorization. I achieve this by using MSAL, everything works great till I restart the web application, as soon as I restart the web application (without Logging…

andrei0809
- 85
- 1
- 6
7
votes
2 answers
Azure AD - Disable account selection on logout
I'm using MSAL to authenticate the users in AAD. While logging user off, page redirects to Microsoft's AD page where it asks to pick an account to logout from.
This makes sense if multiple accounts are signed in, but if only single account session…

ricky32
- 87
- 1
- 2
- 10
7
votes
1 answer
Handling callback from Azure AD in Ionic 4 with MSAL Angular wrapper
We're building an Ionic 4 app with angular 7 and we want to authenticate against Azure AD v2 endpoints. We're using msal-angular wrapper for the msal.js library.
We're hitting the endpoints successfully and the authentication provider responds with…

Martin Johansson
- 773
- 1
- 11
- 27
7
votes
1 answer
Microsoft Authentication Library (MSAL) loginPopup doesn't properly close itself
I'm not getting loginResponse from loginPopup(requestObj) of UserAgentApplication instance using MSAL library.
Azure sample works as SPA from…

ravi
- 91
- 1
- 3
7
votes
3 answers
Error - Intent filter for: BrowserTabActivity is missing. While using AzureAD MSAL Lilbary
Integrating AzureAD SSO to my android app. I have registered an app on Azure portal & get the auth_config.json file against the same. Implemented the sample code step-by-step as mentioned in docs. But getting the below…

Poras Bhardwaj
- 1,073
- 1
- 15
- 33
7
votes
3 answers
How to disable or bypass MSAL authentication when running Angular e2e tests?
I want to set up some end to end tests for my Angular application, which requires the use of the MSAL library to authenticate with some downstream services. When I try to run my e2e tests locally, the MSAL library is forcing me to authenticate with…

Alan Bentley
- 123
- 1
- 1
- 6
7
votes
0 answers
Unresolved class com.microsoft.identity.client.BrowserTabActivity
So I was following the tutorial on this site https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-android to try to integrate outlook authentication but my manifest doesn't recognize…

rkay98
- 71
- 3