Make cert work.

This commit is contained in:
Yang Luo
2021-12-31 09:36:48 +08:00
parent ba1646a0c3
commit 5e8897e41b
18 changed files with 262 additions and 38 deletions

View File

@ -332,7 +332,9 @@ func RefreshToken(grantType string, refreshToken string, scope string, clientId
Code: "",
}
}
claims, err := ParseJwtToken(refreshToken)
cert := getCertByApplication(application)
claims, err := ParseJwtToken(refreshToken, cert)
if err != nil {
return &Code{
Message: "error: invalid refresh_token",