当前位置:网站首页>The fuse: OAuth 2.0 four authorized login methods must read
The fuse: OAuth 2.0 four authorized login methods must read
2022-08-05 10:17:00 【InfoQ】
- About authorized login includes three terminals, resource owner (user), resource server (website storing user resources), pageThird-party website.
- OAuth is a layer used to separate users and third-party websites. After the user agrees, the resource server can issue tokens to the third-party websites, and the firstThe third-party website can access the information of the resource server corresponding to the user through this token.
Four ways of OAuth2.0 authorization
Premise: No matter which way, the third-party website needs to register with the resource server in advanceIdentity, get the corresponding appid and secret, in order to prevent the token from being used indiscriminately.authorization-code
- First, the third-party website carries the appid, secrect and redirect_url to the resource server to get the QR code for login
- Pass the confirmation notification to the resource server after the user scans the code
- The resource server returns according to the redirect_url in the first stepauthorization-codeand the login success status
- After the third party obtains the authorization-code, it will bring its own previously registered appid, secrect and authorization-code to the resource server to obtain the token
- Then the third-party website can go to the resource server to obtain the user information according to the token, and then it can wake up the follow-up operation.
Hidden (implicit)
- The third-party website carries the appid, secrect and redirect_url to the resource server to obtain the login QR code
- After the user scans the code, the confirmation notification is sent to the resource server
- The resource server follows the firstThe redirect_url of the step returnstokenand the successful login status
- and then the third-party website according to the tokenGo to the resource server to get the user information and you can do the follow-up operations
password
- ported by the third-party websiteUsername and password go to the resource server to get the token
- Then the third-party website can go to the resource server to obtain the user information according to the token, and then follow-up operations can be done
client credentials (client credentials)
- Get the token from the resource server by carrying the appid and secrect on the command line
- Then the command line goes to the resource server to obtain user information according to the token, and then the follow-up operations can be done
Summary
边栏推荐
- The difference between find, matches, lookingAt matching strings in matcher
- NowCoderTOP35-40 - continuous update ing
- 第七章,activiti个人任务分配,动态指定和监听器指定任务委派人「建议收藏」
- Pycharm 常用外部工具
- 【综合类型第 35 篇】程序员的七夕浪漫时刻
- 一文道清什么是SPL
- 【温度预警程序de开发】事件驱动模型实例运用
- 第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」
- 导火索:OAuth 2.0四种授权登录方式必读
- 百年北欧奢华家电品牌ASKO智能三温区酒柜臻献七夕,共品珍馐爱意
猜你喜欢

MySQL transactions

2022 Huashu Cup Mathematical Modeling Question A Optimization Design Ideas for Ring Oscillators Code Sharing

什么是CRM决策分析管理?

Oracle临时表空间作用

微服务 技术栈

电气工程的标准是什么

After Keil upgrades to AC6, what changes?

RT-Thread记录(一、RT-Thread 版本、RT-Thread Studio开发环境 及 配合CubeMX开发快速上手)

还在找网盘资源吗?快点收藏如下几个值得收藏的网盘资源搜索神器吧!

百年北欧奢华家电品牌ASKO智能三温区酒柜臻献七夕,共品珍馐爱意
随机推荐
Confessing in the era of digital transformation: Mai Cong Software allows enterprises to use data in the easiest way
上位机开发C#语言:模拟STC串口助手接收单片机发送数据
Can MySQL use aggregate functions without GROUP BY?
E-sports, convenience, efficiency, security, key words for OriginOS functions
ffmpeg drawtext 添加文本水印
Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?
STM32+ULN2003驱动28BYJ4步进电机(根据圈数正转、反转)
[强网杯2022]WP-UM
第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」
SD NAND Flash简介!
FPGA:基础入门LED灯闪烁
[Office] Collection of Microsoft Office download addresses (offline installation and download of Microsoft's official original version)
第五章:activiti流程分流判断,判断走不同的任务节点
High-quality DeFi application building guide to help developers enjoy DeFi Summer
电气工程的标准是什么
第五章:redis持久化,包括rdb和aof两种方式[通俗易懂]
力扣(LeetCode)216. 组合总和 III(2022.08.04)
uniapp connect ibeacon
浅析WSGI协议
The difference between find, matches, lookingAt matching strings in matcher