feat: add OIDC WebFinger support (#3245)

* feat: add WebFinger support

* lint: used gofumpt

* oidc: ensure webfinger rel is checked
This commit is contained in:
Jack Merrill
2024-09-26 01:06:36 -04:00
committed by GitHub
parent 717c53f6e5
commit d647eed22a
4 changed files with 87 additions and 1 deletions

View File

@ -290,6 +290,7 @@ func initAPI() {
beego.Router("/.well-known/openid-configuration", &controllers.RootController{}, "GET:GetOidcDiscovery")
beego.Router("/.well-known/jwks", &controllers.RootController{}, "*:GetJwks")
beego.Router("/.well-known/webfinger", &controllers.RootController{}, "GET:GetWebFinger")
beego.Router("/cas/:organization/:application/serviceValidate", &controllers.RootController{}, "GET:CasServiceValidate")
beego.Router("/cas/:organization/:application/proxyValidate", &controllers.RootController{}, "GET:CasProxyValidate")