Skip to content

msal net 4.5

Peter edited this page Oct 19, 2023 · 6 revisions

See Microsoft Authentication Library for .NET for updated documentation.

MSAL.NET 4.5 released

We are excited to announce the release of MSAL .NET 4.5.0, which brings improvements to the device code flow both for Azure AD and ADFS, as well as several bug fixes, in particular around iOS13 and UWP:

Device code flow improvements

The device code flow is used in the case of devices and operating systems that do not provide a web browser, such as applications running on iOT, or Command-Line tools (CLI). See more information on the device code flow.

Device code flow now works with Microsoft Personal Accounts

Starting with MSAL.NET 4.5 release, the device code flow is possible with Microsoft Personal Accounts. This means the device code flow will work with:

  • Any work and school accounts (tenanted authority, https://login.microsoftonline.com/organizations/), and
  • Microsoft personal accounts (/common or /consumers tenants)

Device code flow now works with ADFS 2019

Starting with MSAL.NET 4.5 release, MSAL .NET supports the device code grant for ADFS 2019.

Telemetry Data

To better understand the reliability of the library and the Azure AD service across public client application calls and to try and detect outages and customer issues preemptively, MSAL .NET now sends telementy data to the /token endpoint in regards to the error code of the previous request, if applicable. This will help us be more proactive in detecting and fixing issues.

Bug Fixes

MSAL.NET 4.5 and 4.5.1 also contains a number of bug fixes:

  • Customers reported a nonce mismatch error when signing in with the Authenticator app on iOS 13. The issue has been resolved and increased logging included in the iOS broker scenario. See issue for more details.
  • On iOS 13, when using the system browser, authentication was broken. This was because Apple now requires a presentationContext when signing in with the system browser. More information on this requirement here. And more details in the issue
  • At times, MSAL .NET would randomly fail on UWP. MSAL .NET now implements retry logic and has improved logging around the cache in UWP. See this issue and this issue for more details.
  • During a client credential flow, MSAL .NET would throw a client exception stating the users should not add their own reserved scopes. MSAL .NET now merges the scopes if they are already in the reserved list and does not throw. See issue for more details.
  • At times, during an interactive authentication, MSAL .NET would throw an ArgumentNullException. MSAL .NET now checks for null values when handling the authorization result parsing. See issue for details.

Getting started with MSAL.NET

Acquiring tokens

Desktop/Mobile apps

Web Apps / Web APIs / daemon apps

Advanced topics

News

FAQ

Other resources

Clone this wiki locally