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.
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.