一、请求授权服务获取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

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

相关文章:

  • 2021-08-02
  • 2022-12-23
  • 2021-12-29
  • 2021-12-14
  • 2021-05-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2021-11-04
  • 2021-05-19
  • 2021-08-09
  • 2021-07-29
相关资源
相似解决方案