add configurable OAuth auth plugin support

Introduce a new rms.auth.oauth auth method plugin for OAuth/OIDC code flow with standard provider settings (authorize/token/userinfo URLs, client credentials, scope, redirect URI and extra params). Add server callback handling and OAuth challenge state tracking, UI redirect/error handling, and keep the plugin disabled by default via manifest defaultEnabled=false.
This commit is contained in:
2026-03-16 12:57:30 +01:00
parent 6342b40369
commit 2b05057aa2
5 changed files with 504 additions and 37 deletions

View File

@@ -0,0 +1,32 @@
{
"id": "rms.auth.oauth",
"name": "OAuth / OIDC Auth",
"version": "1.0.0",
"apiVersion": "1.0",
"defaultEnabled": false,
"capabilities": [],
"authMethod": {
"id": "oauth",
"type": "oauth",
"label": "OAuth"
},
"settingsSchema": {
"type": "object",
"properties": {
"authorizeUrl": { "type": "string" },
"tokenUrl": { "type": "string" },
"userInfoUrl": { "type": "string" },
"clientId": { "type": "string" },
"clientSecret": { "type": "string" },
"scope": { "type": "string" },
"redirectUri": { "type": "string" },
"emailField": { "type": "string" },
"authStyle": { "type": "string" },
"audience": { "type": "string" },
"extraAuthorizeParams": { "type": "string" },
"extraTokenParams": { "type": "string" }
},
"additionalProperties": false
},
"uiControls": []
}