summaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 2d77025..86d0d5b 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -35,6 +35,10 @@ type Config struct {
// Display
Timezone string // IANA timezone name (e.g., "Pacific/Honolulu")
+
+ // WebAuthn
+ WebAuthnRPID string // Relying Party ID (domain, e.g., "doot.terst.org")
+ WebAuthnOrigin string // Expected origin (e.g., "https://doot.terst.org")
}
// Load reads configuration from environment variables
@@ -67,6 +71,10 @@ func Load() (*Config, error) {
// Display
Timezone: getEnvWithDefault("TIMEZONE", "Pacific/Honolulu"),
+
+ // WebAuthn
+ WebAuthnRPID: os.Getenv("WEBAUTHN_RP_ID"),
+ WebAuthnOrigin: os.Getenv("WEBAUTHN_ORIGIN"),
}
// Validate required fields