Device Authorization Grant

1
2
3
Request a device code from the authorization server
Start polling authorization server periodically until the code has been successfully entered
Instruct the user where to enter the code
2. Wait for user to enter the user code

We do so by periodically polling authorization server at:

With body data:

Let's break it down...

  • grant_type=urn:ietf:params:oauth:grant-type:device_code

    This is a mandatory parameter that indicates the type of grant being used. In this case we are using the device code.

  • client_id=

    Client ID of the application. This is a public identifier for the client, and it is used by the authorization server to identify the application when redirecting the user back to the client.

  • device_code=

    Device code we have obtained in the previous step.