Documentation ¶
Index ¶
- Constants
- func AddProvider(oidcProviderConfig OIDCProviderConfig) (err error)
- func HandleNotifyToken(w http.ResponseWriter, r *http.Request)
- func NotifyToken(state string, secret peer.NetworkSecret) error
- func RedirectAuthURL(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 HandleNotifyToken ¶
func HandleNotifyToken(w http.ResponseWriter, r *http.Request)
func NotifyToken ¶
func NotifyToken(state string, secret peer.NetworkSecret) error
func RedirectAuthURL ¶
func RedirectAuthURL(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.