Azure Identity => ERROR in getToken() Exception
Hi Team,
I am getting below error when using TokenCachePersistenceOptions with ClientSecretCredential and trying to use cache framework for saving access token using MSAL.java.
Exception:
com.azure.identity.ClientSecretCredential - Azure Identity => ERROR in getToken() call for scopes [https://graph.microsoft.com/.default]: Shared token cache is unavailable in this environment.
It is working fine on my local but when i tried to dockerized my application i am getting this error.
I got same error when i deployed on different machine, but i used UUID as cache name.
TokenCachePersistenceOptions persistenceOptions = new TokenCachePersistenceOptions();persistenceOptions.setName(UUID.randomUUID().toString());
and it starts to work.
But i am getting issue when i tried to dockerize the appplication.
When do we get "Shared token cache is unavailable in this environment.".