AzureAD / microsoft-authentication-library-for-java

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

Does msal4j supports high availability as in msal.net? #696

Closed xiaozhon closed 1 year ago

xiaozhon commented 1 year ago

Hi team, I found that msal.net supports high availability through different mechanisms: https://learn.microsoft.com/en-us/entra/msal/dotnet/advanced/high-availability. I didn't find a similar doc for msal4j, so I am posting this issue to ask: does msal4j support similar high availability?

bgavrilMS commented 1 year ago

Hi @xiaozhon - it supports several mechanisms, but not all.

Note that MSAL Java's default token cache is not scalable, it is ok for a few 100 token entries, but no more. Apps are supposed to use distributed token caching or have 1 CCA object per session to get around this.

The rest of items like logging, proactive token refresh are there.

What sort of app do you need to write?

Avery-Dunn commented 1 year ago

Closing due to inactivity. If you're still having issues or have related questions, feel free to reopen this thread or start a new one.