Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrState = errors.New("Invalid state")
ErrState indicates the state is invalid.
Functions ¶
Types ¶
type Config ¶
type Config struct { // HTTP client used to communicate with the authorization // server. If nil, DefaultClient is used. Client *http.Client // ClientID is the identifier issued to the application // during the registration process. ClientID string // ClientSecret is the secret issued to the application // during the registration process. ClientSecret string // Scope is the scope of the access request. Scope []string // RedirectURL is used by the authorization server to // return the authorization credentials to the client. RedirectURL string // AccessTokenURL is used by the client to exchange an // authorization grant for an access token. AccessTokenURL string // AuthorizationURL is used by the client to obtain // authorization from the resource owner. AuthorizationURL string // BasicAuthOff instructs the client to disable use of // the authorization header and provide the client_id // and client_secret in the formdata. BasicAuthOff bool // Logger is used to log errors. If nil the provider // use the default noop logger. Logger logger.Logger // Dumper is used to dump the http.Request and // http.Response for debug purposes. Dumper logger.Dumper }
Config stores the application configuration.
Click to show internal directories.
Click to hide internal directories.