简体   繁体   English

在Spring Boot Oauth2中创建类似于客户端的Postman

[英]Creating Postman like client in Spring Boot Oauth2

I have Resource server and Authorization server, both are working fine when I use Postman to generate to token from authorization server and then use Get request with that token, and then I see the text in my Resource server. 我有资源服务器和授权服务器,当我使用Postman从授权服务器生成令牌,然后使用带有该令牌的Get请求时,两者都工作正常,然后在资源服务器中看到文本。

Is there way to create similar Client application in Spring Boot to fill the same function as postman does? 有没有办法在Spring Boot中创建类似的Client应用程序来填充与postman相同的功能? Checks if user has token, if not then sends me to Authorization server where user can login, and then takes the user back with the token to see the message what is on Resource server. 检查用户是否具有令牌,如果没有,则将我发送到用户可以登录的授权服务器,然后用令牌将用户带回以查看消息资源服务器上的内容。

可以直接从可用的春季页面中了解有关在春季启动中配置oauth2的教程: Spring Boot OAuth教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM