Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeOIDC string = "oidc" TypeUser string = "user" )
supported list of authentication types.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { AuthType string AuthUsername string AuthPassword string AuthUsersConfig string AuthOIDCClientID string AuthOIDCClientSecret string AuthOIDCScopes []string AuthOIDCAdminRole string AuthOIDCClaimRoles string AuthOIDCProviderEndpoint string AuthParsedUserPermissions *models.UserPermissions }
func (*Config) IsAuthTypeOIDC ¶
IsAuthTypeOIDC makes check that current auth is TypeOIDC.
func (*Config) IsAuthTypeUser ¶
IsAuthTypeUser makes check that current auth is TypeUser.
func (*Config) NormalizeConfiguration ¶
NormalizeConfiguration normalizes auth configuration parameters.
func (*Config) ValidateConfiguration ¶
ValidateConfiguration validates service configuration for correctness.
type YamlConfig ¶
type YamlConfig struct {
Users []YamlUserConfig `yaml:"users"`
}
YamlConfig represents users configuration in YAML format.
type YamlUserConfig ¶
type YamlUserConfig struct { Name string `yaml:"name"` Password string `yaml:"password"` Roles []string `yaml:"roles"` }
YamlUserConfig partial object of YamlConfig.
Click to show internal directories.
Click to hide internal directories.