AzureAD / microsoft-authentication-library-for-java

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

Add Managed Identity retry logic #790

Closed Avery-Dunn closed 3 months ago

Avery-Dunn commented 4 months ago

Implements retry logic for MI scenarios, as per https://github.com/AzureAD/microsoft-authentication-library-for-java/issues/690

The main changes are:

Issue https://github.com/AzureAD/microsoft-authentication-library-for-java/issues/690 also mentioned adding a way to disable this MI retry logic. Since MSAL Java doesn't have an API to disable the normal retry logic, there will be a different PR for the main library to add it

neha-bhargava commented 4 months ago

I would recommend adding unit tests that verify retry / not based on the returned status codes.