Device Authorization Endpoint

The device authorization endpoint can be used to request device and user codes. This endpoint is used to start the device flow authorization process.

Parameters #

client_id #

client identifier (required)

client_secret #

client secret either in the post body, or as a basic authentication header. Optional.

scope #

one or more registered scopes. If not specified, a token for all explicitly allowed scopes will be issued.

Sample Request #

POST https://auth.10npay.com/connect/deviceauthorization    client_id=client1&
    client_secret=secret&
    scope=openid api1

(Form-encoding removed and line breaks added for readability)

Sample Response #

HTTP/1.1 200 OK
Content-Type: application/json{
   “id_token”:”eyJhbGcxxxxx.eyJuYxxxxx.NXDxxxxx”,
   “access_token”:”eyJhxxxxx.eyJuYxxxxx.WRxxxxx”,
   “expires_in”:3600,
   “token_type”:”Bearer”,
   “refresh_token”:”povbxxxxx”,
   “scope”:”phone openid profile email xxxxx offline_access”
}

Powered by BetterDocs