Skip to content

Commit

Permalink
Merge pull request #652 from rickshawhobo/4.1.x
Browse files Browse the repository at this point in the history
less restrictive on Authorization header check
  • Loading branch information
alexbilbie authored Sep 13, 2016
2 parents c5db707 + 491f3f0 commit 084b779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResourceServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function isValidRequest($headerOnly = true, $accessToken = null)
*/
public function determineAccessToken($headerOnly = false)
{
if ($this->getRequest()->headers->get('Authorization') !== null) {
if (!empty($this->getRequest()->headers->get('Authorization'))) {
$accessToken = $this->getTokenType()->determineAccessTokenInHeader($this->getRequest());
} elseif ($headerOnly === false && (! $this->getTokenType() instanceof MAC)) {
$accessToken = ($this->getRequest()->server->get('REQUEST_METHOD') === 'GET')
Expand Down

0 comments on commit 084b779

Please sign in to comment.