Request an OpenID device grant code
Get an OpenID device grant code that can be verified and subsequently used on an /sso_device_grant_verify request.
The device grant flow is designed for devices that have limited input capabilities or no web browser. It works as follows:
- Call this endpoint to get a user code and verification URI
- Display the user code and verification URI to the user
- The user visits the verification URI on another device and enters the code
- Call the /sso_device_grant_verify endpoint to check if the user has completed verification
Example
Request
This endpoint expects an object.
database
Target database name (defaults to system if not specified). This is the database the user will be connected to after completing the device grant flow.
Response
Token exchange successful
status
verification_uri_complete
A complete URI that includes the verification code, which the user can visit directly to complete the authentication.
verification_uri
The base URI where the user needs to go to enter the code manually.
user_code
The code that should be displayed to the user, to be entered at the verification_uri. This is typically a short, easy-to-type code.
Errors
401
Unauthorized Error

