Retrieve OAuth device code
POST/api/oauth/:OAuthAppName/device
Initiates the OAuth 2.0 Device Authorization Grant per RFC 8628. Returns a device_code and user_code that the client displays to the end-user for out-of-band authorization on a secondary device. The client then polls the token endpoint with the device_code until the user completes authorization.
Request
Responses
- 200
- 400
- 401
- 403
OK: The request was successful.
Status Bad Request: The request could not be understood by the server due to malformed syntax.
Status Unauthorized: The client must authenticate itself to get the requested response.
Status Forbidden: The client does not have permission to access the resource.