title: Interact with API to get user info after authentication
body: <p>I authenticated the REST server and got a token in the cookies. This token allowed access to the REST server, but I want to interact with the authentication service.</p>
  
  <p>Github responses with that message</p>
  
  <pre><code> {
        "message": "Bad credentials",
        "documentation_url": "https://developer.github.com/v3"
   }
  </code></pre>
  
  <p>Gitlab returns only </p>
  
  <pre><code>401 (Unauthorized)
  </code></pre>
  
  <p>I'm using token returned from cookies as HTTP header </p>
  
  <pre><code>Authorization: `token`
  Authorization: bearer `token`
  Authorization: token `token`
  </code></pre>