feat: implement jwks_uri handler in oidc discovery (#334)

Signed-off-by: Товарищ <2962928213@qq.com>
This commit is contained in:
Товарищ программист
2021-11-22 17:47:44 +08:00
committed by GitHub
parent 44b59d866a
commit bddd57cda8
6 changed files with 36 additions and 1 deletions

View File

@ -20,3 +20,13 @@ func (c *ApiController) GetOidcDiscovery() {
c.Data["json"] = object.GetOidcDiscovery()
c.ServeJSON()
}
func (c *ApiController) GetOidcCert() {
jwks, err := object.GetJSONWebKeySet()
if err != nil {
c.ResponseError(err.Error())
return
}
c.Data["json"] = jwks
c.ServeJSON()
}