微服务的JHipster-Registry Swagger UI对UAA说invalid_token [英] JHipster-Registry Swagger UI for microservice says invalid_token with UAA

查看:155
本文介绍了微服务的JHipster-Registry Swagger UI对UAA说invalid_token的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Jhipster(generator-jhipster版本:@ 5.3.1)设置了以下组件

I setup the following components using Jhipster (version of generator-jhipster: @ 5.3.1)

Gateway
Jhipster Registry
UAA Server

到目前为止一切正常.

在Jhipster注册表中,当我转到管理" >>"API"时,它将打开Swagger UI. Swagger UI仅列出Jhipster-Registry的api.但是,当在下拉列表中选择uaa或网关时,会产生错误.来自网关的Swagger UI(管理>> API)工作正常.仅从注册表中不起作用.

In Jhipster Registry, when I go to Administration >> API It opens up Swagger UI. Swagger UI lists the apis for Jhipster-Registry only. But it gives error when the uaa or gateway is selected in the drop down. Swagger UI From Gateway (Administration >> API) works fine. Only from registry it does not work.

如果缺少某些配置,请告诉我.

Please let me know if I am missing some configuration.

推荐答案

UAA对注册表的支持是最近添加的,并将在下一版本中提供.如果您想尽早使用它,可以进行以下更改:

UAA support for the registry was just recently added and will be in the next release. If you want to have it early, you can make the following changes:

  • 在您的UAA应用程序的UaaConfiguration.java中,添加.authorities("ROLE_ADMIN") 此处.

然后您可以将develop标记用于jhipster-registry Docker映像,并将uaa配置文件添加到该容器的SPRING_ACTIVE_PROFILES

Then you can use the develop tag for the jhipster-registry Docker image, and add the uaa profile to that container's SPRING_ACTIVE_PROFILES

  • If you prefer to run the JHipster Registry from source, you can clone the jhipster-registry repository and check out the develop branch

这篇关于微服务的JHipster-Registry Swagger UI对UAA说invalid_token的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆