Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationConfig ¶
type AuthenticationConfig struct {
Realms RealmsConfig `config:"realms"`
}
type Config ¶
type Config struct {
Enabled bool `config:"enabled"`
Authentication AuthenticationConfig `config:"authc"`
OAuthConfig OAuthConfig `config:"oauth"`
}
type OAuthConfig ¶
type OAuthConfig struct {
Enabled bool `config:"enabled"`
ClientID string `config:"client_id"`
ClientSecret string `config:"client_secret"`
DefaultRoles []string `config:"default_roles"`
RoleMapping map[string][]string `config:"role_mapping"`
AuthorizeUrl string `config:"authorize_url"`
TokenUrl string `config:"token_url"`
RedirectUrl string `config:"redirect_url"`
Scopes []string `config:"scopes"`
SuccessPage string `config:"success_page"`
FailedPage string `config:"failed_page"`
}
type RealmConfig ¶
type RealmsConfig ¶
type RealmsConfig struct {
Native RealmConfig `config:"native"`
//ldap,oauth, active_directory, pki, file, saml, kerberos, oidc, jwt
OAuth map[string]OAuthConfig `config:"oauth"`
LDAP map[string]ldap2.LDAPConfig `config:"ldap"`
}
Click to show internal directories.
Click to hide internal directories.