mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-07 17:28:25 +08:00
✨ 提取公共的Source接口,支持自定义扩展第三方平台的授权登录,具体扩展例子可参考AuthExtendRequest
This commit is contained in:
parent
02f9f833e6
commit
80f2dbdad7
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user