1
0
mirror of synced 2026-05-22 21:53:18 +00:00

🔥 优化代码

This commit is contained in:
yadong.zhang
2020-07-05 00:16:08 +08:00
parent 272d1ac8a0
commit d645224071
41 changed files with 98 additions and 391 deletions
@@ -14,6 +14,7 @@ import me.zhyd.oauth.model.AuthCallback;
import me.zhyd.oauth.model.AuthResponse;
import me.zhyd.oauth.model.AuthToken;
import me.zhyd.oauth.model.AuthUser;
import me.zhyd.oauth.utils.AuthScopeUtils;
import me.zhyd.oauth.utils.HttpUtils;
import me.zhyd.oauth.utils.UrlBuilder;
@@ -125,7 +126,7 @@ public class AuthMicrosoftRequest extends AuthDefaultRequest {
public String authorize(String state) {
return UrlBuilder.fromBaseUrl(super.authorize(state))
.queryParam("response_mode", "query")
.queryParam("scope", this.getScopes(" ", true, AuthMicrosoftScope.getDefaultScopes()))
.queryParam("scope", this.getScopes(" ", true, AuthScopeUtils.getDefaultScopes(AuthMicrosoftScope.values())))
.build();
}