mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
138524984a | ||
|
8335935854 | ||
|
3bec591393 | ||
|
084b779cc6 | ||
|
491f3f0e95 |
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 4.1.6 (released 2016-09-13)
|
||||
|
||||
* Less restrictive on Authorization header check (Issue #652)
|
||||
|
||||
## 4.1.5 (released 2016-01-04)
|
||||
|
||||
* Enable Symfony 3.0 support (#412)
|
||||
|
@@ -138,7 +138,9 @@ class ResourceServer extends AbstractServer
|
||||
*/
|
||||
public function determineAccessToken($headerOnly = false)
|
||||
{
|
||||
if ($this->getRequest()->headers->get('Authorization') !== null) {
|
||||
$authHeader = $this->getRequest()->headers->get('Authorization');
|
||||
|
||||
if (!empty($authHeader)) {
|
||||
$accessToken = $this->getTokenType()->determineAccessTokenInHeader($this->getRequest());
|
||||
} elseif ($headerOnly === false && (! $this->getTokenType() instanceof MAC)) {
|
||||
$accessToken = ($this->getRequest()->server->get('REQUEST_METHOD') === 'GET')
|
||||
|
Reference in New Issue
Block a user