Cannot get auth token from Keycloak and propagate it through all services in my Spring Boot Microservices #13376
Unanswered
Rapter1990
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions