I can use the service if the stream does not contain the main authorization.
If I use Basic Authorization, it displays a "message": "Full authentication is required to access this resource"
Below are my observations:
In the ZuulFilter, run () method, I get the value for request.getHeader ("Login") -> Main c29tOnNvbzz ==
but as soon as it reaches Micro Service, I get the value as "null", request.getHeader ("Login") -> null
Using Spring Boot Version: 1.4.0.RELEASE
This is my flow: ------------------ Zuul -> Service Discovery (Eureka Server) -> Service
Please help without knowing where the authorization header disappears.
Eureka Server yml file: ------------------------- server.port:4001 eureka.instance.hostname=localhost eureka.client.fetch-registry:false eureka.client.register-with-eureka:false eureka.client.serviceUrl.defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/ eureka.client.healthcheck.enabled=true Zuul yml file: ----------------- server: port: 8765 info: component: Edge Server eureka: instance: leaseRenewalIntervalInSeconds: 3 metadataMap: instanceId: ${spring.application.name}:${random.value} client:
Kumar source share