Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Web Development
>
OAuth/SSO
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
1.1K
Star
10.4K
Fork
3.2K
GVP
yadong.zhang
/
JustAuth
Code
Issues
57
Pull Requests
4
Wiki
Insights
Pipelines
Service
JavaDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
钉钉登录获取用户信息忽略了openid
Done
#IY2FV
Skqing
Opened this issue
2019-06-18 14:54
### 哪个平台? 钉钉 ### 重现步骤 点击钉钉登录收到回调,钉钉文档说明返回的用户信息如下: ``` { "errcode": 0, "errmsg": "ok", "user_info": { "nick": "张三", "openid": "liSii8KCxxxxx", "unionid": "7Huu46kk" } } ``` 然而`AuthDingTalkRequest.getUserInfo()`在封装的时候忽略了openid的存在,因此没有给AuthUser对象设置AuthToken属性,不知道作者是不是原本就是这样设计的。我使用的时候去获取`authUser.getToken().getOpenId()`报空指针异常才发现这个问题。 ### 错误信息 java.lang.NullPointerException: null
### 哪个平台? 钉钉 ### 重现步骤 点击钉钉登录收到回调,钉钉文档说明返回的用户信息如下: ``` { "errcode": 0, "errmsg": "ok", "user_info": { "nick": "张三", "openid": "liSii8KCxxxxx", "unionid": "7Huu46kk" } } ``` 然而`AuthDingTalkRequest.getUserInfo()`在封装的时候忽略了openid的存在,因此没有给AuthUser对象设置AuthToken属性,不知道作者是不是原本就是这样设计的。我使用的时候去获取`authUser.getToken().getOpenId()`报空指针异常才发现这个问题。 ### 错误信息 java.lang.NullPointerException: null
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Closed
Assignees
Not set
yadong.zhang
yadong.zhang
Assignee
Collaborator
+Assign
+Mention
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (4)
Tags (49)
master
dev
v1.15.9
dev-json
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1
v1.16.0
v1.15.9
v1.15.8
v1.15.7
v1.15.7-beta.3
v1.15.7-beta.2
v1.15.7-beta.1
1.15.6
1.15.5
1.15.4-alpha
1.15.3-alpha
1.15.2-alpha
v.1.15.1
v1.14.0
v1.13.2
v1.13.1
v1.13.0
v1.12.0
v1.11.0
v1.10.1
v1.10.0
v1.9.5
v1.9.4
v1.9.3
v1.9.2
v1.9.1
v1.9.0
v1.8.1
v1.8.0
v1.7.1
v1.7.0
v1.6.1-beta
v1.6.0-beta
v1.5.1
v1.4.0
v1.3.3
v1.3.1
v1.3.0
v1.2.0
v1.1.0
v1.0.1
v1.0.0
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
Java
1
https://gitee.com/yadong.zhang/JustAuth.git
git@gitee.com:yadong.zhang/JustAuth.git
yadong.zhang
JustAuth
JustAuth
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register