Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { PrivateProviderID string `mapstructure:"-"` PrivateProviderIDTrustedContext string `mapstructure:"-"` ListenAddr string `mapstructure:"listen-addr"` TLSCertFile string `mapstructure:"tls-cert-file"` TLSKeyFile string `mapstructure:"tls-key-file"` TLSInsecureSkipVerify bool `mapstructure:"tls-insecure-skip-verify"` HydraAddr string `mapstructure:"hydra-addr"` ExternalBaseURL string `mapstructure:"external-base-url"` OAuth2RedirectURL string `mapstructure:"oauth2-redirect-url"` ChallengeLifespan time.Duration `mapstructure:"challenge-lifespan"` ConfirmationLinkLifespan time.Duration `mapstructure:"confirmation-link-lifespan"` AuthCookieName string `mapstructure:"auth-cookie-name"` AuthHeaderName string `mapstructure:"auth-header-name"` EmailConfig EmailConfig `mapstructure:"email-config"` MongoDB DBConfig `mapstructure:"mongodb"` OAuth2State OAuth2State `mapstructure:"oauth2-state"` PrivateOAuth2Provider *OAuth2Provider `mapstructure:"private-oauth2-provider"` OAuth2Providers []*OAuth2Provider `mapstructure:"oauth2-providers"` OAuth2ClientCredentials *clientcredentials.Config ModTime time.Time }
func (Config) ToAuthkitType ¶
type EmailConfig ¶
type OAuth2Provider ¶
type OAuth2Provider struct { ID string `mapstructure:"id"` Name string `mapstructure:"name"` ClientID string `mapstructure:"client-id"` ClientSecret string `mapstructure:"client-secret"` PublicKey string `mapstructure:"public-key"` Scopes []string `mapstructure:"scopes"` IconURL string `mapstructure:"icon"` TokenURL string `mapstructure:"token-url"` AuthURL string `mapstructure:"auth-url"` OAuth2Config authkit.OAuth2Config PrivateOAuth2Config authkit.OAuth2Config }
func (OAuth2Provider) ToAuthkitType ¶
func (p OAuth2Provider) ToAuthkitType() authkit.OAuth2Provider
type OAuth2State ¶
type OAuth2State struct { TokenIssuer string `mapstructure:"token-issuer"` TokenSignKeyHex string `mapstructure:"token-sign-key"` Expiration time.Duration `mapstructure:"expiration"` TokenSignKey []byte }
func (OAuth2State) ToAuthkitType ¶
func (s OAuth2State) ToAuthkitType() authkit.OAuth2State
Click to show internal directories.
Click to hide internal directories.