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) GetCookieSecret() []byte
- func (c *Config) GetIDTokenLifespan() time.Duration
- func (c *Config) GetLogger() *logrus.Logger
- func (c *Config) GetMetrics() *metrics.MetricsManager
- func (c *Config) GetScopeStrategy() fosite.ScopeStrategy
- 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 PluginConnection
- func (c *PluginConnection) Connect() error
- func (c *PluginConnection) NewClientManager() (client.Manager, error)
- func (c *PluginConnection) NewConsentRequestManager() (oauth2.ConsentRequestManager, error)
- func (c *PluginConnection) NewGroupManager() (group.Manager, error)
- func (c *PluginConnection) NewJWKManager() (jwk.Manager, error)
- func (c *PluginConnection) NewOAuth2Manager(clientManager client.Manager) (pkg.FositeStorer, error)
- func (c *PluginConnection) NewPolicyManager() (ladon.Manager, error)
- 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:"-"` DatabasePlugin string `mapstructure:"DATABASE_PLUGIN" 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:"-"` ScopeStrategy string `mapstructure:"SCOPE_STRATEGY" yaml:"-"` AuthCodeLifespan string `mapstructure:"AUTH_CODE_LIFESPAN" yaml:"-"` IDTokenLifespan string `mapstructure:"ID_TOKEN_LIFESPAN" yaml:"-"` ChallengeTokenLifespan string `mapstructure:"CHALLENGE_TOKEN_LIFESPAN" yaml:"-"` CookieSecret string `mapstructure:"COOKIE_SECRET" yaml:"-"` LogLevel string `mapstructure:"LOG_LEVEL" yaml:"-"` LogFormat string `mapstructure:"LOG_FORMAT" yaml:"-"` AccessControlResourcePrefix string `mapstructure:"RESOURCE_NAME_PREFIX" yaml:"-"` OpenIDDiscoveryClaimsSupported string `mapstructure:"OIDC_DISCOVERY_CLAIMS_SUPPORTED" yaml:"-"` OpenIDDiscoveryScopesSupported string `mapstructure:"OIDC_DISCOVERY_SCOPES_SUPPORTED" yaml:"-"` OpenIDDiscoveryUserinfoEndpoint string `mapstructure:"OIDC_DISCOVERY_USERINFO_ENDPOINT" yaml:"-"` SendOAuth2DebugMessagesToClients bool `mapstructure:"OAUTH2_SHARE_ERROR_DEBUG" yaml:"-"` ForceHTTP bool `yaml:"-"` BuildVersion string `yaml:"-"` BuildHash string `yaml:"-"` BuildTime string `yaml:"-"` // contains filtered or unexported fields }
func (*Config) DoesRequestSatisfyTermination ¶
func (*Config) GetAccessTokenLifespan ¶
func (*Config) GetAddress ¶
func (*Config) GetAuthCodeLifespan ¶
func (*Config) GetChallengeTokenLifespan ¶
func (*Config) GetCookieSecret ¶ added in v0.7.0
func (*Config) GetIDTokenLifespan ¶
func (*Config) GetMetrics ¶ added in v0.9.0
func (c *Config) GetMetrics() *metrics.MetricsManager
func (*Config) GetScopeStrategy ¶ added in v0.9.14
func (c *Config) GetScopeStrategy() fosite.ScopeStrategy
func (*Config) GetSystemSecret ¶
type MemoryConnection ¶
type MemoryConnection struct{}
type PluginConnection ¶ added in v0.9.6
type PluginConnection struct { Config *Config Logger logrus.FieldLogger // contains filtered or unexported fields }
func (*PluginConnection) Connect ¶ added in v0.9.6
func (c *PluginConnection) Connect() error
func (*PluginConnection) NewClientManager ¶ added in v0.9.6
func (c *PluginConnection) NewClientManager() (client.Manager, error)
func (*PluginConnection) NewConsentRequestManager ¶ added in v0.9.14
func (c *PluginConnection) NewConsentRequestManager() (oauth2.ConsentRequestManager, error)
func (*PluginConnection) NewGroupManager ¶ added in v0.9.6
func (c *PluginConnection) NewGroupManager() (group.Manager, error)
func (*PluginConnection) NewJWKManager ¶ added in v0.9.6
func (c *PluginConnection) NewJWKManager() (jwk.Manager, error)
func (*PluginConnection) NewOAuth2Manager ¶ added in v0.9.6
func (c *PluginConnection) NewOAuth2Manager(clientManager client.Manager) (pkg.FositeStorer, error)
func (*PluginConnection) NewPolicyManager ¶ added in v0.9.6
func (c *PluginConnection) NewPolicyManager() (ladon.Manager, error)
type SQLConnection ¶ added in v0.6.0
type SQLConnection struct { URL *url.URL L logrus.FieldLogger // contains filtered or unexported fields }
func (*SQLConnection) GetDatabase ¶ added in v0.6.0
func (c *SQLConnection) GetDatabase() *sqlx.DB
Click to show internal directories.
Click to hide internal directories.