Documentation ¶
Index ¶
- Constants
- func AddProvider(oidcProviderConfig OIDCProviderConfig) (err error)
- func NotifyToken(state string, secret disco.NetworkSecret) error
- func OIDCAuthURL(w http.ResponseWriter, r *http.Request)
- func OIDCSecret(w http.ResponseWriter, r *http.Request)
- func OIDCSelector(w http.ResponseWriter, r *http.Request)
- type OIDCProvider
- type OIDCProviderConfig
Constants ¶
View Source
const ( ProviderGoogle = "google" ProviderGithub = "github" )
Variables ¶
This section is empty.
Functions ¶
func AddProvider ¶
func AddProvider(oidcProviderConfig OIDCProviderConfig) (err error)
func NotifyToken ¶
func NotifyToken(state string, secret disco.NetworkSecret) error
func OIDCAuthURL ¶ added in v0.5.8
func OIDCAuthURL(w http.ResponseWriter, r *http.Request)
func OIDCSecret ¶ added in v0.5.8
func OIDCSecret(w http.ResponseWriter, r *http.Request)
func OIDCSelector ¶ added in v0.5.8
func OIDCSelector(w http.ResponseWriter, r *http.Request)
Types ¶
type OIDCProvider ¶
type OIDCProvider struct {
// contains filtered or unexported fields
}
func Provider ¶
func Provider(providerName string) (*OIDCProvider, bool)
type OIDCProviderConfig ¶
type OIDCProviderConfig struct { Name string `yaml:"name"` Issuer string `yaml:"issuer"` ClientID string `yaml:"client_id"` ClientSecret string `yaml:"client_secret"` RedirectURL string `yaml:"redirect_url"` Scopes []string `yaml:"scopes"` AuthURL string `yaml:"auth_url"` TokenURL string `yaml:"token_url"` UserInfoURL string `yaml:"user_info_url"` }
Click to show internal directories.
Click to hide internal directories.