Rewritten the oauth2 system to be more modular and also adjusted the default config

This commit is contained in:
Marcel Baumgartner
2023-05-21 20:30:49 +02:00
parent beae4b8d90
commit a8f8030a83
12 changed files with 355 additions and 379 deletions

View File

@@ -34,17 +34,20 @@
"Website": "https://mycoolproject.de/"
},
"OAuth2": {
"Discord": {
"ClientId": "10324",
"ClientSecret": "s3cr3t",
"Enable": "True"
},
"Google": {
"ClientId": "xyz.apps.googleusercontent.com",
"ClientSecret": "s3cr3t",
"Enable": "True"
},
"EnableOverrideUrl": "True",
"_exampleProviders": [
{
"Id": "discord",
"ClientId": "",
"ClientSecret": ""
},
{
"Id": "google",
"ClientId": "",
"ClientSecret": ""
}
],
"Providers": [],
"EnableOverrideUrl": false,
"OverrideUrl": "http://your-moonlight-url.test"
},
"Security": {