-
Notifications
You must be signed in to change notification settings - Fork 214
Home
ADAL.NET (Microsoft.IdentityModel.Clients.ActiveDirectory) is an authentication library which enables you to acquire tokens from Azure AD and ADFS, to access protected Web APIs (Microsoft APIs or applications registered with Azure Active Directory). ADAL.NET is available on several .NET platforms (Desktop, Universal Windows Platform, Xamarin Android, Xamarin iOS, and .NET Core).
Date | Release | Blog post | Main features |
---|---|---|---|
Future | ADAL 4.x | Act on community's, partners and customers feedback, Migration guide from ADAL to MSAL 2.x | |
Mar 8th 2019 | ADAL 5.0.0-preview | See 5.0.0-preview release | Enhancements includes support for MSALv3 Cache as well as enabling users to bring their own browser as part of the Auth Code retrieval. |
Feb 8th 2019 | ADAL 4.5.1 | See 4.5.1 release and 4.5.0 release | Bug fixes (Co-existence of ADAL 4 and MSAL 2.6, Xamarin Version update, Http timeout caused NullReferenceException, various updates for Broker scenarios, improved logging) |
Nov 20th 2018 | ADAL 4.4.1 | See 4.4.0 release and 4.4.1 release | Bug fixes (around the token cache in advanced scenarios, consistency between platforms, and stability in specific scenarios) |
Oct 19th 2018 | ADAL 4.3.0 | See 4.3.0 release | General availability of ADAL 4.x See Changes in ADAL.NET from 3.x to 4.x |
Oct 17th 2018 | ADAL 4.2.0-preview | See 4.2.0-preview release | Bug fixes on top of ADAL 4.0, improvement of error messages |
Aug 28th, 2018 | ADAL v4.0.0-preview | Blog post about ADAL.NET 4.0.0-preview and MSAL.NET 2.0.0-preview | Common cache format for ADAL.NET and MSAL.NET so that you can upgrade your applications to MSAL.NET and keep the SSO state. See Changes in ADAL.NET from 3.x to 4.x |
Jun 16th, 2018 | ADAL v3.19.8 | See releases | bug fixes, with UWP, .NET Core logs, iOS 11.3 resource leak, PKAuth update, keeping spaces in SAML tokens for better interop with federated IDPs |
Jan 30th, 2018 | ADAL v3.19.1 | Blog post about ADAL.NET 3.19.4 and MSAL.1.1.2-preview | Simplified Azure AD certificate Rollup, fixes SSO issues with brokers, compliance with GDPR |
October 11th, 2017 | ADAL v3.17.0 | Adal.NET 3.17 released | Support for conditional access, help customers not using the APIs that don't make sense depending on the platform. Support for PromptBehavior.SelectAccount and full support for certificates on .NET 4.7 |
July 11th, 2017 | ADAL v3.14.1 | Adal.NET 3.14.1 released | Support of ClientAssertionCertificate in .NET Core platform |
For previous, or intermediate releases, see releases. See also Semantic versioning - API change management to understand changes in ADAL.NET public API and ADAL release cadence to understand when ADAL.NET is released
- Why use ADAL.NET ? for which application architectures? and which target OS?
- Pre-requisite: Register your application with Azure Active Directory
- Instantiate a AuthenticationContext: a connection to Azure AD
- Acquire a token for a user or the application itself. This returns an AuthenticationResult itself providing the UserInfo if the token is for a user.
- Use an access token to call a protected Web API
- Follow best practices for a robust enterprise ready application
-
Acquiring Tokens interactively in public client applications
- Controlling the interactivity with the user: PlatformParameters
- Properties common to all platforms
- Property specific to mobile platforms relative to the brokers
- Properties specific to iOS to fine grain control the UX
- Properties specific to WinRT and UWP to use Corporate networks
- Controlling the interactivity with the user: PlatformParameters
-
Acquiring token without user interaction
- AcquireTokenSilentAsync using the token cache (and refreshing silently)
- AcquireTokenSilentAsync using Windows Integrated Authentication on Windows (Kerberos)
- Acquiring a token with username and password (only for .NET Framework, and not recommended)
-
Leverage Device Code Flow to acquire tokens on devices without a Web browser
Acquiring tokens in Confidential client application flows (Web Apps, Web APIs, daemon apps)
- Acquiring a token without a user (in the name of the application) with Client credentials
- with application secret
- with certificate
- Acquiring a token with a Client assertion
- Acquiring tokens on behalf of a user (Service to service calls)
- Acquiring a token for the signed-in user by authorization code (in Web Apps)
- Exception types
- Best practices on handling ADAL.NET exceptions
- Special case of applications using Broker on iOS and Android (Xamarin iOS and Android)
- Implementing a custom Token Cache serialization (.NET Desktop | .NET Core)
- Troubleshooting an application using Logging
- Users and User management
Articles of a given topic in the conceptual documentation contains links (at the bottom of the page) to relevant samples for the topic
See also Azure AD V1.0 samples by scenario. All the .NET | ASP.NET | .NET Core | ASP.NET Core samples which acquire tokens leverage ADAL.NET
- Home
- Why use ADAL.NET?
- Register your app with AAD
- AuthenticationContext
- Acquiring Tokens
- Calling a protected API
- Acquiring a token interactively
- Acquiring tokens silently
- Using Device Code Flow
- Using Embedded Webview and System Browser in ADAL.NET and MSAL.NET
- With no user
- In the name of a user
- on behalf of (Service to service calls)
- by authorization code (Web Apps)
- Use async controller actions
- Exception types
- using Broker on iOS and Android
- Logging
- Token Cache serialization
- User management
- Using ADAL with a proxy
- Authentication context in multi-tenant scenarios
- Troubleshooting MFA in a WebApp or Web API
- Provide your own HttpClient
- iOS Keychain Access