Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: implement device auth rate limit handling #17079

Merged
merged 2 commits into from
Mar 25, 2025

Conversation

hugodutka
Copy link
Contributor

@hugodutka hugodutka commented Mar 24, 2025

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
41 checks passed
@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