Skip to content

Commit

Permalink
Enable MSAL settings to save access token in cache (#6706)
Browse files Browse the repository at this point in the history
* add cache configuration for accessToken

* remove WithCacheOptions config

* add appTokenCache validation
  • Loading branch information
JhontSouth authored Nov 22, 2023
1 parent 9d80765 commit 979413c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public MsalAppCredentials(IConfidentialClientApplication clientApplication, stri
_scope = scope;
_authority = authority;
_validateAuthority = validateAuthority;
if (_clientApplication?.AppTokenCache != null)
{
_clientApplication.AppTokenCache.SetCacheOptions(CacheOptions.EnableSharedCacheOptions);
}
}

/// <summary>
Expand Down

0 comments on commit 979413c

Please sign in to comment.