feat: Implement OAuth 2.0 / OIDC SSO support with configuration and routing updates

This commit is contained in:
samanhappy
2026-01-01 13:20:39 +08:00
parent 93f4861953
commit fb1f670d88
6 changed files with 118 additions and 63 deletions

View File

@@ -43,6 +43,34 @@
}
],
"systemConfig": {
"oauthSSO": {
"enabled": true,
"allowLocalAuth": true,
"callbackBaseUrl": "https://your-mcphub-domain.com",
"providers": [
{
"id": "google",
"name": "Google",
"type": "google",
"clientId": "your-google-client-id",
"clientSecret": "your-google-client-secret"
},
{
"id": "github",
"name": "GitHub",
"type": "github",
"clientId": "your-github-client-id",
"clientSecret": "your-github-client-secret"
},
{
"id": "microsoft",
"name": "Microsoft",
"type": "microsoft",
"clientId": "your-microsoft-client-id",
"clientSecret": "your-microsoft-client-secret"
}
]
},
"oauthServer": {
"enabled": true,
"accessTokenLifetime": 3600,