Documentation ¶
Index ¶
- func CallRegistry(ctx context.Context, r Registry)
- func WithConfig(config *config.DefaultProvider) func(o *options)
- type OptionsModifier
- type Registry
- func New(ctx context.Context, sl *servicelocatorx.Options, opts []OptionsModifier) (Registry, error)
- func NewRegistryFromDSN(ctx context.Context, c *config.DefaultProvider, l *logrusx.Logger, ...) (Registry, error)
- func NewRegistryWithoutInit(c *config.DefaultProvider, l *logrusx.Logger) (Registry, error)
- type RegistryBase
- func (m *RegistryBase) AccessRequestHooks() []oauth2.AccessRequestHook
- func (m *RegistryBase) AccessTokenJWTStrategy() jwk.JWTSigner
- func (m *RegistryBase) AudienceStrategy() fosite.AudienceMatchingStrategy
- func (m *RegistryBase) AuditLogger() *logrusx.Logger
- func (m *RegistryBase) BuildDate() string
- func (m *RegistryBase) BuildHash() string
- func (m *RegistryBase) BuildVersion() string
- func (m *RegistryBase) ClientHandler() *client.Handler
- func (m *RegistryBase) ClientHasher() fosite.Hasher
- func (m *RegistryBase) ClientValidator() *client.Validator
- func (m *RegistryBase) Config() *config.DefaultProvider
- func (m *RegistryBase) ConsentHandler() *consent.Handler
- func (m *RegistryBase) ConsentStrategy() consent.Strategy
- func (m *RegistryBase) Contextualizer() contextx.Contextualizer
- func (m *RegistryBase) CookieStore(ctx context.Context) (sessions.Store, error)
- func (m *RegistryBase) GetJWKSFetcherStrategy() fosite.JWKSFetcherStrategy
- func (m *RegistryBase) GrantValidator() *trust.GrantValidator
- func (m *RegistryBase) HSMContext() hsm.Context
- func (m *RegistryBase) HTTPClient(ctx context.Context, opts ...httpx.ResilientOptions) *retryablehttp.Client
- func (m *RegistryBase) HealthHandler() *healthx.Handler
- func (m *RegistryBase) JWTGrantHandler() *trust.Handler
- func (m *RegistryBase) KeyCipher() *jwk.AEAD
- func (m *RegistryBase) KeyHandler() *jwk.Handler
- func (m *RegistryBase) Logger() *logrusx.Logger
- func (m *RegistryBase) OAuth2AwareMiddleware(ctx context.Context) func(h http.Handler) http.Handler
- func (m *RegistryBase) OAuth2Config() *fositex.Config
- func (m *RegistryBase) OAuth2HMACStrategy() *foauth2.HMACSHAStrategy
- func (m *RegistryBase) OAuth2Handler() *oauth2.Handler
- func (m *RegistryBase) OAuth2Provider() fosite.OAuth2Provider
- func (m *RegistryBase) OAuth2ProviderConfig() fosite.Configurator
- func (m *RegistryBase) OpenIDConnectRequestValidator() *openid.OpenIDConnectRequestValidator
- func (m *RegistryBase) OpenIDJWTStrategy() jwk.JWTSigner
- func (m *RegistryBase) Persister() persistence.Persister
- func (m *RegistryBase) PrometheusManager() *prometheus.MetricsManager
- func (m *RegistryBase) RegisterRoutes(ctx context.Context, admin *httprouterx.RouterAdmin, ...)
- func (m *RegistryBase) SubjectIdentifierAlgorithm(ctx context.Context) map[string]consent.SubjectIdentifierAlgorithm
- func (m *RegistryBase) Tracer(ctx context.Context) *otelx.Tracer
- func (m *RegistryBase) WithBuildInfo(version, hash, date string) Registry
- func (m *RegistryBase) WithConfig(c *config.DefaultProvider) Registry
- func (m *RegistryBase) WithConsentStrategy(c consent.Strategy)
- func (m *RegistryBase) WithContextualizer(ctxer contextx.Contextualizer) Registry
- func (m *RegistryBase) WithHsmContext(h hsm.Context)
- func (m *RegistryBase) WithLogger(l *logrusx.Logger) Registry
- func (m *RegistryBase) WithOAuth2Provider(f fosite.OAuth2Provider)
- func (m *RegistryBase) Writer() herodot.Writer
- type RegistrySQL
- func (m *RegistrySQL) CanHandle(dsn string) bool
- func (m *RegistrySQL) ClientAuthenticator() x.ClientAuthenticator
- func (m *RegistrySQL) ClientManager() client.Manager
- func (m *RegistrySQL) ConsentManager() consent.Manager
- func (m *RegistrySQL) GrantManager() trust.GrantManager
- func (m *RegistrySQL) Init(ctx context.Context, skipNetworkInit bool, migrate bool, ...) error
- func (m *RegistrySQL) KeyManager() jwk.Manager
- func (m *RegistrySQL) OAuth2Storage() x.FositeStorer
- func (m *RegistrySQL) Ping() error
- func (m *RegistrySQL) SoftwareKeyManager() jwk.Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallRegistry ¶
func WithConfig ¶
func WithConfig(config *config.DefaultProvider) func(o *options)
Types ¶
type OptionsModifier ¶
type OptionsModifier func(*options)
func DisablePreloading ¶
func DisablePreloading() OptionsModifier
DisablePreloading will not preload the config.
func DisableValidation ¶
func DisableValidation() OptionsModifier
DisableValidation validating the config.
This does not affect schema validation!
func SkipNetworkInit ¶
func SkipNetworkInit() OptionsModifier
func WithOptions ¶
func WithOptions(opts ...configx.OptionModifier) OptionsModifier
type Registry ¶
type Registry interface { dbal.Driver Init(ctx context.Context, skipNetworkInit bool, migrate bool, ctxer contextx.Contextualizer) error WithBuildInfo(v, h, d string) Registry WithConfig(c *config.DefaultProvider) Registry WithContextualizer(ctxer contextx.Contextualizer) Registry WithLogger(l *logrusx.Logger) Registry x.HTTPClientProvider GetJWKSFetcherStrategy() fosite.JWKSFetcherStrategy config.Provider persistence.Provider x.RegistryLogger x.RegistryWriter x.RegistryCookieStore client.Registry consent.Registry jwk.Registry trust.Registry oauth2.Registry PrometheusManager() *prometheus.MetricsManager x.TracingProvider RegisterRoutes(ctx context.Context, admin *httprouterx.RouterAdmin, public *httprouterx.RouterPublic) ClientHandler() *client.Handler KeyHandler() *jwk.Handler ConsentHandler() *consent.Handler OAuth2Handler() *oauth2.Handler HealthHandler() *healthx.Handler OAuth2HMACStrategy() *foauth2.HMACSHAStrategy WithOAuth2Provider(f fosite.OAuth2Provider) WithConsentStrategy(c consent.Strategy) WithHsmContext(h hsm.Context) }
func New ¶
func New(ctx context.Context, sl *servicelocatorx.Options, opts []OptionsModifier) (Registry, error)
func NewRegistryFromDSN ¶
func NewRegistryWithoutInit ¶
type RegistryBase ¶
type RegistryBase struct {
// contains filtered or unexported fields
}
func (*RegistryBase) AccessRequestHooks ¶
func (m *RegistryBase) AccessRequestHooks() []oauth2.AccessRequestHook
func (*RegistryBase) AccessTokenJWTStrategy ¶
func (m *RegistryBase) AccessTokenJWTStrategy() jwk.JWTSigner
func (*RegistryBase) AudienceStrategy ¶
func (m *RegistryBase) AudienceStrategy() fosite.AudienceMatchingStrategy
func (*RegistryBase) AuditLogger ¶
func (m *RegistryBase) AuditLogger() *logrusx.Logger
func (*RegistryBase) BuildDate ¶
func (m *RegistryBase) BuildDate() string
func (*RegistryBase) BuildHash ¶
func (m *RegistryBase) BuildHash() string
func (*RegistryBase) BuildVersion ¶
func (m *RegistryBase) BuildVersion() string
func (*RegistryBase) ClientHandler ¶
func (m *RegistryBase) ClientHandler() *client.Handler
func (*RegistryBase) ClientHasher ¶
func (m *RegistryBase) ClientHasher() fosite.Hasher
func (*RegistryBase) ClientValidator ¶
func (m *RegistryBase) ClientValidator() *client.Validator
func (*RegistryBase) Config ¶
func (m *RegistryBase) Config() *config.DefaultProvider
Config returns the configuration for the given context. It may or may not be the same as the global configuration.
func (*RegistryBase) ConsentHandler ¶
func (m *RegistryBase) ConsentHandler() *consent.Handler
func (*RegistryBase) ConsentStrategy ¶
func (m *RegistryBase) ConsentStrategy() consent.Strategy
func (*RegistryBase) Contextualizer ¶
func (m *RegistryBase) Contextualizer() contextx.Contextualizer
func (*RegistryBase) CookieStore ¶
func (*RegistryBase) GetJWKSFetcherStrategy ¶
func (m *RegistryBase) GetJWKSFetcherStrategy() fosite.JWKSFetcherStrategy
func (*RegistryBase) GrantValidator ¶
func (m *RegistryBase) GrantValidator() *trust.GrantValidator
func (*RegistryBase) HSMContext ¶
func (m *RegistryBase) HSMContext() hsm.Context
func (*RegistryBase) HTTPClient ¶
func (m *RegistryBase) HTTPClient(ctx context.Context, opts ...httpx.ResilientOptions) *retryablehttp.Client
func (*RegistryBase) HealthHandler ¶
func (m *RegistryBase) HealthHandler() *healthx.Handler
func (*RegistryBase) JWTGrantHandler ¶
func (m *RegistryBase) JWTGrantHandler() *trust.Handler
func (*RegistryBase) KeyCipher ¶
func (m *RegistryBase) KeyCipher() *jwk.AEAD
func (*RegistryBase) KeyHandler ¶
func (m *RegistryBase) KeyHandler() *jwk.Handler
func (*RegistryBase) Logger ¶
func (m *RegistryBase) Logger() *logrusx.Logger
func (*RegistryBase) OAuth2AwareMiddleware ¶
func (*RegistryBase) OAuth2Config ¶
func (m *RegistryBase) OAuth2Config() *fositex.Config
func (*RegistryBase) OAuth2HMACStrategy ¶
func (m *RegistryBase) OAuth2HMACStrategy() *foauth2.HMACSHAStrategy
func (*RegistryBase) OAuth2Handler ¶
func (m *RegistryBase) OAuth2Handler() *oauth2.Handler
func (*RegistryBase) OAuth2Provider ¶
func (m *RegistryBase) OAuth2Provider() fosite.OAuth2Provider
func (*RegistryBase) OAuth2ProviderConfig ¶
func (m *RegistryBase) OAuth2ProviderConfig() fosite.Configurator
func (*RegistryBase) OpenIDConnectRequestValidator ¶
func (m *RegistryBase) OpenIDConnectRequestValidator() *openid.OpenIDConnectRequestValidator
func (*RegistryBase) OpenIDJWTStrategy ¶
func (m *RegistryBase) OpenIDJWTStrategy() jwk.JWTSigner
func (*RegistryBase) Persister ¶
func (m *RegistryBase) Persister() persistence.Persister
func (*RegistryBase) PrometheusManager ¶
func (m *RegistryBase) PrometheusManager() *prometheus.MetricsManager
func (*RegistryBase) RegisterRoutes ¶
func (m *RegistryBase) RegisterRoutes(ctx context.Context, admin *httprouterx.RouterAdmin, public *httprouterx.RouterPublic)
func (*RegistryBase) SubjectIdentifierAlgorithm ¶
func (m *RegistryBase) SubjectIdentifierAlgorithm(ctx context.Context) map[string]consent.SubjectIdentifierAlgorithm
func (*RegistryBase) WithBuildInfo ¶
func (m *RegistryBase) WithBuildInfo(version, hash, date string) Registry
func (*RegistryBase) WithConfig ¶
func (m *RegistryBase) WithConfig(c *config.DefaultProvider) Registry
func (*RegistryBase) WithConsentStrategy ¶
func (m *RegistryBase) WithConsentStrategy(c consent.Strategy)
WithConsentStrategy forces a consent strategy which is only used for testing.
func (*RegistryBase) WithContextualizer ¶
func (m *RegistryBase) WithContextualizer(ctxer contextx.Contextualizer) Registry
func (*RegistryBase) WithHsmContext ¶
func (m *RegistryBase) WithHsmContext(h hsm.Context)
func (*RegistryBase) WithLogger ¶
func (m *RegistryBase) WithLogger(l *logrusx.Logger) Registry
func (*RegistryBase) WithOAuth2Provider ¶
func (m *RegistryBase) WithOAuth2Provider(f fosite.OAuth2Provider)
WithOAuth2Provider forces an oauth2 provider which is only used for testing.
func (*RegistryBase) Writer ¶
func (m *RegistryBase) Writer() herodot.Writer
type RegistrySQL ¶
type RegistrySQL struct { *RegistryBase // contains filtered or unexported fields }
func NewRegistrySQL ¶
func NewRegistrySQL() *RegistrySQL
func (*RegistrySQL) CanHandle ¶
func (m *RegistrySQL) CanHandle(dsn string) bool
func (*RegistrySQL) ClientAuthenticator ¶
func (m *RegistrySQL) ClientAuthenticator() x.ClientAuthenticator
func (*RegistrySQL) ClientManager ¶
func (m *RegistrySQL) ClientManager() client.Manager
func (*RegistrySQL) ConsentManager ¶
func (m *RegistrySQL) ConsentManager() consent.Manager
func (*RegistrySQL) GrantManager ¶
func (m *RegistrySQL) GrantManager() trust.GrantManager
func (*RegistrySQL) Init ¶
func (m *RegistrySQL) Init( ctx context.Context, skipNetworkInit bool, migrate bool, ctxer contextx.Contextualizer, ) error
func (*RegistrySQL) KeyManager ¶
func (m *RegistrySQL) KeyManager() jwk.Manager
func (*RegistrySQL) OAuth2Storage ¶
func (m *RegistrySQL) OAuth2Storage() x.FositeStorer
func (*RegistrySQL) Ping ¶
func (m *RegistrySQL) Ping() error
func (*RegistrySQL) SoftwareKeyManager ¶
func (m *RegistrySQL) SoftwareKeyManager() jwk.Manager
Source Files ¶
Click to show internal directories.
Click to hide internal directories.