学习OAuth2的时候收集的相关资料汇总,后续有时间再翻译整理一下。html
持续更新中... web
OAuth2的官方协议文档:https://tools.ietf.org/html/rfc6749#section-1.3.1spring
相关网站:https://oauth.net/2/安全
对OAuth2协议的一个简要的介绍,涵盖了OAuth2的全部重要概念,官方协议比较长,能够先读一读这个对协议有个整体的认知ide
https://aaronparecki.com/oauth-2-simplified/web安全
https://alexbilbie.com/guide-to-oauth-2-grants/学习
https://developer.okta.com/blog/2018/06/29/what-is-the-oauth2-password-grant网站
受权码相关介绍:ui
https://developer.okta.com/blog/2018/04/10/oauth-authorization-code-grant-typeurl
spring boot 集成oauth2受权码模式:
http://www.javashuo.com/article/p-kkpdiwgd-ba.html
使用Spring2.x的时候,若是用户客户端和认证服务部署在一块儿的,可能遇到不管怎么配置,/oauth/authorize都请求不到code的状况,缘由是认证服务(0)、资源服务(3)和web安全服务配置的优先级(100)不一样致使的。
而/oauth/authorize是要受web security保护的,必须经过web security的认证,才能请求受权code。
https://developer.okta.com/blog/2018/05/24/what-is-the-oauth2-implicit-grant-type
好像官方已经不建议使用了:Why you should stop using the OAuth implicit grant!