aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorN. L. H <github@nlh-software.de>2021-05-06 07:30:15 +0200
committerGitHub <noreply@github.com>2021-05-06 01:30:15 -0400
commit45970ae82e478dd7d5f01fcc053de5df00198abc (patch)
treef4ff21156e83af743291774d2054704821d34aa3 /templates
parent6a3ad0b24e6d0e859c2073126af429ef1892e712 (diff)
downloadgitea-45970ae82e478dd7d5f01fcc053de5df00198abc.tar.gz
gitea-45970ae82e478dd7d5f01fcc053de5df00198abc.zip
Feature/oauth userinfo (#15721)
* Implemented userinfo #8534 * Make lint happy * Add userinfo endpoint to openid-configuration * Give an error when uid equals 0 * Implemented BearerTokenErrorCode handling * instead of ctx.error use ctx.json so that clients parse error and error_description correctly * Removed unneeded if statement * Use switch instead of subsequent if statements Have a default for unknown errorcodes. Co-authored-by: Nils Hillmann <hillmann@nlh-software.de> Co-authored-by: nlhsoftware <nlhsoftware@noreply.localhost>
Diffstat (limited to 'templates')
-rw-r--r--templates/user/auth/oidc_wellknown.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/user/auth/oidc_wellknown.tmpl b/templates/user/auth/oidc_wellknown.tmpl
index 290ed4a71d..fcde060a8d 100644
--- a/templates/user/auth/oidc_wellknown.tmpl
+++ b/templates/user/auth/oidc_wellknown.tmpl
@@ -2,6 +2,7 @@
"issuer": "{{AppUrl | JSEscape | Safe}}",
"authorization_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/authorize",
"token_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/access_token",
+ "userinfo_endpoint": "{{AppUrl | JSEscape | Safe}}login/oauth/userinfo",
"response_types_supported": [
"code",
"id_token"