Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
My_csdo
JustAuth
提交
90f8d01c
J
JustAuth
项目概览
My_csdo
/
JustAuth
与 Fork 源项目一致
Fork自
justauth / JustAuth
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
JustAuth
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
90f8d01c
编写于
5月 23, 2019
作者:
智布道
👁
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🍻
增加用户的UUID
上级
0237cb38
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
10 addition
and
0 deletion
+10
-0
src/main/java/me/zhyd/oauth/request/AuthAlipayRequest.java
src/main/java/me/zhyd/oauth/request/AuthAlipayRequest.java
+4
-0
src/main/java/me/zhyd/oauth/request/AuthBaiduRequest.java
src/main/java/me/zhyd/oauth/request/AuthBaiduRequest.java
+1
-0
src/main/java/me/zhyd/oauth/request/AuthCodingRequest.java
src/main/java/me/zhyd/oauth/request/AuthCodingRequest.java
+1
-0
src/main/java/me/zhyd/oauth/request/AuthDingTalkRequest.java
src/main/java/me/zhyd/oauth/request/AuthDingTalkRequest.java
+1
-0
src/main/java/me/zhyd/oauth/request/AuthOschinaRequest.java
src/main/java/me/zhyd/oauth/request/AuthOschinaRequest.java
+1
-0
src/main/java/me/zhyd/oauth/request/AuthTaobaoRequest.java
src/main/java/me/zhyd/oauth/request/AuthTaobaoRequest.java
+1
-0
src/main/java/me/zhyd/oauth/request/AuthTencentCloudRequest.java
...n/java/me/zhyd/oauth/request/AuthTencentCloudRequest.java
+1
-0
未找到文件。
src/main/java/me/zhyd/oauth/request/AuthAlipayRequest.java
浏览文件 @
90f8d01c
...
...
@@ -48,6 +48,9 @@ public class AuthAlipayRequest extends BaseAuthRequest {
}
return
AuthToken
.
builder
()
.
accessToken
(
response
.
getAccessToken
())
.
uid
(
response
.
getUserId
())
.
expireIn
(
Integer
.
parseInt
(
response
.
getExpiresIn
()))
.
refreshToken
(
response
.
getRefreshToken
())
.
build
();
}
...
...
@@ -67,6 +70,7 @@ public class AuthAlipayRequest extends BaseAuthRequest {
String
province
=
response
.
getProvince
(),
city
=
response
.
getCity
();
return
AuthUser
.
builder
()
.
uuid
(
response
.
getUserId
())
.
username
(
response
.
getUserName
())
.
nickname
(
response
.
getNickName
())
.
avatar
(
response
.
getAvatar
())
...
...
src/main/java/me/zhyd/oauth/request/AuthBaiduRequest.java
浏览文件 @
90f8d01c
...
...
@@ -47,6 +47,7 @@ public class AuthBaiduRequest extends BaseAuthRequest {
throw
new
AuthException
(
errorCode
.
getDesc
());
}
return
AuthUser
.
builder
()
.
uuid
(
object
.
getString
(
"userid"
))
.
username
(
object
.
getString
(
"username"
))
.
nickname
(
object
.
getString
(
"username"
))
.
gender
(
AuthUserGender
.
getRealGender
(
object
.
getString
(
"sex"
)))
...
...
src/main/java/me/zhyd/oauth/request/AuthCodingRequest.java
浏览文件 @
90f8d01c
...
...
@@ -47,6 +47,7 @@ public class AuthCodingRequest extends BaseAuthRequest {
}
object
=
object
.
getJSONObject
(
"data"
);
return
AuthUser
.
builder
()
.
uuid
(
object
.
getString
(
"id"
))
.
username
(
object
.
getString
(
"name"
))
.
avatar
(
"https://coding.net/"
+
object
.
getString
(
"avatar"
))
.
blog
(
"https://coding.net/"
+
object
.
getString
(
"path"
))
...
...
src/main/java/me/zhyd/oauth/request/AuthDingTalkRequest.java
浏览文件 @
90f8d01c
...
...
@@ -51,6 +51,7 @@ public class AuthDingTalkRequest extends BaseAuthRequest {
}
object
=
object
.
getJSONObject
(
"user_info"
);
return
AuthUser
.
builder
()
.
uuid
(
object
.
getStr
(
"openid"
))
.
nickname
(
object
.
getStr
(
"nick"
))
.
username
(
object
.
getStr
(
"nick"
))
.
source
(
AuthSource
.
DINGTALK
)
...
...
src/main/java/me/zhyd/oauth/request/AuthOschinaRequest.java
浏览文件 @
90f8d01c
...
...
@@ -46,6 +46,7 @@ public class AuthOschinaRequest extends BaseAuthRequest {
throw
new
AuthException
(
object
.
getString
(
"error_description"
));
}
return
AuthUser
.
builder
()
.
uuid
(
object
.
getString
(
"id"
))
.
username
(
object
.
getString
(
"name"
))
.
nickname
(
object
.
getString
(
"name"
))
.
avatar
(
object
.
getString
(
"avatar"
))
...
...
src/main/java/me/zhyd/oauth/request/AuthTaobaoRequest.java
浏览文件 @
90f8d01c
...
...
@@ -48,6 +48,7 @@ public class AuthTaobaoRequest extends BaseAuthRequest {
String
nick
=
GlobalAuthUtil
.
urlDecode
(
object
.
getString
(
"taobao_user_nick"
));
return
AuthUser
.
builder
()
.
uuid
(
object
.
getString
(
"taobao_user_id"
))
.
username
(
nick
)
.
nickname
(
nick
)
.
gender
(
AuthUserGender
.
UNKNOW
)
...
...
src/main/java/me/zhyd/oauth/request/AuthTencentCloudRequest.java
浏览文件 @
90f8d01c
...
...
@@ -47,6 +47,7 @@ public class AuthTencentCloudRequest extends BaseAuthRequest {
}
object
=
object
.
getJSONObject
(
"data"
);
return
AuthUser
.
builder
()
.
uuid
(
object
.
getString
(
"id"
))
.
username
(
object
.
getString
(
"name"
))
.
avatar
(
"https://dev.tencent.com/"
+
object
.
getString
(
"avatar"
))
.
blog
(
"https://dev.tencent.com/"
+
object
.
getString
(
"path"
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录