Closed AffiTheCreator closed 5 months ago
Do you have gateway generated?
Im quite new to jhipster so pardon my questons if they sound silly , but when you say gateway you talking about the microservice gateway option during the yeoman setup?
I have been trying to find documention for v8.0.0 buts its quite difficult.
The probelm is im not doing any custom code at this time just launching what comes pre buillt and it does not work ou f the box.
I have to change the test class becauyse its missing a import , but after that i can compile but once i try to login with JWT or OAuth2 both fail
Yes. You need a gateway application to access the microservices (if I remember correctly). You can have a look at Matt's blog post about microservices/frontends with jhipster https://developer.okta.com/blog/2022/10/10/micro-frontends-java-microservices
Microservice is only supported with a gateway. Request headers are customized by gateways. If you want a standalone microservice, you may want to create a monolith without client.
Hi @AffiTheCreator ,
you should still be able to authenticate yourself and access the microservices api directly without gateway in generated microservices. (i have not enabled service discovery for this scenario, it can always be added later
you'll need to create a client called internal in keycloak and add it's credentials to your application.yml
src/main/docker/realm-config/jhipster-realm.json # it seems to have internal client config, but it didn't get created in keycloak 23 (my local setup)
I'll attach a postman collection and yo-rc.json which you can use to generate microservice and test the scenario.
Jhipster.postman_collection.json ) .yo-rc.json
cc: @atomfrede @mshima
@jainhitesh9998 thanks for the info.
We actually mean that we only support our microservices architecture using our own gateway and have CI tests for this use case. Of course it's possible to customize the application to do anything using spring, but it's not supported by JHipster.
Overview of the issue
No error in the stack trace only in the dev tools of the browser
Motivation for or Use Case
I'm trying to use a microservice architecture and cannot because of this error
Reproduce the error
launch jhipster >> select microservice >> maven >> and any configuration you want
Related issues
could not find one that relates to this
JHipster Version(s)
version 8.0.0
JHipster configuration
jhipster info
Browsers and Operating System
windows running on wsl2