太难了,都给我往后稍稍

OAuth2 的四种授权模式

2020-07-17  本文已影响0人  乌鲁木齐001号程序员

OAuth2 四种授权模型

Resource owner password | 手机 APP
Resource owner password.png
Authorization code grant | Web 应用
Authorization code grant.png

第 2 步,浏览器直接把请求发到认证服务器的时候,Spring Security 的 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter#configure(org.springframework.security.config.annotation.web.builders.HttpSecurity) 方法,默认配置,需要填用户名密码,填好用户名密码之后,到认证服务器,认证服务器通过自己实现的 com.lixinlei.security.auth.oauth2.config.UserDetailsServiceImpl 去判断浏览器输入的用户名密码对不对;对了,才会走认证服务器发授权码到前端服务器的流程;

Implicit
Implicit.png
Client credential
Client credential .png
上一篇 下一篇

猜你喜欢

热点阅读