Documentation ¶
Index ¶
- Constants
- func MustValidate(l logrus.FieldLogger, p Provider)
- type Provider
- type ViperProvider
- func (v *ViperProvider) AccessTokenLifespan() time.Duration
- func (v *ViperProvider) AccessTokenStrategy() string
- func (v *ViperProvider) AdminListenOn() string
- func (v *ViperProvider) AllowTLSTerminationFrom() []string
- func (v *ViperProvider) AuthCodeLifespan() time.Duration
- func (v *ViperProvider) BCryptCost() int
- func (v *ViperProvider) CORSEnabled(iface string) bool
- func (v *ViperProvider) CORSOptions(iface string) cors.Options
- func (v *ViperProvider) ConsentRequestMaxAge() time.Duration
- func (v *ViperProvider) ConsentURL() *url.URL
- func (v *ViperProvider) DSN() string
- func (v *ViperProvider) DataSourcePlugin() string
- func (v *ViperProvider) DefaultClientScope() []string
- func (v *ViperProvider) ErrorURL() *url.URL
- func (v *ViperProvider) GetCookieSecrets() [][]byte
- func (v *ViperProvider) GetRotatedSystemSecrets() [][]byte
- func (v *ViperProvider) GetSystemSecret() []byte
- func (v *ViperProvider) IDTokenLifespan() time.Duration
- func (v *ViperProvider) InsecureRedirects() []string
- func (v *ViperProvider) IsUsingJWTAsAccessTokens() bool
- func (v *ViperProvider) IssuerURL() *url.URL
- func (v *ViperProvider) LoginURL() *url.URL
- func (v *ViperProvider) LogoutRedirectURL() *url.URL
- func (v *ViperProvider) LogoutURL() *url.URL
- func (v *ViperProvider) OAuth2AuthURL() string
- func (v *ViperProvider) OAuth2ClientRegistrationURL() *url.URL
- func (v *ViperProvider) OIDCDiscoverySupportedClaims() []string
- func (v *ViperProvider) OIDCDiscoverySupportedScope() []string
- func (v *ViperProvider) OIDCDiscoveryUserinfoEndpoint() string
- func (v *ViperProvider) PublicListenOn() string
- func (v *ViperProvider) PublicURL() *url.URL
- func (v *ViperProvider) RefreshTokenLifespan() time.Duration
- func (v *ViperProvider) ScopeStrategy() string
- func (v *ViperProvider) ServesHTTPS() bool
- func (v *ViperProvider) ShareOAuth2Debug() bool
- func (v *ViperProvider) SubjectIdentifierAlgorithmSalt() string
- func (v *ViperProvider) SubjectTypesSupported() []string
- func (v *ViperProvider) TracingJaegerConfig() *tracing.JaegerConfig
- func (v *ViperProvider) TracingProvider() string
- func (v *ViperProvider) TracingServiceName() string
- func (v *ViperProvider) WellKnownKeys(include ...string) []string
Constants ¶
View Source
const ( ViperKeyWellKnownKeys = "webfinger.jwks.broadcast_keys" ViperKeyOAuth2ClientRegistrationURL = "webfinger.oidc_discovery.client_registration_url" ViperKeyOIDCDiscoverySupportedClaims = "webfinger.oidc_discovery.supported_claims" ViperKeyOIDCDiscoverySupportedScope = "webfinger.oidc_discovery.supported_scope" ViperKeyOIDCDiscoveryUserinfoEndpoint = "webfinger.oidc_discovery.userinfo_url" ViperKeySubjectTypesSupported = "oidc.subject_identifiers.enabled" ViperKeyDefaultClientScope = "oidc.dynamic_client_registration.default_scope" ViperKeyDSN = "dsn" ViperKeyBCryptCost = "oauth2.hashers.bcrypt.cost" ViperKeyAdminListenOnHost = "serve.admin.host" ViperKeyAdminListenOnPort = "serve.admin.port" ViperKeyPublicListenOnHost = "serve.public.host" ViperKeyPublicListenOnPort = "serve.public.port" ViperKeyConsentRequestMaxAge = "ttl.login_consent_request" ViperKeyAccessTokenLifespan = "ttl.access_token" ViperKeyRefreshTokenLifespan = "ttl.refresh_token" ViperKeyIDTokenLifespan = "ttl.id_token" ViperKeyAuthCodeLifespan = "ttl.auth_code" ViperKeyScopeStrategy = "strategies.scope" ViperKeyGetCookieSecrets = "secrets.cookie" ViperKeyGetSystemSecret = "secrets.system" ViperKeyLogoutRedirectURL = "urls.post_logout_redirect" ViperKeyLoginURL = "urls.login" ViperKeyLogoutURL = "urls.logout" ViperKeyConsentURL = "urls.consent" ViperKeyErrorURL = "urls.error" ViperKeyPublicURL = "urls.self.public" ViperKeyIssuerURL = "urls.self.issuer" ViperKeyAllowTLSTerminationFrom = "serve.tls.allow_termination_from" ViperKeyAccessTokenStrategy = "strategies.access_token" ViperKeySubjectIdentifierAlgorithmSalt = "oidc.subject_identifiers.pairwise.salt" )
Variables ¶
This section is empty.
Functions ¶
func MustValidate ¶
func MustValidate(l logrus.FieldLogger, p Provider)
Types ¶
type Provider ¶
type Provider interface { ServesHTTPS() bool //HashSignature() bool IsUsingJWTAsAccessTokens() bool WellKnownKeys(include ...string) []string InsecureRedirects() []string CORSEnabled(iface string) bool CORSOptions(iface string) cors.Options SubjectTypesSupported() []string ConsentURL() *url.URL ErrorURL() *url.URL PublicURL() *url.URL IssuerURL() *url.URL OAuth2AuthURL() string OAuth2ClientRegistrationURL() *url.URL AllowTLSTerminationFrom() []string AccessTokenStrategy() string SubjectIdentifierAlgorithmSalt() string OIDCDiscoverySupportedScope() []string OIDCDiscoverySupportedClaims() []string OIDCDiscoveryUserinfoEndpoint() string DSN() string BCryptCost() int DataSourcePlugin() string DefaultClientScope() []string AdminListenOn() string PublicListenOn() string ConsentRequestMaxAge() time.Duration AccessTokenLifespan() time.Duration RefreshTokenLifespan() time.Duration IDTokenLifespan() time.Duration AuthCodeLifespan() time.Duration ScopeStrategy() string TracingServiceName() string TracingProvider() string TracingJaegerConfig() *tracing.JaegerConfig GetCookieSecrets() [][]byte GetRotatedSystemSecrets() [][]byte GetSystemSecret() []byte LogoutRedirectURL() *url.URL LoginURL() *url.URL LogoutURL() *url.URL }
func NewViperProvider ¶
func NewViperProvider(l logrus.FieldLogger, forcedHTTP bool, insecureRedirects []string) Provider
type ViperProvider ¶
type ViperProvider struct {
// contains filtered or unexported fields
}
func (*ViperProvider) AccessTokenLifespan ¶
func (v *ViperProvider) AccessTokenLifespan() time.Duration
func (*ViperProvider) AccessTokenStrategy ¶
func (v *ViperProvider) AccessTokenStrategy() string
func (*ViperProvider) AdminListenOn ¶
func (v *ViperProvider) AdminListenOn() string
func (*ViperProvider) AllowTLSTerminationFrom ¶
func (v *ViperProvider) AllowTLSTerminationFrom() []string
func (*ViperProvider) AuthCodeLifespan ¶
func (v *ViperProvider) AuthCodeLifespan() time.Duration
func (*ViperProvider) BCryptCost ¶
func (v *ViperProvider) BCryptCost() int
func (*ViperProvider) CORSEnabled ¶
func (v *ViperProvider) CORSEnabled(iface string) bool
func (*ViperProvider) CORSOptions ¶
func (v *ViperProvider) CORSOptions(iface string) cors.Options
func (*ViperProvider) ConsentRequestMaxAge ¶
func (v *ViperProvider) ConsentRequestMaxAge() time.Duration
func (*ViperProvider) ConsentURL ¶
func (v *ViperProvider) ConsentURL() *url.URL
func (*ViperProvider) DSN ¶
func (v *ViperProvider) DSN() string
func (*ViperProvider) DataSourcePlugin ¶
func (v *ViperProvider) DataSourcePlugin() string
func (*ViperProvider) DefaultClientScope ¶
func (v *ViperProvider) DefaultClientScope() []string
func (*ViperProvider) ErrorURL ¶
func (v *ViperProvider) ErrorURL() *url.URL
func (*ViperProvider) GetCookieSecrets ¶
func (v *ViperProvider) GetCookieSecrets() [][]byte
func (*ViperProvider) GetRotatedSystemSecrets ¶
func (v *ViperProvider) GetRotatedSystemSecrets() [][]byte
func (*ViperProvider) GetSystemSecret ¶
func (v *ViperProvider) GetSystemSecret() []byte
func (*ViperProvider) IDTokenLifespan ¶
func (v *ViperProvider) IDTokenLifespan() time.Duration
func (*ViperProvider) InsecureRedirects ¶
func (v *ViperProvider) InsecureRedirects() []string
func (*ViperProvider) IsUsingJWTAsAccessTokens ¶
func (v *ViperProvider) IsUsingJWTAsAccessTokens() bool
func (*ViperProvider) IssuerURL ¶
func (v *ViperProvider) IssuerURL() *url.URL
func (*ViperProvider) LoginURL ¶
func (v *ViperProvider) LoginURL() *url.URL
func (*ViperProvider) LogoutRedirectURL ¶
func (v *ViperProvider) LogoutRedirectURL() *url.URL
func (*ViperProvider) LogoutURL ¶
func (v *ViperProvider) LogoutURL() *url.URL
func (*ViperProvider) OAuth2AuthURL ¶
func (v *ViperProvider) OAuth2AuthURL() string
func (*ViperProvider) OAuth2ClientRegistrationURL ¶
func (v *ViperProvider) OAuth2ClientRegistrationURL() *url.URL
func (*ViperProvider) OIDCDiscoverySupportedClaims ¶
func (v *ViperProvider) OIDCDiscoverySupportedClaims() []string
func (*ViperProvider) OIDCDiscoverySupportedScope ¶
func (v *ViperProvider) OIDCDiscoverySupportedScope() []string
func (*ViperProvider) OIDCDiscoveryUserinfoEndpoint ¶
func (v *ViperProvider) OIDCDiscoveryUserinfoEndpoint() string
func (*ViperProvider) PublicListenOn ¶
func (v *ViperProvider) PublicListenOn() string
func (*ViperProvider) PublicURL ¶
func (v *ViperProvider) PublicURL() *url.URL
func (*ViperProvider) RefreshTokenLifespan ¶
func (v *ViperProvider) RefreshTokenLifespan() time.Duration
func (*ViperProvider) ScopeStrategy ¶
func (v *ViperProvider) ScopeStrategy() string
func (*ViperProvider) ServesHTTPS ¶
func (v *ViperProvider) ServesHTTPS() bool
func (*ViperProvider) ShareOAuth2Debug ¶
func (v *ViperProvider) ShareOAuth2Debug() bool
func (*ViperProvider) SubjectIdentifierAlgorithmSalt ¶
func (v *ViperProvider) SubjectIdentifierAlgorithmSalt() string
func (*ViperProvider) SubjectTypesSupported ¶
func (v *ViperProvider) SubjectTypesSupported() []string
func (*ViperProvider) TracingJaegerConfig ¶
func (v *ViperProvider) TracingJaegerConfig() *tracing.JaegerConfig
func (*ViperProvider) TracingProvider ¶
func (v *ViperProvider) TracingProvider() string
func (*ViperProvider) TracingServiceName ¶
func (v *ViperProvider) TracingServiceName() string
func (*ViperProvider) WellKnownKeys ¶
func (v *ViperProvider) WellKnownKeys(include ...string) []string
Click to show internal directories.
Click to hide internal directories.