<p>What is the correct way to pass auth header in auth-url for external auth? Below is my current nginx ingress config：</p>
<pre><code>nginx.ingress.kubernetes.io/auth-cache-key: $remote_user$http_authorization
nginx.ingress.kubernetes.io/auth-response-headers: Authorization
nginx.ingress.kubernetes.io/auth-signin: mydomain/signin
nginx.ingress.kubernetes.io/auth-url: mydomain/check
</code></pre>
<p>Traffic will first go to /signin, and after my external oauth signin, it will go to my another /redirect endpoint where I send Authorization header, and redirect back to the original url. But next time when traffic goes to original url and hits /check, it does not pass Authorization header to my /check endpoint so it fails the auth verification again.  I thought nginx.ingress.kubernetes.io/auth-response-headers would pass the header for me but it did not work. Do you know how to pass header in my case?</p>
<p>Many thanks!</p>

Kang Tao
<p>Have you tried setting specifically the header inside the <code>auth-snippet</code> annotation?</p>
<pre class="lang-yaml prettyprint-override"><code>nginx.ingress.kubernetes.io/auth-snippet: |
    proxy_set_header Authorization $http_authorization;
</code></pre>
