Documentation ¶
Overview ¶
Package devicecode implements the OAuth 2.0 Device Authorization Grant.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Config is the OAuth2 configuration to use for this authorization flow clientcredentials.Config // DeviceAuthorizationURL is the location of the device authorization endpoint DeviceAuthorizationURL string // EndpointParams specifies additional parameters for requests to the device authorization endpoint. EndpointParams url.Values }
Config describes a device authorization grant (also known as a "device flow").
type UserInstruction ¶
type UserInstruction func(userCode, verificationURI, verificationURIComplete string)
UserInstruction is a function used to tell the end user how to complete the authorization.
Click to show internal directories.
Click to hide internal directories.