Hi, I am practicing with my instructor's code.
I have a @RibbonClient ("currency-exchange-service). Currency exchange service is a secure microservice with basic authentication features (using username/password).
Currency conversion microservice sends a request which goes through my Zuul gateway and then go to currency exchange service.
In the code of conversion service , I have @FeignClient("zuul-gateway-service)
In currency exchange service, I have a basic authentication request interceptor bean to accept the username password read from a properties file.
My problem is the request cannot be authenticated after it goes through the Zuul gateway. I cannot search for a solution.
How can the request be authenticated by the ribbon client, currency exchange after it goes through Zuul.
Here is my code:
currency conversion service:
currency exchange service:
Zuul gateway services that intercepts currency conversion service request:
Eureka service that registers the above services: