Microsoft Authentication Library (MSAL) for .NET
ITelemetryClient
) is now generally available. See 3784.WithSearchInCacheForLongRunningProcess()
modifier which allows InitiateLongRunningProcessInWebApi
method to search in cache. This flag is intended only for rare legacy cases; for most cases, rely on the default behavior of InitiateLongRunningProcessInWebApi
and AcquireTokenInLongRunningProcess
. See 4124.ManagedIdentityApplication
. See 4114.MsalManagedIdentityException
class that represents any managed identity related exceptions. It includes general exception information including the Azure source from which the exception originates. See 4041.AppTokenProvider
API. See 4074.MsalException
and derived exception classes now have a property AdditionalExceptionData
, which holds any extra error information. Currently it is only populated for exceptions coming from the Windows authentication broker (WAM). See 4106.user_mismatch
error when WithAccount
is specified when acquiring tokens interactively and selecting a different account in the account picker. See 3991.net6.0-windows
instead of net6.0-windows10.0.17763.0
. See 3986.WithGenericAuthority(authority)
. This is still an experimental API and may change in the future. See 4047, 1538.AuthenticationResult.AdditionalResponseParameters
property bag with any extra parameters from the AAD response. This collection will also have spa_accountId
parameter which can be used in brokered hybrid single-page application (SPA) scenarios. See 3994.ManagedIdentityApplicationBuilder
to create a IManagedIdentityApplication
and call AcquireTokenForManagedIdentity
. See 3970 and wiki.StopLongRunningProcessInWebApiAsync
which allows to remove cached tokens based on a long-running OBO key. See 3346 and wiki.InitiateLongRunningProcessInWebApi
will now always acquire new tokens from AAD without checking the token cache first. See 3825.AcquireTokenSilent
after acquiring token using the Username/Password flow. See 3916 and See 3961.Unable to load DLL 'msalruntime'
exception for apps that use WAM preview and are packaged as MSIX. See 3740.ApiContractViolation
exception in WAM preview when signing out. See 3685.WithAuthority
methods on the request builders are hidden. Use either WithTenantId
on the request builders or WithAuthority
only on the application builder. See #2929.IsBrokerAvailable
method on mobile platforms. Applications should rely on the library automatically falling back to a browser if the broker is not available. See 3320.<region>.login.microsoft.com
when using regional ESTS-R for public cloud. See 3252
GetAccounts
using the new Broker preview. See 3458
WithInstanceDiscovery(bool enableInstanceDiscovery)
. See 3775
WithManagedIdentity()
method on the AcquireTokenForClient
API to get an MSI token. This is an experimental feature and may change in the future versions of MSAL. See 3754 and 3829