File tree 1 file changed +20
-1
lines changed
docs/system-design/authority-certification
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -132,4 +132,23 @@ JWT 由 3 部分构成:
132
132
- [ JSON Web Token 入门教程] ( https://www.ruanyifeng.com/blog/2018/07/json_web_token-tutorial.html )
133
133
- [ 彻底理解Cookie,Session,Token] ( https://mp.weixin.qq.com/s?__biz=Mzg2OTA0Njk0OA==&mid=2247485603&idx=1&sn=c8d324f44d6102e7b44554733da10bb7&chksm=cea24768f9d5ce7efe7291ddabce02b68db34073c7e7d9a7dc9a7f01c5a80cebe33ac75248df&token=844918801&lang=zh_CN#rd )
134
134
135
- ## 5 什么是OAuth 2.0
135
+ ## 5 什么是OAuth 2.0?
136
+
137
+ OAuth 是一个行业的标准授权协议,主要用来授权第三方应用获取有限的权限。而 OAuth 2.0是对 OAuth 1.0 的完全重新设计,OAuth 2.0更快,更容易实现,OAuth 1.0 已经被废弃。详情请见:[ rfc6749] ( https://tools.ietf.org/html/rfc6749 ) 。
138
+
139
+ 实际上它就是一种授权机制,它的最终目的是为第三方应用颁发一个有时效性的令牌 token,使得第三方应用能够通过该令牌获取相关的资源。
140
+
141
+ OAuth 2.0 比较常用的场景就是第三方登录,当你的网站接入了第三方登录的时候一般就是使用的 OAuth 2.0 协议。
142
+
143
+ 推荐阅读:
144
+
145
+ - [ OAuth 2.0 的一个简单解释] ( http://www.ruanyifeng.com/blog/2019/04/oauth_design.html )
146
+ - [ 10 分钟理解什么是 OAuth 2.0 协议] ( https://deepzz.com/post/what-is-oauth2-protocol.html )
147
+ - [ OAuth 2.0 的四种方式] ( http://www.ruanyifeng.com/blog/2019/04/oauth-grant-types.html )
148
+ - [ GitHub OAuth 第三方登录示例教程] ( http://www.ruanyifeng.com/blog/2019/04/github-oauth.html )
149
+
150
+ ## 参考
151
+
152
+ - https://medium.com/@sherryhsu/session-vs-token-based-authentication-11a6c5ac45e4
153
+ - https://www.varonis.com/blog/what-is-oauth/
154
+ - https://tools.ietf.org/html/rfc6749
You can’t perform that action at this time.
0 commit comments