Documentation ¶
Index ¶
- Constants
- func CallRegistry(r Registry)
- func OAuth2AwareCORSMiddleware(iface string, reg Registry, conf configuration.Provider) func(h http.Handler) http.Handler
- type DefaultDriver
- type Driver
- type Registry
- type RegistryBase
- func (m *RegistryBase) AccessTokenJWTStrategy() jwk.JWTStrategy
- func (m *RegistryBase) AudienceStrategy() fosite.AudienceMatchingStrategy
- 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) ConsentHandler() *consent.Handler
- func (m *RegistryBase) ConsentStrategy() consent.Strategy
- func (m *RegistryBase) CookieStore() sessions.Store
- func (m *RegistryBase) FositeOpenIDDefaultStrategy() *openid.DefaultStrategy
- func (m *RegistryBase) HealthHandler() *healthx.Handler
- func (m *RegistryBase) KeyCipher() *jwk.AEAD
- func (m *RegistryBase) KeyGenerators() map[string]jwk.KeyGenerator
- func (m *RegistryBase) KeyHandler() *jwk.Handler
- func (m *RegistryBase) Logger() *logrusx.Logger
- func (m *RegistryBase) OAuth2AwareMiddleware() func(h http.Handler) http.Handler
- func (m *RegistryBase) OAuth2HMACStrategy() *foauth2.HMACSHAStrategy
- func (m *RegistryBase) OAuth2Handler() *oauth2.Handler
- func (m *RegistryBase) OAuth2Provider() fosite.OAuth2Provider
- func (m *RegistryBase) OpenIDConnectRequestValidator() *openid.OpenIDConnectRequestValidator
- func (m *RegistryBase) OpenIDJWTStrategy() jwk.JWTStrategy
- func (m *RegistryBase) Persister() persistence.Persister
- func (m *RegistryBase) PrometheusManager() *prometheus.MetricsManager
- func (m *RegistryBase) RegisterRoutes(admin *x.RouterAdmin, public *x.RouterPublic)
- func (m *RegistryBase) ScopeStrategy() fosite.ScopeStrategy
- func (m *RegistryBase) SubjectIdentifierAlgorithm() map[string]consent.SubjectIdentifierAlgorithm
- func (m *RegistryBase) Tracer() *tracing.Tracer
- func (m *RegistryBase) WithBuildInfo(version, hash, date string) Registry
- func (m *RegistryBase) WithConfig(c configuration.Provider) Registry
- func (m *RegistryBase) WithLogger(l *logrusx.Logger) Registry
- func (m *RegistryBase) Writer() herodot.Writer
- type RegistryMemory
- func (m *RegistryMemory) CanHandle(dsn string) bool
- func (m *RegistryMemory) ClientManager() client.Manager
- func (m *RegistryMemory) ConsentManager() consent.Manager
- func (m *RegistryMemory) Init() error
- func (m *RegistryMemory) KeyManager() jwk.Manager
- func (m *RegistryMemory) OAuth2Storage() x.FositeStorer
- func (m *RegistryMemory) Ping() error
- func (m *RegistryMemory) WithConsentStrategy(c consent.Strategy) *RegistryMemory
- func (m *RegistryMemory) WithOAuth2Provider(f fosite.OAuth2Provider) *RegistryMemory
- type RegistryPlugin
- type RegistrySQL
- func (m *RegistrySQL) CanHandle(dsn string) bool
- func (m *RegistrySQL) ClientManager() client.Manager
- func (m *RegistrySQL) ConsentManager() consent.Manager
- func (m *RegistrySQL) DB() *sqlx.DB
- func (m *RegistrySQL) Init() error
- func (m *RegistrySQL) KeyManager() jwk.Manager
- func (m *RegistrySQL) OAuth2Storage() x.FositeStorer
- func (m *RegistrySQL) Ping() error
- func (m *RegistrySQL) WithDB(db *sqlx.DB) Registry
Constants ¶
View Source
const (
MetricsPrometheusPath = "/metrics/prometheus"
)
Variables ¶
This section is empty.
Functions ¶
func CallRegistry ¶
func CallRegistry(r Registry)
Types ¶
type DefaultDriver ¶
type DefaultDriver struct {
// contains filtered or unexported fields
}
func (*DefaultDriver) CallRegistry ¶
func (r *DefaultDriver) CallRegistry() Driver
func (*DefaultDriver) Configuration ¶
func (r *DefaultDriver) Configuration() configuration.Provider
func (*DefaultDriver) Registry ¶
func (r *DefaultDriver) Registry() Registry
type Driver ¶
type Driver interface { Configuration() configuration.Provider Registry() Registry CallRegistry() Driver }
type Registry ¶
type Registry interface { dbal.Driver Init() error WithConfig(c configuration.Provider) Registry WithLogger(l *logrusx.Logger) Registry WithBuildInfo(version, hash, date string) Registry BuildVersion() string BuildDate() string BuildHash() string persistence.Provider x.RegistryLogger x.RegistryWriter x.RegistryCookieStore client.Registry consent.Registry jwk.Registry oauth2.Registry PrometheusManager() *prometheus.MetricsManager Tracer() *tracing.Tracer RegisterRoutes(admin *x.RouterAdmin, public *x.RouterPublic) ClientHandler() *client.Handler KeyHandler() *jwk.Handler ConsentHandler() *consent.Handler OAuth2Handler() *oauth2.Handler HealthHandler() *healthx.Handler }
func MustNewRegistry ¶
func MustNewRegistry(c configuration.Provider) Registry
func NewRegistry ¶
func NewRegistry(c configuration.Provider) (Registry, error)
type RegistryBase ¶
type RegistryBase struct {
// contains filtered or unexported fields
}
func (*RegistryBase) AccessTokenJWTStrategy ¶
func (m *RegistryBase) AccessTokenJWTStrategy() jwk.JWTStrategy
func (*RegistryBase) AudienceStrategy ¶
func (m *RegistryBase) AudienceStrategy() fosite.AudienceMatchingStrategy
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) ConsentHandler ¶
func (m *RegistryBase) ConsentHandler() *consent.Handler
func (*RegistryBase) ConsentStrategy ¶
func (m *RegistryBase) ConsentStrategy() consent.Strategy
func (*RegistryBase) CookieStore ¶
func (m *RegistryBase) CookieStore() sessions.Store
func (*RegistryBase) FositeOpenIDDefaultStrategy ¶
func (m *RegistryBase) FositeOpenIDDefaultStrategy() *openid.DefaultStrategy
func (*RegistryBase) HealthHandler ¶
func (m *RegistryBase) HealthHandler() *healthx.Handler
func (*RegistryBase) KeyCipher ¶
func (m *RegistryBase) KeyCipher() *jwk.AEAD
func (*RegistryBase) KeyGenerators ¶
func (m *RegistryBase) KeyGenerators() map[string]jwk.KeyGenerator
func (*RegistryBase) KeyHandler ¶
func (m *RegistryBase) KeyHandler() *jwk.Handler
func (*RegistryBase) Logger ¶
func (m *RegistryBase) Logger() *logrusx.Logger
func (*RegistryBase) OAuth2AwareMiddleware ¶
func (m *RegistryBase) OAuth2AwareMiddleware() func(h http.Handler) http.Handler
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) OpenIDConnectRequestValidator ¶
func (m *RegistryBase) OpenIDConnectRequestValidator() *openid.OpenIDConnectRequestValidator
func (*RegistryBase) OpenIDJWTStrategy ¶
func (m *RegistryBase) OpenIDJWTStrategy() jwk.JWTStrategy
func (*RegistryBase) Persister ¶ added in v1.5.0
func (m *RegistryBase) Persister() persistence.Persister
func (*RegistryBase) PrometheusManager ¶
func (m *RegistryBase) PrometheusManager() *prometheus.MetricsManager
func (*RegistryBase) RegisterRoutes ¶
func (m *RegistryBase) RegisterRoutes(admin *x.RouterAdmin, public *x.RouterPublic)
func (*RegistryBase) ScopeStrategy ¶
func (m *RegistryBase) ScopeStrategy() fosite.ScopeStrategy
func (*RegistryBase) SubjectIdentifierAlgorithm ¶
func (m *RegistryBase) SubjectIdentifierAlgorithm() map[string]consent.SubjectIdentifierAlgorithm
func (*RegistryBase) Tracer ¶
func (m *RegistryBase) Tracer() *tracing.Tracer
func (*RegistryBase) WithBuildInfo ¶
func (m *RegistryBase) WithBuildInfo(version, hash, date string) Registry
func (*RegistryBase) WithConfig ¶
func (m *RegistryBase) WithConfig(c configuration.Provider) Registry
func (*RegistryBase) WithLogger ¶
func (m *RegistryBase) WithLogger(l *logrusx.Logger) Registry
func (*RegistryBase) Writer ¶
func (m *RegistryBase) Writer() herodot.Writer
type RegistryMemory ¶
type RegistryMemory struct {
*RegistryBase
}
func NewRegistryMemory ¶
func NewRegistryMemory() *RegistryMemory
func (*RegistryMemory) CanHandle ¶
func (m *RegistryMemory) CanHandle(dsn string) bool
func (*RegistryMemory) ClientManager ¶
func (m *RegistryMemory) ClientManager() client.Manager
func (*RegistryMemory) ConsentManager ¶
func (m *RegistryMemory) ConsentManager() consent.Manager
func (*RegistryMemory) Init ¶
func (m *RegistryMemory) Init() error
func (*RegistryMemory) KeyManager ¶
func (m *RegistryMemory) KeyManager() jwk.Manager
func (*RegistryMemory) OAuth2Storage ¶
func (m *RegistryMemory) OAuth2Storage() x.FositeStorer
func (*RegistryMemory) Ping ¶
func (m *RegistryMemory) Ping() error
func (*RegistryMemory) WithConsentStrategy ¶
func (m *RegistryMemory) WithConsentStrategy(c consent.Strategy) *RegistryMemory
WithConsentStrategy forces a consent strategy which is only used for testing.
func (*RegistryMemory) WithOAuth2Provider ¶
func (m *RegistryMemory) WithOAuth2Provider(f fosite.OAuth2Provider) *RegistryMemory
WithOAuth2Provider forces an oauth2 provider which is only used for testing.
type RegistryPlugin ¶
type RegistryPlugin struct { Registry // contains filtered or unexported fields }
func NewRegistryPlugin ¶
func NewRegistryPlugin() *RegistryPlugin
func (*RegistryPlugin) CanHandle ¶
func (m *RegistryPlugin) CanHandle(dsn string) bool
func (*RegistryPlugin) Init ¶
func (m *RegistryPlugin) Init() error
func (*RegistryPlugin) WithConfig ¶
func (m *RegistryPlugin) WithConfig(c configuration.Provider) Registry
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) ClientManager ¶
func (m *RegistrySQL) ClientManager() client.Manager
func (*RegistrySQL) ConsentManager ¶
func (m *RegistrySQL) ConsentManager() consent.Manager
func (*RegistrySQL) DB ¶
func (m *RegistrySQL) DB() *sqlx.DB
func (*RegistrySQL) Init ¶
func (m *RegistrySQL) Init() 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.