一、请求授权服务获取access_token的请求方式

方式一:
url:http://客户端ID:客户端密码@localhost:8900/oauth/token

请求参数 value
grant_type password
username 你的用户名
password 你的密码
scope(作用域) 你设置的scope

如下
spring security oauth2 获取jwt的方式

方式二:
url:http://127.0.0.1:8900/oauth/token

请求参数 value
grant_type password
username 你的用户名
password 你的密码
scope(作用域) 你设置的scope

参数和方式一相同,但需要增加一个请求头

相关文章: