MsalError.InternalCacheDisabled Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
What happened?
A cache-dependent API was called, but MSAL's internal token cache is disabled via DisableInternalCacheOptions. This can occur with APIs such as AcquireTokenSilent(IEnumerable<String>, IAccount) andAcquireTokenInLongRunningProcess(...).
Mitigation
Use an authentication flow that does not depend on MSAL's internal cache, such as AcquireTokenByRefreshToken(IEnumerable<String>, String) with the refresh token obtained from GetRefreshToken(AuthenticationResult), or use another interactive flow, as appropriate for your application.public const string InternalCacheDisabled;
val mutable InternalCacheDisabled : string
Public Const InternalCacheDisabled As String