Documentation ¶
Index ¶
- type Config
- func (c *Config) Context() *Context
- func (c *Config) DoesRequestSatisfyTermination(r *http.Request) error
- func (c *Config) GetAccessTokenLifespan() time.Duration
- func (c *Config) GetAddress() string
- func (c *Config) GetAuthCodeLifespan() time.Duration
- func (c *Config) GetChallengeTokenLifespan() time.Duration
- func (c *Config) GetIDTokenLifespan() time.Duration
- func (c *Config) GetSystemSecret() []byte
- func (c *Config) OAuth2Client(cmd *cobra.Command) *http.Client
- func (c *Config) Persist() error
- func (c *Config) Resolve(join ...string) *url.URL
- type Context
- type MemoryConnection
- type RedisConnection
- type RethinkDBConnection
- type SQLConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // These are used by client commands ClusterURL string `mapstructure:"CLUSTER_URL" yaml:"cluster_url"` ClientID string `mapstructure:"CLIENT_ID" yaml:"client_id,omitempty"` ClientSecret string `mapstructure:"CLIENT_SECRET" yaml:"client_secret,omitempty"` // These are used by the host command BindPort int `mapstructure:"PORT" yaml:"-"` BindHost string `mapstructure:"HOST" yaml:"-"` Issuer string `mapstructure:"ISSUER" yaml:"-"` SystemSecret string `mapstructure:"SYSTEM_SECRET" yaml:"-"` DatabaseURL string `mapstructure:"DATABASE_URL" yaml:"-"` ConsentURL string `mapstructure:"CONSENT_URL" yaml:"-"` AllowTLSTermination string `mapstructure:"HTTPS_ALLOW_TERMINATION_FROM" yaml:"-"` BCryptWorkFactor int `mapstructure:"BCRYPT_COST" yaml:"-"` AccessTokenLifespan string `mapstructure:"ACCESS_TOKEN_LIFESPAN" yaml:"-"` AuthCodeLifespan string `mapstructure:"AUTH_CODE_LIFESPAN" yaml:"-"` IDTokenLifespan string `mapstructure:"ID_TOKEN_LIFESPAN" yaml:"-"` ChallengeTokenLifespan string `mapstructure:"CHALLENGE_TOKEN_LIFESPAN" yaml:"-"` ForceHTTP bool `yaml:"-"` // contains filtered or unexported fields }
func (*Config) DoesRequestSatisfyTermination ¶
func (*Config) GetAccessTokenLifespan ¶
func (*Config) GetAddress ¶
func (*Config) GetAuthCodeLifespan ¶
func (*Config) GetChallengeTokenLifespan ¶
func (*Config) GetIDTokenLifespan ¶
func (*Config) GetSystemSecret ¶
type MemoryConnection ¶
type MemoryConnection struct{}
type RedisConnection ¶ added in v0.6.5
func (*RedisConnection) RedisSession ¶ added in v0.6.5
func (c *RedisConnection) RedisSession() *redis.Client
type RethinkDBConnection ¶
func (*RethinkDBConnection) CreateTableIfNotExists ¶
func (c *RethinkDBConnection) CreateTableIfNotExists(table string)
func (*RethinkDBConnection) GetSession ¶
func (c *RethinkDBConnection) GetSession() *r.Session
type SQLConnection ¶ added in v0.6.0
func (*SQLConnection) GetDatabase ¶ added in v0.6.0
func (c *SQLConnection) GetDatabase() *sqlx.DB
Click to show internal directories.
Click to hide internal directories.