diff options
author | Mike Kelly <kellyma@gmail.com> | 2022-01-17 19:21:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 09:21:08 +0600 |
commit | c3e878733fa911804c7f55cf72f66dc281922fca (patch) | |
tree | 141f5a240634169b037fcbbfa7cdfb3ef52a82b3 /oauthlib/oauth2/__init__.py | |
parent | 553850bc85dfd408be0dae9884b4a0aefda8e579 (diff) | |
download | oauthlib-c3e878733fa911804c7f55cf72f66dc281922fca.tar.gz |
Add support for device authorization flow (RFC8628) (#795)
* rfc8628: Add client implementation for token retrieval
This change adds an implementation of the Device Authorization flow
client from RFC8628. The initial structure is derived from the
existing BackendApplicationClient with the addition of the device_code
in the client.
This change does not provide the support necessary for querying the
device code endpoint in order to generate the initial device_code and
URL that is required for completing the full end to end device
authorization process.
* Add device token fetch URI generator
In order to perform the full device authorization flow it's necessary
to first generate the device code and get the authorization flow URL.
prepare_request_uri() allows us to do this while providing scopes and
additional parameters.
* Remove encoding lines
These lines are not required for python3
Diffstat (limited to 'oauthlib/oauth2/__init__.py')
-rw-r--r-- | oauthlib/oauth2/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/oauthlib/oauth2/__init__.py b/oauthlib/oauth2/__init__.py index a6e1ccc..deefb1a 100644 --- a/oauthlib/oauth2/__init__.py +++ b/oauthlib/oauth2/__init__.py @@ -33,3 +33,4 @@ from .rfc6749.grant_types import ( from .rfc6749.request_validator import RequestValidator from .rfc6749.tokens import BearerToken, OAuth2Token from .rfc6749.utils import is_secure_transport +from .rfc8628.clients import DeviceClient |