configuration

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	AnonymousAuth bool

	BasicAuth      BasicAuthenticationConfig
	KubernetesAuth KubernetesAuthConfig
	OpenIdAuth     OpenIdAuthenticationConfig
	Kerberos       KerberosAuthenticationConfig

	PermissionGroupMapping map[permission.Permission][]string
	PermissionScopeMapping map[permission.Permission][]string
	PermissionClaimMapping map[permission.Permission][]string
}

type BasicAuthenticationConfig

type BasicAuthenticationConfig struct {
	Users map[string]UserInfo
}

type KerberosAuthenticationConfig

type KerberosAuthenticationConfig struct {
	KeytabLocation  string
	PrincipalName   string
	UserNameSuffix  string
	GroupNameSuffix string
	LDAP            LDAPConfig
}

type KubernetesAuthConfig

type KubernetesAuthConfig struct {
	KidMappingFileLocation string
	InvalidTokenExpiry     int64
}

type LDAPConfig

type LDAPConfig struct {
	URL             string
	Username        string
	Password        string
	GroupSearchBase string
	CacheExpiry     time.Duration
}

type OpenIdAuthenticationConfig

type OpenIdAuthenticationConfig struct {
	ProviderUrl string
	GroupsClaim string

	// If your OIDC provider signs token with key intended solely for this application and audience claim does not
	// contain any clientId, you can disable client ID check.
	// Otherwise clientId is required
	SkipClientIDCheck bool
	ClientId          string
}

type UserInfo

type UserInfo struct {
	Password string
	Groups   []string
}

Jump to

Keyboard shortcuts

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