Azure oAuth endpoint throttling

Chand, Anupam SBOBNG-ITA/RX 471 Reputation points
2021-06-15T03:56:03.627+00:00

Hi,

We have an Azure App which has been protected by Azure AD oAuth. This means the calling application has to hit the https://login.microsoftonline.com/<tenant-id>/oauth2/token to fetch a bearer token before accessing the actual http triggered Azure function.
We wanted to know what kind of rate limiting/throttling is present at the Azure AD oAuth endpoint? I'm assuming this would be at the tenant id level but am not sure what the throttling limits are.
Any help would be appreciated.

Thank,
Anupam

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author
AmanpreetSingh-MSFT 56,971 Reputation points Moderator
2021-06-17T13:52:08.4+00:00

Hi anonymous user · Thank you for reaching out.

I don't find the throttling for Azure AD Token endpoint exposed publicly. However, if your application makes too many calls to the token endpoint, in order to acquire token, you will get HTTP 429 - Too many requests. You can configure your application to begin throttling using an exponential backoff approach (as mentioned below), on receiving HTTP error code 429.

  1. Wait 1 second, retry request
  2. If still throttled wait 2 seconds, retry request
  3. If still throttled wait 4 seconds, retry request
  4. If still throttled wait 8 seconds, retry request
  5. If still throttled wait 16 seconds, retry request

At this point, you should not be getting HTTP 429 response codes.

-----------------------------------------------------------------------------------------------------------

Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.