refactor(config): remove mapstructure from OIDC (#1973)

This commit is contained in:
soup 2025-03-02 18:08:22 +01:00 committed by GitHub
parent b4d3d18f40
commit ac0b407255
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,13 +29,13 @@ type Config struct {
ProfilingEnabled bool `toml:"profilingEnabled"`
ProfilingHost string `toml:"profilingHost"`
ProfilingPort int `toml:"profilingPort"`
OIDCEnabled bool `toml:"oidcEnabled" mapstructure:"oidc_enabled"`
OIDCIssuer string `toml:"oidcIssuer" mapstructure:"oidc_issuer"`
OIDCClientID string `toml:"oidcClientId" mapstructure:"oidc_client_id"`
OIDCClientSecret string `toml:"oidcClientSecret" mapstructure:"oidc_client_secret"`
OIDCRedirectURL string `toml:"oidcRedirectUrl" mapstructure:"oidc_redirect_url"`
OIDCScopes string `toml:"oidcScopes" mapstructure:"oidc_scopes"`
OIDCDisableBuiltInLogin bool `toml:"oidcDisableBuiltInLogin" mapstructure:"disable_built_in_login"`
OIDCEnabled bool `toml:"oidcEnabled"`
OIDCIssuer string `toml:"oidcIssuer"`
OIDCClientID string `toml:"oidcClientId"`
OIDCClientSecret string `toml:"oidcClientSecret"`
OIDCRedirectURL string `toml:"oidcRedirectUrl"`
OIDCScopes string `toml:"oidcScopes"`
OIDCDisableBuiltInLogin bool `toml:"oidcDisableBuiltInLogin"`
MetricsEnabled bool `toml:"metricsEnabled"`
MetricsHost string `toml:"metricsHost"`
MetricsPort int `toml:"metricsPort"`