oauth2 + Restful Api + postman 应用测试示例

1、获取授权令牌 access_token

http://localhost:9082/oauth/token?grant_type=client_credentials&code=form&redirect_uri=http://127.0.0.1:9083/api/hello/windmt&client_id=implement-integration&client_secret=K2QzPP3z3fqQNEnsbwupD1b1IDPPg0RfkdWalXysL7wd

如下图:

oauth2 + Restful Api + postman 应用测试示例_第1张图片

2、获取access_token,再访问测试用例

http://127.0.0.1:9083/api/hello/windmt?access_token=af586467-ef4b-496d-a6ec-16175626978d

oauth2 + Restful Api + postman 应用测试示例_第2张图片

你可能感兴趣的:(oauth2 + Restful Api + postman 应用测试示例)