# Slim get jwt Authorization

**URL:** <https://discourse.slimframework.com/t/slim-get-jwt-authorization/2361>\
**Category:** Questions\
**Created:** [April 22, 2018, 1:04am UTC](https://discourse.slimframework.com/t/slim-get-jwt-authorization/2361 "2018-04-22T01:04:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mehmet](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mehmet](https://discourse.slimframework.com/u/mehmet)\
**Post date:** [April 22, 2018, 1:04am UTC](https://discourse.slimframework.com/t/slim-get-jwt-authorization/2361/1 "2018-04-22T01:04:14Z")

</div>

I am using JWT and i did not get the Authorization from header.  
i am use the guzzle for the request and i send the request to slim-api like this

```
$client = new GuzzleHttp\Client(['base_uri' => 'http://slim/api/']);
$response = $client->get('users', [
    'headers' => [
      'Authorization' => "Bearer {$token}"
    ]
]);

$api_data = json_decode($response->getBody()->getContents());

```

And header does not contain on the slim side. By he way i am using nginx server.  
$request-\>getHeaders()[‘HTTP\_AUTHORIZATION’][0];
