Device Code


Parameters

Name In Type Required Description
body body object false ‘none’

Request body - Content-Type: application/x-www-form-urlencoded

Custom schema example

1
2
3
client_id: string
scope: string

Name Type Required Description
client_id string true The identifier of the client representing the app.
scope string false Scope of permissions

Request example

1
2
3
4
5
6

curl -X POST https://authn.masstack.com/v1/device-authorize \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -H "Accept: application/json" \
  -d "client_id=undefined&scope=undefined&" 

Responses

Code Meaning Description Schema
200 OK OK deviceCodeAuthorizeResponse
400 Bad Request Bad Request errorAccessTokenResponse
401 Unauthorized Unauthorized errorAccessTokenResponse

Endpoints

TokenInfo

    OAuth2

      Magic Links

        CIBA

          WebAuthn

            Device Code