title: Missing Authorization header using JWT
body: <p>I'm trying to setup JSON Web Tokens to communicate with my php backend from a mobile app. I can request a token just fine. When i need to validate it(or make a request to another endpoint), i setup the Authorization header with the following format:</p>
  
  <pre><code>Bearer &lt;token here&gt;
  </code></pre>
  
  <p>But for some reason on my backend, <code>$_SERVER['HTTP_AUTHORIZATION']</code> is not set. </p>
  
  <p>I'm on localhost using Mamp Pro with PHP7. This is a dump for my <code>$_SERVER</code> array:</p>
  
  <pre><code>Array
  (
      [SERVER_SOFTWARE] =&gt; Apache
      [REQUEST_URI] =&gt; /wp-json/jwt-auth/v1/token/validate/
      [REDIRECT_STATUS] =&gt; 200
      [HTTP_HOST] =&gt; localhost.dev
      [CONTENT_TYPE] =&gt; application/x-www-form-urlencoded
      [CONTENT_LENGTH] =&gt; 54
      [HTTP_CONNECTION] =&gt; keep-alive
      [HTTP_ACCEPT] =&gt; */*
      [HTTP_USER_AGENT] =&gt; CocoaRestClient/15 CFNetwork/760.2.6 Darwin/15.3.0 (x86_64)
      [HTTP_ACCEPT_LANGUAGE] =&gt; en-us
      [HTTP_ACCEPT_ENCODING] =&gt; gzip, deflate
      [PATH] =&gt; /usr/bin:/bin:/usr/sbin:/sbin
      [SERVER_SIGNATURE] =&gt; 
      [SERVER_NAME] =&gt; cloud.iblue.eu
      [SERVER_ADDR] =&gt; ::1
      [SERVER_PORT] =&gt; 80
      [REMOTE_ADDR] =&gt; ::1
      [DOCUMENT_ROOT] =&gt; /Applications/MAMP/htdocs/dev
      [SERVER_ADMIN] =&gt; you@example.com
      [SCRIPT_FILENAME] =&gt; /Applications/MAMP/htdocs/dev/index.php
      [REMOTE_PORT] =&gt; 51804
      [REDIRECT_URL] =&gt; /wp-json/jwt-auth/v1/token/validate/
      [GATEWAY_INTERFACE] =&gt; CGI/1.1
      [SERVER_PROTOCOL] =&gt; HTTP/1.1
      [REQUEST_METHOD] =&gt; POST
      [QUERY_STRING] =&gt; 
      [SCRIPT_NAME] =&gt; /index.php
      [PHP_SELF] =&gt; /index.php
      [REQUEST_TIME_FLOAT] =&gt; 1459177711.33
      [REQUEST_TIME] =&gt; 1459177711
      [argv] =&gt; Array
          (
          )
  
      [argc] =&gt; 0
  )
  </code></pre>
  
  <p>When i'm trying to use HTTP Basic authentication with <code>Basic dGVzdEB0ZXN0LmNvbToxMjM0NQ==</code> as the authorization header, it works fine:</p>
  
  <pre><code>[PHP_AUTH_USER] =&gt; test@test.com
  [PHP_AUTH_PW] =&gt; 12345
  </code></pre>
  
  <p>Any idea whats wrong?</p>