add in config for oauth endpoint
This commit is contained in:
+4
-1
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ import (
|
|||||||
|
|
||||||
type Config struct {
|
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
|
var serverConfig Config
|
||||||
|
|||||||
Reference in New Issue
Block a user