The response from the server includes the device code, a code to display to the user, and the URL the user should visit to enter the code.
{
"device_code": "NGU5OWFiNjQ5YmQwNGY3YTdmZTEyNzQ3YzQ1YSA",
"user_code": "BDWD-HQPK",
"verification_uri": "https://example.okta.com/device",
"interval": 5,
"expires_in": 1800
}
Note: This is just an example URL, since the Okta API does not implement the Device Flow. You can use the Google API if you want to try this against a real service.
You'll need to present the verification_uri and user_code to the user and instruct them to enter the code at the URL. How you do this depends on the capabilities of the device. For example, on a smart TV, it is relatively easy to display both items and instructional text on the screen. On a device with a more limited display capability, it may be more challenging.