Documentation
¶
Overview ¶
Package auth provides all authentication related features
Index ¶
- func InsertPruningJob(ctx context.Context) error
- func NewDAO(o dao.DAO) dao.DAO
- func ToStorageConnector(c Connector) (storage.Connector, error)
- type BoltStore
- type Config
- type Connector
- type DAO
- type DexDAO
- type Expiry
- type GRPC
- type Logger
- type OAuth2
- type PruneTokensAction
- type Storage
- type StorageConfig
- type Web
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoltStore ¶
type BoltStore struct {
// contains filtered or unexported fields
}
func (*BoltStore) ListTokens ¶
type Config ¶
type Config struct {
Issuer string `json:"issuer"`
Storage Storage `json:"storage"`
Web Web `json:"web"`
OAuth2 OAuth2 `json:"oauth2"`
GRPC GRPC `json:"grpc"`
Expiry Expiry `json:"expiry"`
Logger Logger `json:"logger"`
Frontend server.WebConfig `json:"frontend"`
// StaticConnectors are user defined connectors specified in the ConfigMap
// Write operations, like updating a connector, will fail.
StaticConnectors []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"`
// If enabled, the server will maintain a list of passwords which can be used
// to identify a user.
EnablePasswordDB bool `json:"enablePasswordDB"`
// StaticPasswords cause the server use this list of passwords rather than
// querying the storage. Cannot be specified without enabling a passwords
// database.
StaticPasswords []password `json:"staticPasswords"`
}
Config is the config format for the main application.
type Connector ¶
type Connector struct {
Type string `json:"type"`
Name string `json:"name"`
ID string `json:"id"`
Config server.ConnectorConfig `json:"config"`
}
Connector is a magical type that can unmarshal YAML dynamically. The Type field determines the connector type, which is then customized for Config.
type DAO ¶
type DexDAO ¶ added in v1.0.2
type Expiry ¶
type Expiry struct {
// SigningKeys defines the duration of time after which the SigningKeys will be rotated.
SigningKeys string `json:"signingKeys"`
// IdTokens defines the duration of time for which the IdTokens will be valid.
IDTokens string `json:"idTokens"`
}
Expiry holds configuration for the validity period of components.
type GRPC ¶
type GRPC struct {
// The port to listen on.
Addr string `json:"addr"`
TLSCert string `json:"tlsCert"`
TLSKey string `json:"tlsKey"`
TLSClientCA string `json:"tlsClientCA"`
}
GRPC is the config for the gRPC API.
type Logger ¶
type Logger struct {
// Level sets logging level severity.
Level string `json:"level"`
// Format specifies the format to be used for logging.
Format string `json:"format"`
}
Logger holds configuration required to customize logging for dex.
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"`
}
OAuth2 describes enabled OAuth2 extensions.
type PruneTokensAction ¶
type PruneTokensAction struct{}
func (*PruneTokensAction) Init ¶
Pass parameters
func (*PruneTokensAction) Run ¶
func (c *PruneTokensAction) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)
Run the actual action code
type Storage ¶
type Storage struct {
Type string `json:"type"`
Config StorageConfig `json:"config"`
}
Storage holds app's storage configuration.
Source Files
¶
- action.go
- bolt.go
- config.go
- dao.go
- dex-sql.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package grpc spins an OpenID Connect Server using the coreos/dex implementation
|
Package grpc spins an OpenID Connect Server using the coreos/dex implementation |
|
Package lang provides auth-related i18n strings
|
Package lang provides auth-related i18n strings |
|
Package rest provides access to the TokenServiceApi
|
Package rest provides access to the TokenServiceApi |
Click to show internal directories.
Click to hide internal directories.