Documentation ¶
Overview ¶
Package oauth2x provides shared functions for setting up an oauth2 client configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTokenEndpointMissing is returned when the issuers .well-known/openid-configuration is missing the token_endpoint key. ErrTokenEndpointMissing = errors.New("token endpoint missing from issuer well-known openid-configuration") )
Functions ¶
func MustViperFlags ¶
MustViperFlags adds oidc oauth2 client credentials config to the provided flagset and binds to viper
func NewClientCredentialsTokenSrc ¶
NewClientCredentialsTokenSrc returns an oauth2 client credentials token source
Types ¶
Click to show internal directories.
Click to hide internal directories.