{"action":"created","issue":{"url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/52","labels_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/52/comments","events_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/52/events","html_url":"https://github.com/lucadegasperi/oauth2-server-laravel/issues/52","id":28405514,"number":52,"title":"No Authorization Header when unit testing","user":{"login":"rookian1337","id":465359,"avatar_url":"https://avatars.githubusercontent.com/u/465359?v=3","gravatar_id":"","url":"https://api.github.com/users/rookian1337","html_url":"https://github.com/rookian1337","followers_url":"https://api.github.com/users/rookian1337/followers","following_url":"https://api.github.com/users/rookian1337/following{/other_user}","gists_url":"https://api.github.com/users/rookian1337/gists{/gist_id}","starred_url":"https://api.github.com/users/rookian1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rookian1337/subscriptions","organizations_url":"https://api.github.com/users/rookian1337/orgs","repos_url":"https://api.github.com/users/rookian1337/repos","events_url":"https://api.github.com/users/rookian1337/events{/privacy}","received_events_url":"https://api.github.com/users/rookian1337/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-02-27T09:41:30Z","updated_at":"2015-01-22T11:03:54Z","closed_at":"2014-03-04T11:27:17Z","body":"Hi,\r\n\r\nI build a simple authentication and authorization service with this package and everything works fine. i tested it manually (with the rest console chrome plugin) and i'm getting an access token and the system also authorizes me with it.\r\n\r\nnow i was going to write unit tests, but there i was getting problems\r\n(after receiving my access token, im trying to access an endpoint which is oauth protected):\r\n\r\n```\r\n$response = $this->callSecure(\r\n    'GET',\r\n    '/',\r\n    [],\r\n    [],\r\n    array('HTTP_Authorization' => 'Bearer ' . $access_token)\r\n```\r\n\r\nBut I'm getting a 403 response which says:\r\n```\r\n{\"status\":403,\"error\":\"forbidden\",\"error_message\":\"Access token is missing\"}\r\nFailed asserting that false is true.\r\n```\r\n\r\nI've already searched for this problem and i found this [Issue](https://github.com/laravel/framework/issues/1655#issuecomment-26413615) where someone had a similar problem. It seems that the `Request::createFromGlobals()` does not recognize headers correctly.\r\n\r\nIs this a Laravel (more Illuminate) bug? Can i do something to get my tests green? "},"comment":{"url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/comments/71004437","html_url":"https://github.com/lucadegasperi/oauth2-server-laravel/issues/52#issuecomment-71004437","issue_url":"https://api.github.com/repos/lucadegasperi/oauth2-server-laravel/issues/52","id":71004437,"user":{"login":"rookian1337","id":465359,"avatar_url":"https://avatars.githubusercontent.com/u/465359?v=3","gravatar_id":"","url":"https://api.github.com/users/rookian1337","html_url":"https://github.com/rookian1337","followers_url":"https://api.github.com/users/rookian1337/followers","following_url":"https://api.github.com/users/rookian1337/following{/other_user}","gists_url":"https://api.github.com/users/rookian1337/gists{/gist_id}","starred_url":"https://api.github.com/users/rookian1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rookian1337/subscriptions","organizations_url":"https://api.github.com/users/rookian1337/orgs","repos_url":"https://api.github.com/users/rookian1337/repos","events_url":"https://api.github.com/users/rookian1337/events{/privacy}","received_events_url":"https://api.github.com/users/rookian1337/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T11:03:54Z","updated_at":"2015-01-22T11:03:54Z","body":"Which version are you using?"}}