简体   繁体   中英

JHipster-Registry Swagger UI for microservice says invalid_token with UAA

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

Gateway
Jhipster Registry
UAA Server

Everything works fine so far.

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 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:

  • In your UAA app's UaaConfiguration.java, add .authorities("ROLE_ADMIN") here .

  • 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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