Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrProviderNotFound = fmt.Errorf("provider not found")
)
Functions ¶
func RegisterProviderFactory ¶
func RegisterProviderFactory(factory ProviderFactory)
Types ¶
type Options ¶
type Options struct { Enabled bool `json:"enabled" yaml:"enabled"` MFAProviders []ProviderOptions `json:"mfaProviders" yaml:"mfaProviders"` }
func NewOptions ¶
func NewOptions() *Options
type Provider ¶
type Provider interface { Verify(req url.Values, info user.Info) error Request(info user.Info) error UserProviderConfig(info user.Info, token string) UserMFAProvider }
func GetProvider ¶
type ProviderFactory ¶
type ProviderOptions ¶
type ProviderOptions struct { Type string `json:"type" yaml:"type"` Options oauth.DynamicOptions `json:"options" yaml:"options"` }
type UserMFAProvider ¶
Click to show internal directories.
Click to hide internal directories.