title: Have Zuul edge service automatically use microservice's basic auth credentials
body: <p>I'm trying to build an edge service that uses zuul to call a microservice through Eureka. The microservice requires basic auth. Previously, Ribbon was detecting the credentials and setting the auth header. But now when I hit the endpoint through the zuul proxy, it's prompting me to login with the microservice credentials.</p>
  
  <p>Can someone tell me how to configure zuul to do what Ribbon had been doing? Or is it not even possible?</p>
  
  <p>Spring cloud verision is Dalston</p>
  
  <p>spring boot 1.5.6.RELEASE</p>
  
  <p>Edge service uses cas authentication</p>
  
  <p><strong>zuul configuration</strong></p>
  
  <pre><code>zuul:
      routes:
          my-msv:
              # for now
              sensitiveHeaders:
  </code></pre>
  
  <p><strong>main class</strong></p>
  
  <pre><code>@SpringBootApplication
  @EnableZuulProxy
  @RestController
  class ZuulDemoApplication {
  
  
      @LoadBalanced
      @Bean
      fun restOps(): RestOperations {
          return RestTemplate()
      }
  
      @GetMapping("/hello")
      fun sayHello() = "hello!"
  
  }
  
  fun main(args: Array&lt;String&gt;) {
      SpringApplication.run(ZuulDemoApplication::class.java, *args)
  }
  </code></pre>