config

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSystemIdPName       = "openmcp"
	DefaultSystemUsernameClaim = "email"
	DefaultSystemGroupsClaim   = "groups"

	DefaultCratedIdPName      = "crate"
	DefaultCrateClientID      = "mcp"
	DefaultCrateUsernameClaim = "sub"
)

Variables

This section is empty.

Functions

func Validate

func Validate(ac *AuthenticationConfig) error

Validate validates the authentication configuration.

Types

type AuthenticationConfig

type AuthenticationConfig struct {
	// SystemIdentityProvider contains the configuration for the system identity provider.
	SystemIdentityProvider v1alpha1.IdentityProvider `json:"systemIdentityProvider,omitempty"`
	// CrateIdentityProvider contains the configuration for the Crate token issuer.
	// This can be used to validate tokens issued by the crate cluster.
	// +optional
	CrateIdentityProvider *v1alpha1.IdentityProvider `json:"crateIdentityProvider,omitempty"`
}

AuthenticationConfig contains the configuration for the authentication controller.

func LoadConfig

func LoadConfig(path string) (*AuthenticationConfig, error)

LoadConfig reads the configuration file from a given path and parses it into an AuthenticationConfig object.

func (*AuthenticationConfig) SetDefaults

func (ac *AuthenticationConfig) SetDefaults()

SetDefaults sets the default values for the authentication configuration when not set.

Jump to

Keyboard shortcuts

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