1
0
mirror of synced 2026-05-22 13:43:20 +00:00

💩 改进部分代码结构

This commit is contained in:
yadong.zhang
2020-07-04 11:05:19 +08:00
parent 72bb1d826f
commit 45e1195974
11 changed files with 14 additions and 62 deletions
@@ -123,13 +123,9 @@ public class AuthMicrosoftRequest extends AuthDefaultRequest {
*/
@Override
public String authorize(String state) {
return UrlBuilder.fromBaseUrl(source.authorize())
.queryParam("response_type", "code")
.queryParam("client_id", config.getClientId())
.queryParam("redirect_uri", config.getRedirectUri())
return UrlBuilder.fromBaseUrl(super.authorize(state))
.queryParam("response_mode", "query")
.queryParam("scope", this.getScopes(" ", true, AuthMicrosoftScope.getDefaultScopes()))
.queryParam("state", getRealState(state))
.build();
}