Skip to content

fix: implement device auth rate limit handling#17079

Merged
hugodutka merged 2 commits into
mainfrom
hugodutka/device-auth-retry-logic
Mar 25, 2025
Merged

fix: implement device auth rate limit handling#17079
hugodutka merged 2 commits into
mainfrom
hugodutka/device-auth-retry-logic

Conversation

@hugodutka

@hugodutka hugodutka commented Mar 24, 2025

Copy link
Copy Markdown
Contributor

The OAuth2 specification describes how clients in the device flow should handle retrying requests when they are rate limited.

We didn't respect it, which sometimes prevented users from logging in or setting up external auth. They'd see a slow_down error in the UI and would be unable to complete the authentication flow. This PR implements rate limit handling according to the spec.

@hugodutka hugodutka force-pushed the hugodutka/device-auth-retry-logic branch 4 times, most recently from 454488b to a2957af Compare March 24, 2025 17:41
@hugodutka hugodutka force-pushed the hugodutka/device-auth-retry-logic branch from a2957af to f61f16a Compare March 24, 2025 17:45
@hugodutka hugodutka marked this pull request as ready for review March 24, 2025 18:18
@hugodutka hugodutka requested a review from jaaydenh March 24, 2025 18:19
@hugodutka hugodutka merged commit d5557fc into main Mar 25, 2025
@hugodutka hugodutka deleted the hugodutka/device-auth-retry-logic branch March 25, 2025 10:32
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 25, 2025
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.

2 participants