Verify
Last updated
Was this helpful?
Last updated
Was this helpful?
Verifies an OAuth2 authorized device using its unique user code.
This endpoint implements the web user authorization step in the OAuth2 device authorization grant flow as defined in https://tools.ietf.org/html/rfc8628. It is called from the dashboard to verify an OAuth device using its user code.
The request is expected to contain at least the user code. Optionally, the trusted device flag can be set to indicate that the device is trusted and will not require a re-verification in the near future. Additionally, the dashboard may set metadata fields to store additional information about the device that will be passed to the client at the end of the device authorization flow (e.g. a default workspace ID to be pre-selected).
If the user code is valid, the device is marked as verified and associated with the user that authorized the device. This association is required to be able to issue access tokens or revoke the device later on. The user code is invalidated and cannot be used for further authorizations.
Args: request: The model containing the verification request. user: The authorized user. user_manager: The user manager.
Returns: The updated OAuth2 authorized device object.
OAuth2 device authorization verification request.
false
Response body for OAuth2 devices.