diff --git a/src/main/java/me/zhyd/oauth/request/AbstractAuthMicrosoftRequest.java b/src/main/java/me/zhyd/oauth/request/AbstractAuthMicrosoftRequest.java index 1bc88ec6..cfd25b1c 100644 --- a/src/main/java/me/zhyd/oauth/request/AbstractAuthMicrosoftRequest.java +++ b/src/main/java/me/zhyd/oauth/request/AbstractAuthMicrosoftRequest.java @@ -54,13 +54,6 @@ private AuthToken getToken(String accessTokenUrl) { Map form = MapUtil.parseStringToMap(accessTokenUrl, false); - //scope在微软最新的文档中要求必须用空格隔开,form构建时候空格会被强制转换为%20,所以此处重新覆盖 - String scope = form.get("scope"); - if (scope != null){ - String replace = scope.replaceAll("%20"," "); - form.put("scope",replace); - } - String response = new HttpUtils(config.getHttpConfig()).post(accessTokenUrl, form, httpHeader, false).getBody(); JSONObject accessTokenObject = JSONObject.parseObject(response);