From 8f7dec8ba6b2f9bde01afd0a110596ebbd43e0ed Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Fri, 15 Aug 2025 19:20:48 +0100 Subject: Implement OIDC --- internal/config/config.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'internal/config') diff --git a/internal/config/config.go b/internal/config/config.go index 564adbe..1acda1e 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -17,10 +17,25 @@ type Config struct { Conference struct { ScheduleURL string `yaml:"scheduleURL"` } `yaml:"conference"` + Auth struct { + EnableBasicAuth bool `yaml:"enableBasicAuth"` + AuthProviders []AuthProvider `yaml:"authProviders"` + } AcceptRegistrations bool `yaml:"acceptRegistrations"` BaseURL string `yaml:"baseURL"` } +type AuthProvider struct { + Identifier string `yaml:"identifier"` + Name string `yaml:"name"` + ClientID string `yaml:"clientID"` + ClientSecret string `yaml:"clientSecret"` + Endpoint string `yaml:"endpoint"` + LoginFilter string `yaml:"loginFilter"` + LoginFilterAllowedValues []string `yaml:"loginFilterAllowedValues"` + UserSyncFilter string `yaml:"userSyncFilter"` +} + func ReadConfig(configPath string, dst *Config) error { config, err := os.ReadFile(configPath) if err != nil { -- cgit v1.2.3-70-g09d2