提取公共的Source接口,支持自定义扩展第三方平台的授权登录,具体扩展例子可参考AuthExtendRequest

This commit is contained in:
yadong.zhang 2019-09-06 22:21:35 +08:00
parent 02f9f833e6
commit 80f2dbdad7

View File

@ -3,7 +3,6 @@ package me.zhyd.oauth.request;
import me.zhyd.oauth.cache.AuthStateCache; import me.zhyd.oauth.cache.AuthStateCache;
import me.zhyd.oauth.config.AuthConfig; import me.zhyd.oauth.config.AuthConfig;
import me.zhyd.oauth.config.AuthExtendSource; import me.zhyd.oauth.config.AuthExtendSource;
import me.zhyd.oauth.config.AuthSource;
import me.zhyd.oauth.enums.AuthResponseStatus; import me.zhyd.oauth.enums.AuthResponseStatus;
import me.zhyd.oauth.enums.AuthUserGender; import me.zhyd.oauth.enums.AuthUserGender;
import me.zhyd.oauth.model.AuthCallback; import me.zhyd.oauth.model.AuthCallback;
@ -24,7 +23,7 @@ public class AuthExtendRequest extends AuthDefaultRequest {
super(config, AuthExtendSource.OTHER); super(config, AuthExtendSource.OTHER);
} }
public AuthExtendRequest(AuthConfig config, AuthSource source, AuthStateCache authStateCache) { public AuthExtendRequest(AuthConfig config, AuthStateCache authStateCache) {
super(config, AuthExtendSource.OTHER, authStateCache); super(config, AuthExtendSource.OTHER, authStateCache);
} }