How to fix Invalid JWT with JHipster Registry [Docker]?

为君一笑 提交于 2019-12-01 11:59:17

问题


I want to build a microservices software with JHipster. I'm running jhipster-registry:v3.2.4 into Docker, i also have a microservice application (create with generator 5.0.1) but i do no generate a gateway application.

I set the profiles in docker-compose.yml with: dev and native

I setted the JWT Secret in Docker Compose file.

I added configurations files into : central-config folder

I setted the jwt for my microservice into all possible *.yml files

but on the registry UI, when i'm trying to access microservices logs or metrics, i got an Exception : Invalid JWT Signature.


回答1:


As you use the native profile, you can use a config file by setting SPRING_CLOUD_CONFIG_SERVER_NATIVE_SEARCH_LOCATIONS=file:./config/ in your compose .yml and in a config folder, you add an application.yml file with jhipster: security: authentication: jwt: secret: your secret



来源:https://stackoverflow.com/questions/51139879/how-to-fix-invalid-jwt-with-jhipster-registry-docker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!