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.
 Click to show internal directories. 
   Click to hide internal directories.