summaryrefslogtreecommitdiff
path: root/internal/configuration/schema/configuration.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/configuration/schema/configuration.go')
-rw-r--r--internal/configuration/schema/configuration.go31
1 files changed, 17 insertions, 14 deletions
diff --git a/internal/configuration/schema/configuration.go b/internal/configuration/schema/configuration.go
index 93973faad..e29b9f14f 100644
--- a/internal/configuration/schema/configuration.go
+++ b/internal/configuration/schema/configuration.go
@@ -2,20 +2,23 @@ package schema
// Configuration object extracted from YAML configuration file.
type Configuration struct {
- Host string `yaml:"host"`
- Port int `yaml:"port"`
- LogsLevel string `yaml:"logs_level"`
- JWTSecret string `yaml:"jwt_secret"`
- DefaultRedirectionURL string `yaml:"default_redirection_url"`
- GoogleAnalyticsTrackingID string `yaml:"google_analytics"`
+ Host string `mapstructure:"host"`
+ Port int `mapstructure:"port"`
+ LogsLevel string `mapstructure:"logs_level"`
- AuthenticationBackend AuthenticationBackendConfiguration `yaml:"authentication_backend"`
- Session SessionConfiguration `yaml:"session"`
+ // This secret is used by the identity validation process to forge JWT tokens
+ // representing the permission to proceed with the operation.
+ JWTSecret string `mapstructure:"jwt_secret"`
+ DefaultRedirectionURL string `mapstructure:"default_redirection_url"`
+ GoogleAnalyticsTrackingID string `mapstructure:" google_analytics"`
- TOTP *TOTPConfiguration `yaml:"totp"`
- DuoAPI *DuoAPIConfiguration `yaml:"duo_api"`
- AccessControl *AccessControlConfiguration `yaml:"access_control"`
- Regulation *RegulationConfiguration `yaml:"regulation"`
- Storage *StorageConfiguration `yaml:"storage"`
- Notifier *NotifierConfiguration `yaml:"notifier"`
+ AuthenticationBackend AuthenticationBackendConfiguration `mapstructure:"authentication_backend"`
+ Session SessionConfiguration `mapstructure:"session"`
+
+ TOTP *TOTPConfiguration `mapstructure:"totp"`
+ DuoAPI *DuoAPIConfiguration `mapstructure:"duo_api"`
+ AccessControl *AccessControlConfiguration `mapstructure:"access_control"`
+ Regulation *RegulationConfiguration `mapstructure:"regulation"`
+ Storage *StorageConfiguration `mapstructure:"storage"`
+ Notifier *NotifierConfiguration `mapstructure:"notifier"`
}