Repository navigation
Conversation
added 13 commits
September 2, 2026 10:20
…als in device code polling. Remove redundant data param to fetch_token
…e code query. Replaced max_poll_interval and instead uses expected `expires_in` value.
antheng
force-pushed
the
device-code-token
branch
from
September 11, 2026 03:45
0b9c238 to
fc960a7
Compare
added 4 commits
September 11, 2026 14:11
…IPython. Will see what can be done.
…zation endpoint. Added this as a required param for token_from_device_code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for OAuth2.0 device code authorization flow as per RFC 8628 by adding the async function
Oauth2Session.token_from_device_code. For a given device authorization endpoint, this function can be called with options for explicit interval polling time.Process:
verification_uriand user_code to stdoutTimeoutErrorAlso makes changes to tests in
Oauth2SessionTest: setself.token_endpoint = "https://example.com/token"as it was often repeated between tests.