aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-02-18 17:52:02 +0800
committerGitHub <noreply@github.com>2024-02-18 10:52:02 +0100
commit31bb9f3247388b993c61a10190cfd512408ce57e (patch)
tree6a4c777d5507b8e92cebd1786750c6a4db9367c8 /templates/user
parenta784ed3d6c6946fd9bf95f2e910f52f549326fe2 (diff)
downloadgitea-31bb9f3247388b993c61a10190cfd512408ce57e.tar.gz
gitea-31bb9f3247388b993c61a10190cfd512408ce57e.zip
Refactor more code in templates (#29236)
Follow #29165. * Introduce JSONTemplate to help to render JSON templates * Introduce JSEscapeSafe for templates. Now only use `{{ ... | JSEscape}}` instead of `{{ ... | JSEscape | Safe}}` * Simplify "UserLocationMapURL" useage
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/auth/oidc_wellknown.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/user/auth/oidc_wellknown.tmpl b/templates/user/auth/oidc_wellknown.tmpl
index 38e6900c38..54bb4a763d 100644
--- a/templates/user/auth/oidc_wellknown.tmpl
+++ b/templates/user/auth/oidc_wellknown.tmpl
@@ -1,16 +1,16 @@
{
- "issuer": "{{AppUrl | JSEscape | Safe}}",
- "authorization_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/authorize",
- "token_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/access_token",
- "jwks_uri": "{{AppUrl | JSEscape | Safe}}login/oauth/keys",
- "userinfo_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/userinfo",
- "introspection_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/introspect",
+ "issuer": "{{AppUrl | JSEscape}}",
+ "authorization_endpoint": "{{AppUrl | JSEscape}}login/oauth/authorize",
+ "token_endpoint": "{{AppUrl | JSEscape}}login/oauth/access_token",
+ "jwks_uri": "{{AppUrl | JSEscape}}login/oauth/keys",
+ "userinfo_endpoint": "{{AppUrl | JSEscape}}login/oauth/userinfo",
+ "introspection_endpoint": "{{AppUrl | JSEscape}}login/oauth/introspect",
"response_types_supported": [
"code",
"id_token"
],
"id_token_signing_alg_values_supported": [
- "{{.SigningKey.SigningMethod.Alg | JSEscape | Safe}}"
+ "{{.SigningKey.SigningMethod.Alg | JSEscape}}"
],
"subject_types_supported": [
"public"