microsoft-authentication-library-for-dotnet
microsoft-authentication-library-for-dotnet copied to clipboard
[Feature Request] Provide ability to turn off the default retry-once policy and recommend retry policy
By default, MSAL retries http calls once on 5xx with a delay of 1 second.
Scenario In expert and high traffic scenarios, customers might want to provide own retry strategies, retry periods and resilient http client strategies (circuit breaker). The behavior within MSAL then intercepts with the logic that the clients might want to inject through the WithHttpClientFactory configuration.
Proposal Provide a knob to turn off the retry-once behavior of MSAL.
Note: see larger issue tracking this: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/3561
CC @trwalke
We will remove the default retry policy completely, as there are concenrns about retry storms. Apps should deal with retries.
MSAL 4.47.0 has been released, This issue is now fixed.