Documentation ¶
Index ¶
- type Config
- type Context
- func (c *Context) AccessTokenStrategy() grant.AccessTokenStrategy
- func (c *Context) AuthorizeCodeFlow() *flow.AuthCode
- func (c *Context) AuthorizeHandler() *handler.Authorize
- func (c *Context) AuthorizeRequestParser() *auth.Parser
- func (c *Context) AuthorizeRequestStorage() auth.RequestStorage
- func (c *Context) ClientAuthenticator() client.Authenticator
- func (c *Context) ClientCredentialsFlow() *flow.ClientCredentials
- func (c *Context) ClientJwksStrategy() client.KeySetStrategy
- func (c *Context) ClientStorage() client.Storage
- func (c *Context) CodeStorage() grant.CodeStorage
- func (c *Context) CodeStrategy() grant.CodeStrategy
- func (c *Context) DebugConfig()
- func (c *Context) Flags() []cli.Flag
- func (c *Context) HybridFlow() *flow.Hybrid
- func (c *Context) IdTokenStrategy() grant.IdTokenStrategy
- func (c *Context) ImplicitFlow() *flow.Implicit
- func (c *Context) InitClients() []*client.Client
- func (c *Context) InteractHandler() *handler.Interaction
- func (c *Context) InteractProcess() *interact.Process
- func (c *Context) Logger() *zerolog.Logger
- func (c *Context) OverrideProvider(provider *pkg.Provider)
- func (c *Context) OverrideRedisClient(redisClient redis.UniversalClient)
- func (c *Context) OverrideServerJwks(jwks *jose.JSONWebKeySet)
- func (c *Context) Provider() *pkg.Provider
- func (c *Context) RedisClient() redis.UniversalClient
- func (c *Context) RefreshFlow() *flow.Refresh
- func (c *Context) RefreshTokenStorage() grant.RefreshTokenStorage
- func (c *Context) RefreshTokenStrategy() grant.RefreshTokenStrategy
- func (c *Context) RequestObjectStrategy() auth.RequestObjectStrategy
- func (c *Context) ServerJwks() *jose.JSONWebKeySet
- func (c *Context) SessionStorage() grant.SessionStorage
- func (c *Context) TokenHandler() *handler.Token
- func (c *Context) TokenRequestParser() *token.Parser
- func (c *Context) UserBrowserStateController() *user.BrowserStateController
- func (c *Context) UserBrowserStateStorage() user.BrowserStateStorage
- func (c *Context) UserConsentResolver() auth.UserConsentResolver
- func (c *Context) UserConsentStorage() user.ConsentStorage
- func (c *Context) UserSessionResolver() auth.UserSessionResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Logging struct { Level string `yaml:"level"` } `yaml:"logging"` Storage struct { // If true, all storage interface will use its memory // implementations. This options is usually enabled // during showcase or development. It is likely to // have arbitrary impact on functionality. Memory bool `yaml:"memory"` Redis struct { // Config is the JSON representation of redisConfig. // It can be used to provide a comprehensive set of // redis configurations. Config string `yaml:"config"` Addresses string `yaml:"addresses"` // A list of comma delimited addresses DB int `yaml:"db"` Password string `yaml:"password"` } `yaml:"redis"` } `yaml:"storage"` Init struct { // If non-empty, contents will be treated as an JSON structure of // { "init": [...clients JSON...] }, and inserted into storage on startup. Clients string `yaml:"clients"` } `yaml:"init"` App struct { DynaApiBase string `yaml:"dyna_api_base"` ProviderMetadata string `yaml:"provider_metadata"` // Contains the JSON representation of pkg.Provider Jwks string `yaml:"jwks"` // Contains the JSON representation of jose.JsonWebKeySet PseudoSubPairwiseSalt string `yaml:"pairwise_salt"` CookieDomain string `yaml:"cookie_domain"` CookieHttps bool `yaml:"cookie_https"` HttpPort int `yaml:"http_port"` } `yaml:"app"` }
type Context ¶
type Context struct { Config Config // contains filtered or unexported fields }
func (*Context) AccessTokenStrategy ¶
func (c *Context) AccessTokenStrategy() grant.AccessTokenStrategy
func (*Context) AuthorizeCodeFlow ¶
func (*Context) AuthorizeHandler ¶
func (*Context) AuthorizeRequestParser ¶
func (*Context) AuthorizeRequestStorage ¶
func (c *Context) AuthorizeRequestStorage() auth.RequestStorage
func (*Context) ClientAuthenticator ¶
func (c *Context) ClientAuthenticator() client.Authenticator
func (*Context) ClientCredentialsFlow ¶
func (c *Context) ClientCredentialsFlow() *flow.ClientCredentials
func (*Context) ClientJwksStrategy ¶
func (c *Context) ClientJwksStrategy() client.KeySetStrategy
func (*Context) ClientStorage ¶
func (*Context) CodeStorage ¶
func (c *Context) CodeStorage() grant.CodeStorage
func (*Context) CodeStrategy ¶
func (c *Context) CodeStrategy() grant.CodeStrategy
func (*Context) DebugConfig ¶
func (c *Context) DebugConfig()
func (*Context) HybridFlow ¶
func (*Context) IdTokenStrategy ¶
func (c *Context) IdTokenStrategy() grant.IdTokenStrategy
func (*Context) ImplicitFlow ¶
func (*Context) InitClients ¶
func (*Context) InteractHandler ¶
func (c *Context) InteractHandler() *handler.Interaction
func (*Context) InteractProcess ¶
func (*Context) OverrideProvider ¶
func (*Context) OverrideRedisClient ¶
func (c *Context) OverrideRedisClient(redisClient redis.UniversalClient)
func (*Context) OverrideServerJwks ¶
func (c *Context) OverrideServerJwks(jwks *jose.JSONWebKeySet)
func (*Context) RedisClient ¶
func (c *Context) RedisClient() redis.UniversalClient
func (*Context) RefreshFlow ¶
func (*Context) RefreshTokenStorage ¶
func (c *Context) RefreshTokenStorage() grant.RefreshTokenStorage
func (*Context) RefreshTokenStrategy ¶
func (c *Context) RefreshTokenStrategy() grant.RefreshTokenStrategy
func (*Context) RequestObjectStrategy ¶
func (c *Context) RequestObjectStrategy() auth.RequestObjectStrategy
func (*Context) ServerJwks ¶
func (c *Context) ServerJwks() *jose.JSONWebKeySet
func (*Context) SessionStorage ¶
func (c *Context) SessionStorage() grant.SessionStorage
func (*Context) TokenHandler ¶
func (*Context) TokenRequestParser ¶
func (*Context) UserBrowserStateController ¶
func (c *Context) UserBrowserStateController() *user.BrowserStateController
func (*Context) UserBrowserStateStorage ¶
func (c *Context) UserBrowserStateStorage() user.BrowserStateStorage
func (*Context) UserConsentResolver ¶
func (c *Context) UserConsentResolver() auth.UserConsentResolver
func (*Context) UserConsentStorage ¶
func (c *Context) UserConsentStorage() user.ConsentStorage
func (*Context) UserSessionResolver ¶
func (c *Context) UserSessionResolver() auth.UserSessionResolver
Click to show internal directories.
Click to hide internal directories.