0

我使用 jhipster 5.6.0 生成了一个由 oauth2 保护的微服务,并且我正在使用 keycloak。我也使用 oauth 配置文件启动了 jhipster 注册表。我无法在 jhipster-rgistry 中使用 swagger 测试我的微服务。

我可以使用 Keycloak 登录注册表。我想知道如何使用 swagger(Jhipster 中的 API 菜单)测试我的微服务?因为它现在返回此错误:{“type”:“ https://www.jhipster.tech/problem/problem-with-message ”,“title”:“Unauthorized”,“status”:401,“detail” : "访问此资源需要完全认证", "path": "/api/users", "message": "error.http.401" }

我可以通过使用邮递员获取访问令牌来测试我的服务。

4

0 回答 0