{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/362","repository_url":"https://api.github.com/repos/thephpleague/oauth2-server","labels_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/362/comments","events_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/362/events","html_url":"https://github.com/thephpleague/oauth2-server/issues/362","id":99476996,"number":362,"title":"access_token from request query problem in lumen 5.1 ","user":{"login":"yazfield","id":9166171,"avatar_url":"https://avatars.githubusercontent.com/u/9166171?v=3","gravatar_id":"","url":"https://api.github.com/users/yazfield","html_url":"https://github.com/yazfield","followers_url":"https://api.github.com/users/yazfield/followers","following_url":"https://api.github.com/users/yazfield/following{/other_user}","gists_url":"https://api.github.com/users/yazfield/gists{/gist_id}","starred_url":"https://api.github.com/users/yazfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yazfield/subscriptions","organizations_url":"https://api.github.com/users/yazfield/orgs","repos_url":"https://api.github.com/users/yazfield/repos","events_url":"https://api.github.com/users/yazfield/events{/privacy}","received_events_url":"https://api.github.com/users/yazfield/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2015-08-06T16:42:50Z","updated_at":"2016-09-08T11:55:52Z","closed_at":"2015-12-22T13:36:32Z","body":"Hello,\r\n\r\nI'm using the package with lumen 5.1 and i've noticed that there's a problem with sending the access_token as a request query.\r\n\r\nThe problem is at ``` League\\OAuth2\\Server\\ResourceServer@determineAccessToken line 140 ```, the if condition ``` if($this->getRequest()->headers->get('Authorization') !== null) ``` is always true because get('Authorization') returns an empty string (even though it wasn't set) so the method never checks for access_token in request query.\r\n\r\nfix: \r\n```\r\n$authorization = $this->getRequest()->headers->get('Authorization');\r\nif( !  empty($authorization)) ....\r\n```\r\n\r\nCheers :D\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/comments/245574637","html_url":"https://github.com/thephpleague/oauth2-server/issues/362#issuecomment-245574637","issue_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/362","id":245574637,"user":{"login":"alexbilbie","id":77991,"avatar_url":"https://avatars.githubusercontent.com/u/77991?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbilbie","html_url":"https://github.com/alexbilbie","followers_url":"https://api.github.com/users/alexbilbie/followers","following_url":"https://api.github.com/users/alexbilbie/following{/other_user}","gists_url":"https://api.github.com/users/alexbilbie/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbilbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbilbie/subscriptions","organizations_url":"https://api.github.com/users/alexbilbie/orgs","repos_url":"https://api.github.com/users/alexbilbie/repos","events_url":"https://api.github.com/users/alexbilbie/events{/privacy}","received_events_url":"https://api.github.com/users/alexbilbie/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T11:55:52Z","updated_at":"2016-09-08T11:55:52Z","body":"@rickshawhobo I've created a `4.1.x` branch - if you make the change and PR against that branch I will merge and create a new `4.1.x` tag"}}
{"actor":{"display_login":"alexbilbie"}}