Documentation
¶
Index ¶
Constants ¶
View Source
const GrantType = "urn:ietf:params:oauth:grant-type:device_code"
Variables ¶
View Source
var ( // ErrAccessDenied is returned when the user denies the app access to their account. ErrAccessDenied = errors.New("access denied by user") ErrAuthPending = errors.New("authorization pending") ErrNotImplemented = errors.New("not implemented") )
View Source
var DefaultScopes = []string{"openid", "profile", "offline_access"}
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
*Config
// contains filtered or unexported fields
}
func NewAuthorizer ¶
func NewAuthorizer(config *Config) *Authorizer
func (*Authorizer) RequestCode ¶
func (a *Authorizer) RequestCode(ctx context.Context) (Code, error)
func (*Authorizer) WaitForAuthorization ¶
type Provider ¶ added in v0.0.2
func NewProvider ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.