Hi,
I have a problem about getting the correlation id auth token from Keycloak when I make a request from one service to another in my Spring Cloud.
I got null correlation id and auth token from Keycloak. I put a log in UserContextFilter in User service. Here is the result Management Service | UserContextFilter | doFilter | User Service Incoming Correlation id: null | Auth Token : null
That's why I got 401 Authorized value as I can get null of Correlation id and Auth Token from user service in management service making a request to user service.
I used rest template as a load balancer to get correlation id and auth token in management service and advertisement service but all these are null.
How can I get auth token and Correlation id and propagate them through services?
How can I fix it?
Here are some images : Link
Here is my project link : Link