Documentation ¶
Overview ¶
Package all contains things that are common amongst all providers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Enabled bool `default:"false"` ClientID string `required:"true"` ClientSecret string `required:"true"` }
Configuration is the standard config required by all OAuth2 providers.
func LoadProvider ¶
func LoadProvider(name string) Configuration
LoadProvider attempts to load a configuration for an OAuth2 provider from environment variables. The way this works is, if the parse fails then the provider is considered disabled and an empty configuration is returned.
Click to show internal directories.
Click to hide internal directories.