I have an AUTH_SERVICE
which authenticates the user credentials and sends JWT token in response header. I also have GATEWAY_SERVICE
which intercepts the request and validates the token and forwards the request to the controller of other microservices.
Now, in this process, I can't seem to figure out how to implement JPA Auditing
just in case if any table data of targeted microservices is changed.
Any suggesstions?
Here's a Github link to my project
Below is a list of microservices in the project
- zuul-server (Port:8762)
- auth-server (Port: 9100)
- gallery-service (Port: 8100)
- image-service (Port: 8200)
✖ - Now, I need to send username/token
or say user_id
from zuul-server
to gallery-service
for JPA audit purpose. Any recommendation on how do i do that?