当前位置:网站首页>Re understand oauth2.0 protocol for joint login
Re understand oauth2.0 protocol for joint login
2022-06-30 11:43:00 【Full stack programmer webmaster】
One 、 Define several name concepts :
- Authorization link : Jump to the authorization interface
- The function of the callback address : On the authorization page , Click to authorize ,( The authorization button is provided by a third party ), If the authorization succeeds , Will jump to the callback address , And the authorization code is passed to us as a parameter , And then get through the authorization code acctoken, Get more Openid.
- openid openid It is a unique and non repeated identification provided by the third-party open platform . Use Openid Combine your own website for joint login operation
Two 、oauth2.0 Agreement acquisition openid technological process
1. Generate an authorization code connection ,
2. Click to authorize ( Jump to the callback address , The authorization code is in the parameter ) Exchange for by authorization code acctoken
3. adopt acctoken Exchange for openid
4. adopt acctoken+openid In exchange for user information .3、 ... and 、 The overall process of authorization login of associated account
- Jump authorization connection
- Authorized success , Jump to callback address , The parameters carried include authorization code , Exchange for by authorization code acctoken,acctoken Exchange for openid
- Use openid Query our database , If yes, it indicates that the account number has been associated before , Release login
- If you use openid I didn't find , Jump to the associated account page .
- The associated page is divided into associated pages : (1) A new account is equivalent to registering , At the same time, we should also put openId Write data ). You need to associate the account number with openid Write to the database . (2) Associate the original account , Log in first , In the Openid Write to the database .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/100802.html Link to the original text :https://javaforall.cn
边栏推荐
- Line generation (Gauss elimination method, linear basis)
- 孔松(信通院)-数字化时代云安全能力建设及趋势
- CVPR 2022 | greatly reduce the manual annotation required for zero sample learning. Mapu and Beiyou proposed category semantic embedding rich in visual information
- Oceanbase installation Yum source configuration error and Solutions
- Flutter 从零开始 008 表单
- It's time for the kotlin coroutine to schedule thread switching to solve the mystery
- 使用cookie技术实现历史浏览记录并控制显示的个数
- Stm32f407zgt6 uses SDIO mode to drive SD card
- 一个人就是一本书
- AMS source code analysis
猜你喜欢

Alibaba cloud database represented by polardb ranks first in the world

wallys/IPQ8074a/2x(4×4 or 8×8) 11AX MU-MIMO DUAL CONCURRENT EMBEDDEDBOARD

启明星辰集团运维安全网关(堡垒机)再次夺得榜首!

Is the golden cycle of domestic databases coming?

Object mapping - mapping Mapster

Uncover the whole link communication process of customer service im

Introduction to China Mobile oneos development board

他是上海两大产业的第一功臣,却在遗憾中默默离世
![[xi'anjiaotonguniversity] information sharing of the first and second postgraduate entrance examinations](/img/06/df5a64441814c9ecfa2f039318496e.jpg)
[xi'anjiaotonguniversity] information sharing of the first and second postgraduate entrance examinations

Oracle netsuite helps TCM bio understand data changes and make business development more flexible
随机推荐
wallys/600VX – 2×2 MIMO 802.11ac Mini PCIe Wi-Fi Module, Dual Band, 2,4GHz / 5GHz QCA 9880
8 lines of code to achieve quick sorting, easy to understand illustrations!
100 important knowledge points that SQL must master: using subquery
Flutter 从零开始 008 表单
R language de duplication operation unique duplicate filter
EMC-浪涌
Esp32-c3 introductory tutorial basic part ⑪ - reading and writing non-volatile storage (NVS) parameters
数据库 自动增长
R语言去重操作unique duplicate filter
There are so many kinds of coupons. First distinguish them clearly and then collect the wool!
Multiparty cardinality testing for threshold private set-2021: Interpretation
【IC5000教程】-01-使用daqIDEA图形化debug调试C代码
wallys/IPQ8074a/2x(4×4 or 8×8) 11AX MU-MIMO DUAL CONCURRENT EMBEDDEDBOARD
学习redis实现分布式锁—–自己的一个理解
[IC5000 tutorial] - 01- use daqdea graphical debug to debug C code
数字化不是试出来,而是蹚出来的|行知数字中国 × 富士康史喆
Webview,ScrollView滑动冲突咋整
达梦数据冲刺科创板,或成A股市场“国产数据库第一股”
科普達人丨漫畫圖解什麼是eRDMA?
博弈论入门