Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthnSettings ¶ added in v0.23.0
AuthnSettings represents a group of authenticator client configuration settings.
func GatherSettings ¶ added in v0.23.0
func GatherSettings(conf Configuration, getters ...func(key string) string) AuthnSettings
GatherSettings retrieves authenticator client configuration settings from a slice of arbitrary `func(key string) string` functions. Values received from 'Getter' functions are prioritized in the order that the functions are provided.
type Configuration ¶ added in v0.23.0
type Configuration interface { LoadConfig(settings map[string]string) GetEnvVariables() []string GetRequiredVariables() []string GetDefaultValues() map[string]string GetContainerMode() string GetTokenFilePath() string GetTokenTimeout() time.Duration }
Configuration defines interface for Configuration of an authentication flow
func ConfigFromEnv ¶ added in v0.23.0
func ConfigFromEnv(readFileFunc common.ReadFileFunc) (Configuration, error)
ConfigFromEnv returns a new authenticator configuration object
func NewConfigFromCustomEnv ¶ added in v0.23.0
func NewConfigFromCustomEnv(readFileFunc common.ReadFileFunc, customEnv func(key string) string) (Configuration, error)
func NewConfigFromEnv ¶ added in v0.23.0
func NewConfigFromEnv() (Configuration, error)
NewConfigFromEnv returns a config ConfigFromEnv using the standard file reader for reading certs
Click to show internal directories.
Click to hide internal directories.