config

package
v1.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

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 RealmConfig struct {
	Enabled bool `config:"enabled"`
	Order   int  `config:"order"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL