Documentation ¶
Overview ¶
Taken from dex, therefore their license applies. Removed functionality to required for tests.
Index ¶
Constants ¶
View Source
const ( DexClientID = "smorgasbord" DexClientSecret = "ZXhhbXBsZS1hcHAtc2VjcmV0" DexUserEmail = "test@kubism.io" DexUserPassword = "password" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Issuer string `json:"issuer"` Storage Storage `json:"storage"` Web Web `json:"web"` OAuth2 OAuth2 `json:"oauth2"` Frontend server.WebConfig `json:"frontend"` // StaticConnectors are user defined connectors specified in the ConfigMap // Write operations, like updating a connector, will fail. StaticConnectors []storage.Connector `json:"connectors"` // StaticClients cause the server to use this list of clients rather than // querying the storage. Write operations, like creating a client, will fail. StaticClients []storage.Client `json:"staticClients"` // StaticPasswords cause the server use this list of passwords rather than // querying the storage. Cannot be specified without enabling a passwords // database. StaticPasswords []storage.Password `json:"staticPasswords"` }
Config is the config format for the main application.
type Dex ¶
type Dex struct {
// contains filtered or unexported fields
}
func (*Dex) GetAuthCodeURLMutator ¶
func (*Dex) GetIssuerURL ¶
type GitServer ¶
type GitServer struct {
// contains filtered or unexported fields
}
func NewGitServer ¶
type OAuth2 ¶
type OAuth2 struct { ResponseTypes []string `json:"responseTypes"` // If specified, do not prompt the user to approve client authorization. The // act of logging in implies authorization. SkipApprovalScreen bool `json:"skipApprovalScreen"` // If specified, show the connector selection screen even if there's only one AlwaysShowLoginScreen bool `json:"alwaysShowLoginScreen"` // This is the connector that can be used for password grant PasswordConnector string `json:"passwordConnector"` }
OAuth2 describes enabled OAuth2 extensions.
type Storage ¶
type Storage struct { Type string `json:"type"` Config StorageConfig `json:"config"` }
Storage holds app's storage configuration.
type StorageConfig ¶
StorageConfig is a configuration that can create a storage.
Click to show internal directories.
Click to hide internal directories.