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

♻️ rename

This commit is contained in:
yadong.zhang
2019-07-16 17:59:36 +08:00
parent 65334d0f3f
commit 8a4861075e
50 changed files with 210 additions and 172 deletions
@@ -8,7 +8,7 @@ import me.zhyd.oauth.config.AuthConfig;
import me.zhyd.oauth.config.AuthSource;
import me.zhyd.oauth.exception.AuthException;
import me.zhyd.oauth.model.*;
import me.zhyd.oauth.url.MicrosoftUrlBuilder;
import me.zhyd.oauth.url.AuthMicrosoftUrlBuilder;
import me.zhyd.oauth.url.entity.AuthUserInfoEntity;
import java.util.HashMap;
@@ -21,9 +21,9 @@ import java.util.Map;
* @version 1.5
* @since 1.5
*/
public class AuthMicrosoftRequest extends BaseAuthRequest {
public class AuthMicrosoftRequest extends AuthDefaultRequest {
public AuthMicrosoftRequest(AuthConfig config) {
super(config, AuthSource.MICROSOFT, new MicrosoftUrlBuilder());
super(config, AuthSource.MICROSOFT, new AuthMicrosoftUrlBuilder());
}
@Override
@@ -99,6 +99,6 @@ public class AuthMicrosoftRequest extends BaseAuthRequest {
public AuthResponse refresh(AuthToken authToken) {
String refreshTokenUrl = this.urlBuilder.getRefreshUrl(authToken.getRefreshToken());
return AuthResponse.builder().code(ResponseStatus.SUCCESS.getCode()).data(getToken(refreshTokenUrl)).build();
return AuthResponse.builder().code(AuthResponseStatus.SUCCESS.getCode()).data(getToken(refreshTokenUrl)).build();
}
}