DeviceAuthorizationFlow
An authentication flow class that implements the Device Authorization Grant flow exchange.
The Device Authorization Grant flow permits a user to sign in securely from a headless or other similar device (e.g. set-top boxes, Smart TVs, or other devices with limited keyboard input). Using this flow, a user is presented with a screen that provides two pieces of information:
A URL the user should visit from another device.
A simple user code they can easily enter on that secondary device.
Upon visiting that URL and entering in the code, the user is prompted to sign in using their standard credentials. Upon completing authentication, the device automatically signs the user in, without any direct interaction on the user's part.
Types
An error due to a timeout. The DeviceAuthorizationFlow limits the duration a user can poll for a successful authentication, see Context.expiresIn.
Functions
Polls to determine when authorization completes, using the supplied Context instance.
Initiates a device authorization flow.