!78 修改Oauth2 凭证式缺少校验scope 问题

Merge pull request !78 from 茉莉/dev
This commit is contained in:
省长 2021-10-27 03:10:00 +00:00 committed by Gitee
commit eb1ec5676c

View File

@ -277,6 +277,9 @@ public class SaOAuth2Handle {
String clientSecret = req.getParamNotNull(Param.client_secret);
String scope = req.getParam(Param.scope);
//校验 ClientScope
SaOAuth2Util.checkContract(clientId, scope);
// 校验 ClientSecret
SaOAuth2Util.checkClientSecret(clientId, clientSecret);