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
0
votes
1 answer
Not able to acquire access token in ASP.NET Core MVC sample code, inside controller, for Azure AD B2C Implementation
We are exploring code sample provided by Microsoft for implementing "Azure AD B2C Authentication". We are using "4-2-B2C" (Refer the screen shot) code samples from…

spalMcc
- 21
- 4
0
votes
1 answer
How to configure client applications?
I have two applications (ui and api) in Azure Active Directory. How do I add ui application id to knownClientApplications list in api application manifest via PowerShell script?

user989988
- 3,006
- 7
- 44
- 91
0
votes
1 answer
How should I create app registrations on-demand for my users in Azure B2C?
I have a simple ASPNET Core Razor Pages app + ASPNET Core API:
for example the API just has:
builder.Services
.AddAuthentication(...)
.AddMicrosoftIdentityWebApi()
Razor pages has:
builder.Services
…

Victorio Berra
- 2,760
- 2
- 28
- 53
0
votes
0 answers
Use Azure active directory as custom authentication backend for Django
I have Django running on an Azure web app and have followed this example to integrate the MSAL library so that users from the active directory can log in.
This works to the extent that I can use @ms_identity_web.login_required in my views to limit…

duxk.gh
- 161
- 1
- 8
0
votes
0 answers
Android application using MSAL libaries
I have download the sample code from https://github.com/Azure-Samples/ms-identity-android-java/ and have managed to configure it to use my own Azure AD instance.
However it appears that there are two files where the app is configured to a particular…

rukiman
- 597
- 10
- 32
0
votes
0 answers
Authentication with Angular and Auth server with nodejs, express and MSAL
I am trying to build an auth server that logs in the user to other applications with the user's Microsoft account. I have created an app in Azure AD and integrated it with the backend. The following is the flow of the application,
GET request to…

Kannan G R
- 15
- 5
0
votes
0 answers
O365 Integrated windows authentication(IWA) using MSAL VDI not domain joined issue
We have encountered an issue when we try to receive access token for graph api using IWA we get an error that VDI is not domain joined:
{"AADSTS53001: Device is not in required device state: domain_joined. Conditional Access policy requires a domain…

Simonas
- 1
- 1
0
votes
0 answers
MSAL Android - App was stuck at callback screen
I implemented MSAL authentication on Android using Xamarin with package Microsoft.Identity.Client and it has an issue at callback screen, the authentication was successully and the token was granted but the application was stucked in callback…

ThanhToaNguyen
- 1
- 1
0
votes
1 answer
How to get refreshToken in MSAL login for IOS
I am struggling to integrate AD login in my application. its succeeding and returning the response to the app. but now i need refreshToken as well with authToken but till now i didNot succeed to get value of refreshToken,
methods i…

HAMZA ZULFQAR
- 37
- 8
0
votes
1 answer
bind between various keys in the appsettings.json file
I am following this sample :
https://github.com/Azure-Samples/ms-identity-blazor-server/tree/main/WebApp-OIDC/MyOrg
The app-settings.json file is as follows :
{
"AzureAd": {
"Instance": "https://login.microsoftonline.com/",
"Domain":…

Venkat
- 1,702
- 2
- 27
- 47
0
votes
1 answer
The app is asking for consent twice in "app calls api" scenario
I'm using two app registrations and implement the "expose an api" scenario. My CLIENT_APP is an angular application using msal-angular library. My SERVER_APP is a .NET server that's using "Expose an API" feature and defines a scope. It also lists…

devmiles.com
- 9,895
- 5
- 31
- 47
0
votes
2 answers
Why is accessToken field of acquireTokenSilent response is always empty?
I have an SPA application and authenticate user into Azure AD-B2C via msal-browser.js.
The flow has two sequential calls:
msalInstance.loginPopup(loginObj)
msalInstance.acquireTokenSilent(tokenObject)
According to the document below, loginPopup…

max3d
- 1,437
- 15
- 16
0
votes
1 answer
ASP.NET Core Web API that calls web APIs via client credential flow - MSAL.NET or Microsoft.Identity.Web?
Going to have a web api that calls another web api requiring the OAuth client credential flow. The web api does not need authentication.
Should I use MSAL.NET instead of Microsoft.Identity.Web in this case?
I have read…

FranklinWhale
- 73
- 5
0
votes
1 answer
Grant permission and get token for a certain outlook calendar in Azure Active Directory using oAuth
I am currently using oAuth to get a token by Calendars.ReadWrite scope but it works for all calendars that the user has. This is my code:
const PCA = new PublicClientApplication({
auth: {
clientId: "***",
authority:…

mahdikmg
- 833
- 2
- 6
- 13
0
votes
1 answer
Howto get an OAuth token for azure EA when using the client credentials flow
My goal is to create a web service which can be authenticated via OAuth token. The token must be provided by an Azure Enterprise Application via the OAuth Client Credentials flow.
I'm using the MSAL library for getting the token.
I did setup the…

Manuel
- 1,985
- 3
- 31
- 51