Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuming
/
developer-docs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
undancer
2016-01-25 11:49:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d02b1172de100bac079ea6ae920013cd83caa045
d02b1172
1 parent
ff09175d
Updated 第三方登录 (markdown)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletions
第三方登录.md
第三方登录.md
View file @
d02b117
当用户点击登陆界面的第三方登陆按钮时,客户端将向授权方申请授权,当取得授权后尝试登陆本服务器,服务器将返回该授权是否初始化过,如果没有初始化过则会通知客户端需要绑定初始化信息,此时客户端需要向授权方申请获取个人信息,并将拿到的数据汇报给服务器。完成初次的第三方登陆。
以后的第三方登陆由于服务器端已经拥有了用户的这些信息,则不再需要客户端查看其个人信息。
\ No newline at end of file
以后的第三方登陆由于服务器端已经拥有了用户的这些信息,则不再需要客户端查看其个人信息。
第三方登录成功后需要上传第三方信息给服务器
在/after_bind接口提交时增加参数payload。payload的格式为json,其中包括从授权服务器获得的所有key-value内容。
参数为:
⭕️❌
| key | Android微信 | AndroidQQ |
| --- | --- | --- |
| access_token | ⭕️ | ⭕️ |
| refresh_token | ⭕️ | ❌ |
| openid | ⭕️ | ⭕️ |
| expires_in | ⭕️ | ⭕️ |
| refresh_token_expires | ⭕️ | ❌ |
| appid | ❌ | ⭕️ |
| uid | ⭕️ | ⭕️ |
| unionid | ⭕️ | ❌ |
| pay_token | ❌ | ⭕️ |
| pf | ❌ | ⭕️ |
| pfkey | ❌ | ⭕️ |
| ret | ❌ | ⭕️ |
| sendinstall | ❌ | ⭕️ |
| page_type | ❌ | ⭕️ |
| auth_time | ❌ | ⭕️ |
| scope | ⭕️ | ❌ |
...
...
Please
register
or
login
to post a comment