Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrClientConfigNotFound = errors.New(heredoc.Doc(` Dex client config not found. Run "dex config init" to initialize a new client config or Run "dex help environment" for more information. `)) ErrClientConfigHostNotFound = errors.New(heredoc.Doc(` Dex client config "host" not found. Pass dex server host with "--host" flag or set host in dex config. Run "dex config <subcommand>" or "dex help environment" for more information. `)) ErrClientNotAuthorized = errors.New(heredoc.Doc(` Dex auth error. Dex requires an auth header. Run "dex help auth" for more information. `)) )
Functions ¶
Types ¶
type AuthConfig ¶ added in v0.1.1
type AuthConfig struct {
OAuth OAuthConfig `mapstructure:"oauth" yaml:"oauth"`
Expiry int64 `mapstructure:"expiry" yaml:"expiry"`
AccessToken string `mapstructure:"access_token" yaml:"access_token"`
RefreshToken string `mapstructure:"refresh_token" yaml:"refresh_token"`
}
type ClientConfig ¶ added in v0.1.1
type ClientConfig struct {
Host string `yaml:"host" cmdx:"host"`
}
type OAuthConfig ¶ added in v0.1.1
type OAuthConfig struct {
Audience string `mapstructure:"audience" yaml:"audience"`
Endpoint OAuthEndpoint `mapstructure:"endpoint" yaml:"endpoint"`
ClientID string `mapstructure:"client_id" yaml:"client_id"`
ClientSecret string `mapstructure:"client_secret" yaml:"client_secret"`
}
type OAuthEndpoint ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.