Documentation ¶
Overview ¶
Package seeds provides a way to "seed" a token source; especially one that relies on caching. This allows using the "seed" to bootstrap authentication in the case the cache is empty (or new), but doesn't call it every time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailed = errors.New("seed failed") ErrFailedToExchange = errors.New("failed to exchange token") ErrFailedToGetDeviceURL = errors.New("failed to get device url") )
Err* are sentinel errors
Functions ¶
This section is empty.
Types ¶
type Seed ¶
Seed is a function that handles all of the initial authentication, so that we have a token (complete with refresh).
func DeviceAuth ¶
DeviceAuth returns a seed that creates the initial OAuth2 flow via the Device flow. See: https://oauth.net/2/device-flow/
Click to show internal directories.
Click to hide internal directories.