Questions tagged [adal]

The Azure Active Directory Authentication Libraries (ADAL) gives you the ability to add support for Microsoft's cloud identity APIs to your application, including support for Office365 and Work Accounts. Supports native clients such as Windows, Windows Phone, iOS, OSX, Android, and Linux and server clients such as Windows Server, Node.js and Java.

Microsoft Azure Identity Libraries powered by Azure Active Directory

The Azure Active Directory Authentication Libraries (ADAL) gives you the ability to add support for Microsoft's cloud identity APIs to your application, including support for Office365 and Work Accounts.

These SDKs support native clients such as Windows, Windows Phone, iOS, OSX, Android, and Linux and server clients such as Windows Server, Node.js and Java.

These SDK gives your application the full functionality of Microsoft's identity platform, including industry standard protocol support for OAuth2, Web API integration with user level consent, and two factor authentication support. Best of all, it’s FOSS (Free and Open Source Software) so that you can participate in the development process as we build these libraries.

What is a Work Account?

A Work Account is an identity you use to get work done no matter if at your business or on a college campus. Anywhere you need to get access to your work life you'll use a Work Account. The Work Account can be tied to an Active Directory server running in your datacenter or live completely in the cloud like when you use Office365. A Work Account will be how your users know that they are accessing their important documents and data backed my Microsoft security.

We provide a full suite of sample applications and documentation on GitHub to help you get started with learning the Azure Identity system. This includes tutorials for native clients such as Windows, Windows Phone, iOS, OSX, Android, and Linux. We also provide full walkthroughs for authentication flows such as OAuth2, OpenID Connect, Graph API, and other awesome features.

Contributing

All code is licensed under the Apache 2.0 license and we triage actively on GitHub. We enthusiastically welcome contributions and feedback. You can clone the repo and start contributing now.

1611 questions
163
votes
2 answers

What format is the exp (Expiration Time) claim in a JWT

I am using ADAL library to get access token for a resource. Does anyone know what format is the expiration time in ? more specifically "exp" (Expiration time) claim. JwtSecurityToken class simply returns int32 after parsing. So, that is not a good…
Frank Q.
  • 6,001
  • 11
  • 47
  • 62
24
votes
2 answers

ADAL JS - response_type="token" is not supported

I'm using adal js to auth with Azure AD. I have webApp and webApi. Pretty much my apps follow this sample https://github.com/AzureADSamples/SinglePageApp-WebAPI-AngularJS-DotNet . I was able to login to my webApp and adal.js successfully acquired a…
serg.salo
  • 580
  • 1
  • 8
  • 14
20
votes
2 answers

Unable to acquire token silently or via redirect using msal-browser

I'm trying to develop a VueJS single page application that logs you into AAD so that I can get an access token to call various APIs (e.g. Graph). Once a user is logged in, you have to acquire a token and there are two ways of doing this: silently…
chivano
  • 603
  • 1
  • 5
  • 13
20
votes
2 answers

Azure Active Directory Safari Redirection Issue

There seems to be a current issue with logging into Microsoft Online with Mac OS and iOS devices utilizing the newest version of Safari (12). The updates on Safari 12 are shown here: https://developer.apple.com/safari/whats-new/ Due to some of the…
Frank H
  • 831
  • 1
  • 7
  • 15
19
votes
3 answers

How to integrate azure ad into a react web app that consumes a REST API in azure too

I have one web app which is React, and I already configured Azure AD Authentication for the web app itself. Its 100% Client site app, no server side components. I used this component: https://github.com/salvoravida/react-adal My code is as…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
19
votes
3 answers

How to verify JWT id_token produced by MS Azure AD?

I have an angularjs SPA web app which uses ADAL-JS (and adal-angular). It's set up to authenticate vs our corporate AD in MS Azure. The log-in flow seems to work correctly, and the SPA receives an id_token. Next, when the user clicks a button, the…
FOR
  • 4,260
  • 2
  • 25
  • 36
18
votes
2 answers

Update claims in ClaimsPrincipal

I am using Adal with Azure Active Directory and I need to add extra claims via custom OwinMiddleware. When I add claims to this principal, I am able to access them in the current request. But after a page refresh, the claim is gone. I thought Owin…
Identity
  • 1,553
  • 1
  • 22
  • 44
17
votes
2 answers

Azure: Unable to use RefreshToken to acquire a new AccessToken

I'm building an application that needs access to our clients' Office 365 Management Activities. I've followed the steps outlined in this Azure Active Directory overview, and am able to use the OAuth code to acquire an initial Access Token, as well…
Andrew Rueckert
  • 4,858
  • 1
  • 33
  • 44
17
votes
4 answers

ADAL.NET v3 does not support AcquireToken with UserCredential?

In ADAL.NET 2.x, we use the below code to acquire token from Azure AD using UserCredential and it works perfectly: var authContext = new AuthenticationContext(Authority); var userCredential = new UserCredential(username, password); var token =…
cuongle
  • 74,024
  • 28
  • 151
  • 206
17
votes
4 answers

Can't get client-credentials access token to authorize Power BI

I'm trying to use the Power BI REST API, using an access token acquired with the "client credentials" method, but I keep getting 403 Forbidden on my requests. My code follows the pattern demonstrated in this AzureAD sample. In fact, to isolate this…
cgrayson
  • 279
  • 1
  • 3
  • 9
16
votes
1 answer

What is the difference between ADAL.js and MSAL.js?

I am trying to handle authentication for my app which uses Microsoft Graph. What is the difference between these two libraries? Active Directory Authentication Library for JavaScript (ADAL.js) Microsoft Authentication Library for JavaScript…
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
16
votes
4 answers

ADAL .Net Core nuget package does not support UserPasswordCredential

In ADAL.Net 3.x UserPasswordCredential is introduced on top of UserCredential from 2.x. But the same UserPasswordCredential is not exposed in the .Net Core under the same nuget package? UserCredential class has only one property UserName namespace…
racha
  • 161
  • 1
  • 5
15
votes
5 answers

Azure AD Logout URL not redirecting

I am building the following URL https://login.microsoftonline.com//oauth2/logout?client_id=&post_logout_redirect_uri= It looks something…
Steve Drake
  • 1,968
  • 2
  • 19
  • 41
15
votes
1 answer

MSAL or ADAL library for use with Azure AD B2C and Xamarin

As of October 2016, is it still the case that the Microsoft Authentication Library (MSAL - NuGet package: Microsoft.Identity.Client) is the correct/only library to use with Xamarin (iOS/Android) and the Azure AD B2C service? This library (MSAL) is…
Jeremy Ellis
  • 452
  • 1
  • 5
  • 11
14
votes
1 answer

the Method not found: AcquireToken(System.String, Microsoft.IdentityModel.Clients.ActiveDirectory.ClientAssertionCertificate)

I followed the following document to create a x509 certificate with the Azure AD App Registration. https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread I generated the .pfx file, set the password, and I also…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
1
2 3
99 100