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

继续进行优化,去掉多余的改动

This commit is contained in:
ngcly
2021-08-10 10:18:42 +08:00
parent 5073f82897
commit 7cdc719166
4 changed files with 97 additions and 522 deletions
File diff suppressed because it is too large Load Diff
@@ -1,10 +1,8 @@
package me.zhyd.oauth.config;
import me.zhyd.oauth.cache.AuthStateCache;
import me.zhyd.oauth.enums.AuthResponseStatus;
import me.zhyd.oauth.exception.AuthException;
import me.zhyd.oauth.model.AuthCallback;
import me.zhyd.oauth.request.AuthRequest;
/**
* OAuth平台的API地址的统一接口,提供以下方法:
@@ -46,21 +44,6 @@ public interface AuthSource {
*/
String userInfo();
/**
* 根据配置获取对应的实例
* @param authConfig 配置
* @return AuthRequest
*/
AuthRequest getAuthRequestInstance(AuthConfig authConfig);
/**
* 根据配置和缓存获取对应的实例
* @param authConfig 配置
* @param authStateCache 缓存
* @return AuthRequest
*/
AuthRequest getAuthRequestInstance(AuthConfig authConfig, AuthStateCache authStateCache);
/**
* 取消授权的api
*