Skip to main content

Module device_code

Module device_code 

Source
Expand description

RFC 8628 OAuth 2.0 device authorization grant flow.

Structs§

DeviceCodeResponse
Response from the devicecode endpoint.
PollSuccess
Result of a successful poll: tokens + the id_token (for tenant_id extraction).

Functions§

poll
Poll {base_url}/oauth2/v2.0/token per RFC 8628 §3.5. Returns when the user has approved consent, or with an error on denial / expiry.
real_sleep
Real-time sleep helper for production use.
start
POST to {base_url}/oauth2/v2.0/devicecode.