提交 6d0c837c 编写于 作者: 智布道's avatar 智布道 👁

💥 change: scope changed to optional

上级 cd99be4b
......@@ -78,7 +78,13 @@ public class OauthUtil {
public static Set<String> validateScope(String requestScopes, String clientScopes) {
if (StringUtil.isEmpty(requestScopes)) {
throw new InvalidScopeException(ErrorResponse.INVALID_SCOPE);
// OPTIONAL. The scope of the access request.
// https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1
// https://datatracker.ietf.org/doc/html/rfc6749#section-4.2.1
// https://datatracker.ietf.org/doc/html/rfc6749#section-4.3.2
// https://datatracker.ietf.org/doc/html/rfc6749#section-4.4.2
// https://datatracker.ietf.org/doc/html/rfc6749#section-6
return new HashSet<>();
}
Set<String> scopes = OauthUtil.convertStrToList(requestScopes);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册