summaryrefslogtreecommitdiffstats
path: root/routers/routes
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 /routers/routes
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 'routers/routes')
-rw-r--r--routers/routes/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/routes/web.go b/routers/routes/web.go
index 4815680c99..a8d64b4c44 100644
--- a/routers/routes/web.go
+++ b/routers/routes/web.go
@@ -336,6 +336,7 @@ func RegisterRoutes(m *web.Route) {
// Routers.
// for health check
m.Get("/", routers.Home)
+ m.Get("/.well-known/openid-configuration", user.OIDCWellKnown)
m.Group("/explore", func() {
m.Get("", func(ctx *context.Context) {
ctx.Redirect(setting.AppSubURL + "/explore/repos")