Skip to content

Commit

Permalink
Fix - Changed token search for argument instead attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dyorg committed Sep 15, 2016
1 parent 24ed6a7 commit 8d02cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TokenAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TokenAuthentication
'regex' => '/Bearer\s+(.*)$/i',
'parameter' => 'authorization',
'cookie' => 'authorization',
'attribute' => null
'argument' => 'authorization'
];

private $response = [];
Expand Down Expand Up @@ -136,7 +136,7 @@ public function findToken(Request $request)
'regex' => $this->options['regex'],
'parameter' => $this->options['parameter'],
'cookie' => $this->options['cookie'],
'attribute' => $this->options['attribute']
'argument' => $this->options['argument']
]);

$token = $tokenSearch($request);
Expand Down

0 comments on commit 8d02cc2

Please sign in to comment.