mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +00:00
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>
This commit is contained in:
parent
6a7090b41d
commit
024ef3940f
4 changed files with 23 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue