package
Version:
v0.0.4-0...-ffe3ecb
Opens a new window with list of versions in this module.
Published: Feb 18, 2021
License: Unlicense
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthorizationCode struct {
B []byte
}
AuthorizationCode represent the config type for the authorization code grant
type
Client returns an HTTP client using the provided token. The token will
auto-refresh as necessary. The returned client should not be modified.
Token generates a *oauth2.Token. The token will be cached in token.json.
Refreshtoken might not work properly.
type ClientCredentials struct {
B []byte
}
ClientCredentials represent the config type for the authorization code grant
type
Client returns an HTTP client using the provided token. The token will
auto-refresh as necessary. The returned client should not be modified
Token retrieves an Oauth2 token based on the credentials retrieved from a file
Config generalizes oauth2 config types. Currently supporting:
- oauth2.Config
- oauth2/clientcredentials.Config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.