AzureAD / microsoft-authentication-library-for-java

Microsoft Authentication Library (MSAL) for Java http://aka.ms/aadv2
MIT License
284 stars 142 forks source link

Static token cache for MSI #722

Closed Avery-Dunn closed 11 months ago

Avery-Dunn commented 11 months ago

Adds a static token cache field to ManagedIdentityApplication so that the cache is shared among all ManagedIdentityApplication instances, as well as a TokenSource and AuthenticationResultMetadata classes to provide information about where tokens are coming from.

This is similar to what is being done in https://github.com/AzureAD/microsoft-authentication-library-for-java/pull/708, however this is a simpler implementation to help ensure the behavior is correct for upcoming beta testing.