Improve OAuth2 provider (correct Issuer, respect ENABLED) (#34966)

1. Make "Issuer" strictly follow the spec (see comment)
2. Make "/.well-known/openid-configuration" respond 404 if the OAuth2
provider is not enabled.

Then by the way, remove the JSEscape template helper because it is not
needed any more.
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-07-06 13:36:45 +08:00
1 parent 429efc8b4f
commit 3533263ced
10 files changed
+80 -41

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
{
"info": {
"version": "{{AppVer | JSEscape}}"
"version": "{{.SwaggerAppVer}}"
},
"basePath": "{{AppSubUrl | JSEscape}}/api/v1"
"basePath": "{{.SwaggerAppSubUrl}}/api/v1"
}