spring security oauth2 获取jwt的方式

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

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

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

如下
在这里插入图片描述

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

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

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

猜你喜欢

转载自blog.csdn.net/fuck487/article/details/103554267