aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2021-04-15 22:32:00 -0400
committerGitHub <noreply@github.com>2021-04-15 22:32:00 -0400
commit024ef3940f016fe3b4100d4cd1e9f8d99ccb12ba (patch)
tree7ac5d572b03b558a1c2cde4c3c78c99cfe574815 /templates
parent6a7090b41df6e0a782f04707af60ebfbec9db0a5 (diff)
downloadgitea-024ef3940f016fe3b4100d4cd1e9f8d99ccb12ba.tar.gz
gitea-024ef3940f016fe3b4100d4cd1e9f8d99ccb12ba.zip
add well-known config for OIDC (#15355)
* add well-known config for OIDC * spacing per feedback * Update oidc_wellknown.tmpl * add id_token * Update oidc_wellknown.tmpl Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/user/auth/oidc_wellknown.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/user/auth/oidc_wellknown.tmpl b/templates/user/auth/oidc_wellknown.tmpl
new file mode 100644
index 0000000000..290ed4a71d
--- /dev/null
+++ b/templates/user/auth/oidc_wellknown.tmpl
@@ -0,0 +1,9 @@
+{
+ "issuer": "{{AppUrl | JSEscape | Safe}}",
+ "authorization_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/authorize",
+ "token_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/access_token",
+ "response_types_supported": [
+ "code",
+ "id_token"
+ ]
+}