Skip to main content

Module device

Module device 

Source
Expand description

RFC 8628 Device Authorization Grant.

Endpoints:

  • POST /oauth/device — Device Authorization Request
  • GET /oauth/device/verify — Verification page (user visits in browser)
  • POST /oauth/device/verify — Verification form submission (Ed25519 challenge-response)
  • GET /oauth/device/nonce — JSON nonce endpoint for CLI sign-challenge helper

Structs§

DeviceAuthRequest
Device authorization request (application/x-www-form-urlencoded).
VerifyForm
Verification form submission (Ed25519 challenge-response).
VerifyQuery
Query params for the verification page.

Functions§

device_authorize
POST /oauth/device — Device Authorization Endpoint (RFC 8628 Section 3.1)
device_nonce
GET /oauth/device/nonce — JSON nonce endpoint for CLI sign-challenge helper.
verify_get
GET /oauth/device/verify — Render verification page with Ed25519 challenge form
verify_post
POST /oauth/device/verify — Handle Ed25519 challenge-response verification