Package | Description |
---|---|
me.zhyd.oauth |
JustAuth,如你所见,它仅仅是一个第三方授权登录的工具类库,它可以让我们脱离繁琐的第三方登录SDK,让登录变得So easy!
|
me.zhyd.oauth.config |
JustAuth 核心配置相关,包括
AuthConfig 和AuthSource |
me.zhyd.oauth.exception |
JustAuth专用异常封装
|
me.zhyd.oauth.request |
JustAuth核心组件,所有授权登录都是基于
request 实现 |
me.zhyd.oauth.utils |
提供一些简单的工具和校验等
|
Modifier and Type | Method and Description |
---|---|
AuthRequestBuilder |
AuthRequestBuilder.extendSource(AuthSource... extendSource) |
Modifier and Type | Class and Description |
---|---|
class |
AuthDefaultSource
JustAuth内置的各api需要的url, 用枚举类分平台类型管理
|
Constructor and Description |
---|
AuthException(AuthResponseStatus status,
AuthSource source) |
AuthException(int errorCode,
String errorMsg,
AuthSource source) |
AuthException(String errorMsg,
AuthSource source) |
Modifier and Type | Field and Description |
---|---|
protected AuthSource |
AuthDefaultRequest.source |
Constructor and Description |
---|
AbstractAuthDingtalkRequest(AuthConfig config,
AuthSource source) |
AbstractAuthDingtalkRequest(AuthConfig config,
AuthSource source,
AuthStateCache authStateCache) |
AbstractAuthWeChatEnterpriseRequest(AuthConfig config,
AuthSource source) |
AbstractAuthWeChatEnterpriseRequest(AuthConfig config,
AuthSource source,
AuthStateCache authStateCache) |
AuthDefaultRequest(AuthConfig config,
AuthSource source) |
AuthDefaultRequest(AuthConfig config,
AuthSource source,
AuthStateCache authStateCache) |
Modifier and Type | Method and Description |
---|---|
static void |
AuthChecker.checkCode(AuthSource source,
AuthCallback callback)
校验回调传回的code
|
static void |
AuthChecker.checkConfig(AuthConfig config,
AuthSource source)
检查配置合法性。针对部分平台, 对redirect uri有特定要求。一般来说redirect uri都是http://,而对于facebook平台, redirect uri 必须是https的链接
|
static void |
AuthChecker.checkState(String state,
AuthSource source,
AuthStateCache authStateCache)
校验回调传回的
state ,为空或者不存在 |
static boolean |
AuthChecker.isSupportedAuth(AuthConfig config,
AuthSource source)
是否支持第三方登录
|
Copyright © 2021. All rights reserved.