<p>I am passing the authorization header in ingress yaml file</p>
<pre><code>  nginx.ingress.kubernetes.io/configuration-snippet: |
      proxy_set_header Authorization &quot;Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1Ni......&quot;
</code></pre>
<p>but getting the error</p>
<blockquote>
<p>2021/03/01 09:23:58 [emerg] 947#947: too long parameter, probably
missing terminating &quot;&quot;&quot; character in /tmp/nginx-cfg445808174:586</p>
</blockquote>
<p>I want to pass the request payload as well to the auth-url
what is the right way to pass the authorization header and request body?</p>

<p>you can pass the authorization header</p>
<pre><code>annotations:
  nginx.ingress.kubernetes.io/configuration-snippet: |
    proxy_set_header Authorization $http_authorization;
</code></pre>
