Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Conversation

@LeeParrishMSFT
Copy link
Contributor

Fixes #507

Description

Added code to check the result of the call to MSAL to authenticate and if a Retry-After header is present it will decode the or and return the appropriate RetryParams to the Retry logic.

Specific Changes

Decode the HTTP 429 response header to see if it provides a number of milliseconds, or a RFC1123 formatted date as to how long to wait before having the Retry logic retry the authentication call.

Testing

Unit tests was written to test the header decode logic that was added.

@tracyboehrer tracyboehrer merged commit 42edeb3 into main Apr 1, 2021
@tracyboehrer tracyboehrer deleted the lparrish/Issue507 branch April 1, 2021 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PORT] [Authentication] Gov: Support temporary service unavailable results.

3 participants