Versions in this module Expand all Collapse all v0 v0.5.81 Sep 5, 2026 v0.5.9 Sep 8, 2026 v0.5.8 Sep 3, 2026 v0.5.7 Aug 24, 2026 Changes in this version + const SourceDB + const SourceService + const SourceYAML + var ErrInvalidProviderConfig = errors.New("invalid auth provider configuration") + var ErrInvalidProviderType = errors.New("invalid auth provider type") + var ErrProviderNotFound = errors.New("auth provider not found") + var Registry = map[string]ProviderSpec + func MergeSecrets(typ, prevJSON, newJSON string) (string, error) + func RedactedConfig(typ, cfgJSON string) string + func SupportedTypes() []string + func ValidateProvider(name, typ, cfgJSON string) error + func ValidateType(typ string) bool + type AuthProvider struct + Config string + Enabled bool + Info string + Name string + Source string + Type string + type AuthProviderManager struct + DB *gorm.DB + func NewAuthProviderManager(backend *gorm.DB) *AuthProviderManager + func (m *AuthProviderManager) BuildProviders(ctx context.Context) ([]ProviderEntry, error) + func (m *AuthProviderManager) Create(name, typ string, enabled bool, cfgJSON string, info string) (AuthProvider, error) + func (m *AuthProviderManager) Delete(id uint) error + func (m *AuthProviderManager) Get(id uint) (AuthProvider, error) + func (m *AuthProviderManager) List() ([]AuthProvider, error) + func (m *AuthProviderManager) ListEnabled() ([]AuthProvider, error) + func (m *AuthProviderManager) PersistGeneratedSAMLKeys(row AuthProvider, certPEM, keyPEM string) error + func (m *AuthProviderManager) RevertToService(id uint) error + func (m *AuthProviderManager) Seed(params *config.ServiceParameters) error + func (m *AuthProviderManager) Update(id uint, name, typ string, enabled bool, cfgJSON string, info string) (AuthProvider, error) + type FieldSpec struct + Default any + Help string + Label string + Name string + Options []string + Placeholder string + Required bool + Secret bool + Type FieldType + type FieldType string + const FieldBoolean + const FieldInteger + const FieldPassword + const FieldSelect + const FieldString + const FieldText + type ProviderEntry struct + ClientID string + ID uint + JITProvision bool + LogoutURL string + Name string + Provider auth.Provider + Type string + type ProviderSpec struct + Build func(any, context.Context) (auth.Provider, error) + Decode func(json.RawMessage) (any, error) + Description string + Fields []FieldSpec + HasSecret bool + SecretFields []string + Type string