add in config for oauth endpoint

This commit is contained in:
2026-08-06 20:16:10 -04:00
parent 4a7b3c91f0
commit 08ba0130c1
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -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"
}
+3
View File
@@ -8,6 +8,9 @@ import (
type Config struct {
URL string `json:"caldav_url"`
OAuthEnabled bool `json:"oauth_enabled"`
OAuthIssuer string `json:"oauth_issuer"`
OAuthClientID string `json:"oauth_clientid"`
}
var serverConfig Config