Versions in this module Expand all Collapse all v1 v1.0.1 Feb 21, 2024 v1.0.0 Feb 21, 2024 Changes in this version + var DefaultConfig = &Config + func MustParseURL(rawURL string) *url.URL + type AuthorizationServer struct + AccessTokenLifespan config.Duration + AuthorizationCodeLifespan config.Duration + ClaimSymmetricEncryptionKeySecretName string + Issuer string + OldTokenSigningRSAKeySecretName string + RefreshTokenLifespan config.Duration + StaticClients map[string]*fosite.DefaultClient + TokenSigningRSAKeySecretName string + type AuthorizationServerType int + const AuthorizationServerTypeExternal + const AuthorizationServerTypeSelf + func AuthorizationServerTypeString(s string) (AuthorizationServerType, error) + func AuthorizationServerTypeValues() []AuthorizationServerType + func (i *AuthorizationServerType) UnmarshalJSON(data []byte) error + func (i AuthorizationServerType) IsAAuthorizationServerType() bool + func (i AuthorizationServerType) MarshalJSON() ([]byte, error) + func (i AuthorizationServerType) String() string + type Config struct + AppAuth OAuth2Options + AuthorizedURIs []config.URL + DisableForGrpc bool + DisableForHTTP bool + GrpcAuthorizationHeader string + HTTPAuthorizationHeader string + HTTPProxyURL config.URL + UserAuth UserAuthConfig + func GetConfig() *Config + func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet + type CookieSettings struct + Domain string + SameSitePolicy SameSite + type ExternalAuthorizationServer struct + AllowedAudience []string + BaseURL config.URL + HTTPProxyURL config.URL + MetadataEndpointURL config.URL + RetryAttempts int + RetryDelay config.Duration + type KozmoClientConfig struct + Audience string + ClientID string + RedirectURI string + Scopes []string + type OAuth2Options struct + AuthServerType AuthorizationServerType + ExternalAuthServer ExternalAuthorizationServer + SelfAuthServer AuthorizationServer + ThirdParty ThirdPartyConfigOptions + type OpenIDOptions struct + BaseURL config.URL + ClientID string + ClientSecretName string + DeprecatedClientSecretFile string + Scopes []string + type SameSite int + const SameSiteDefaultMode + const SameSiteLaxMode + const SameSiteNoneMode + const SameSiteStrictMode + func SameSiteString(s string) (SameSite, error) + func SameSiteValues() []SameSite + func (i *SameSite) UnmarshalJSON(data []byte) error + func (i SameSite) IsASameSite() bool + func (i SameSite) MarshalJSON() ([]byte, error) + func (i SameSite) String() string + type SecretName = string + const SecretNameClaimSymmetricKey + const SecretNameCookieBlockKey + const SecretNameCookieHashKey + const SecretNameOIdCClientSecret + const SecretNameOldTokenSigningRSAKey + const SecretNameTokenSigningRSAKey + type ThirdPartyConfigOptions struct + KozmoClientConfig KozmoClientConfig + func (o ThirdPartyConfigOptions) IsEmpty() bool + type UserAuthConfig struct + CookieBlockKeySecretName string + CookieHashKeySecretName string + CookieSetting CookieSettings + HTTPProxyURL config.URL + IDPQueryParameter string + OpenID OpenIDOptions + RedirectURL config.URL