Skip to main content

Module device

Module device 

Source

Modulesยง

consent ๐Ÿ”’
entry ๐Ÿ”’
error ๐Ÿ”’
result ๐Ÿ”’

Structsยง

DeviceAuthRequest ๐Ÿ”’
DeviceCallbackParams ๐Ÿ”’
DeviceVerifyParams ๐Ÿ”’

Staticsยง

DEVICE_CSP ๐Ÿ”’
DEVICE_HEAD ๐Ÿ”’

Functionsยง

consume_login_token ๐Ÿ”’
device_authorization ๐Ÿ”’
device_authorization_error ๐Ÿ”’
device_authorization_route ๐Ÿ”’
RFC 8628 ยง3.1: the device authorization endpoint. Mints a device_code / user_code pair and returns the verification URIs for the user.
device_error_response ๐Ÿ”’
device_html_response ๐Ÿ”’
device_redirect_response ๐Ÿ”’
device_sso_redirect ๐Ÿ”’
get_device_callback_route ๐Ÿ”’
The SSO return target: renders the consent form for the authenticated user.
get_device_route ๐Ÿ”’
RFC 8628 ยง3.3: the verification_uri. Shows a user-code entry form, or (with a valid code) sends the user through SSO to authenticate and consent.
handle_device_callback_get ๐Ÿ”’
handle_device_callback_post ๐Ÿ”’
handle_device_verify ๐Ÿ”’
peek_login_token ๐Ÿ”’
post_device_callback_route ๐Ÿ”’