From 08ba0130c16b1c67d72043edd7486fe4f5207271 Mon Sep 17 00:00:00 2001 From: Gregory Wells Date: Thu, 6 Aug 2026 20:16:10 -0400 Subject: [PATCH] add in config for oauth endpoint --- example.config.json | 5 ++++- main/config.go | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/example.config.json b/example.config.json index 86c5885..9daabbf 100644 --- a/example.config.json +++ b/example.config.json @@ -1,3 +1,6 @@ { - "caldav_url:": "https://mx.example.com" + "caldav_url:": "https://mx.example.com", + "oauth_enabled": true, + "oauth_issuer": "https://sso.example.com/application/o/stalwart/", + "oauth_clientid": "stalwart-webui" } diff --git a/main/config.go b/main/config.go index 0bcd479..30a15f3 100644 --- a/main/config.go +++ b/main/config.go @@ -7,7 +7,10 @@ import ( ) type Config struct { - URL string `json:"caldav_url"` + URL string `json:"caldav_url"` + OAuthEnabled bool `json:"oauth_enabled"` + OAuthIssuer string `json:"oauth_issuer"` + OAuthClientID string `json:"oauth_clientid"` } var serverConfig Config