app

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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 (c *Context) AuthorizeCodeFlow() *flow.AuthCode

func (*Context) AuthorizeHandler

func (c *Context) AuthorizeHandler() *handler.Authorize

func (*Context) AuthorizeRequestParser

func (c *Context) AuthorizeRequestParser() *auth.Parser

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 (c *Context) ClientStorage() client.Storage

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) Flags

func (c *Context) Flags() []cli.Flag

func (*Context) HybridFlow

func (c *Context) HybridFlow() *flow.Hybrid

func (*Context) IdTokenStrategy

func (c *Context) IdTokenStrategy() grant.IdTokenStrategy

func (*Context) ImplicitFlow

func (c *Context) ImplicitFlow() *flow.Implicit

func (*Context) InitClients

func (c *Context) InitClients() []*client.Client

func (*Context) InteractHandler

func (c *Context) InteractHandler() *handler.Interaction

func (*Context) InteractProcess

func (c *Context) InteractProcess() *interact.Process

func (*Context) Logger

func (c *Context) Logger() *zerolog.Logger

func (*Context) OverrideProvider

func (c *Context) OverrideProvider(provider *pkg.Provider)

func (*Context) OverrideRedisClient

func (c *Context) OverrideRedisClient(redisClient redis.UniversalClient)

func (*Context) OverrideServerJwks

func (c *Context) OverrideServerJwks(jwks *jose.JSONWebKeySet)

func (*Context) Provider

func (c *Context) Provider() *pkg.Provider

func (*Context) RedisClient

func (c *Context) RedisClient() redis.UniversalClient

func (*Context) RefreshFlow

func (c *Context) RefreshFlow() *flow.Refresh

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 (c *Context) TokenHandler() *handler.Token

func (*Context) TokenRequestParser

func (c *Context) TokenRequestParser() *token.Parser

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL