mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 10:34:34 +00:00
taken account config to retrieve token in header or in url
This commit is contained in:
@@ -537,7 +537,9 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
|
||||
public function verifyAccessToken($scope = null, $exit_not_present = true, $exit_invalid = true, $exit_expired = true, $exit_scope = true, $realm = null)
|
||||
{
|
||||
$token_param = $this->getAccessTokenParams();
|
||||
$useTokenHeader = $this->app['conf']->get(['main', 'api_token_header']);
|
||||
|
||||
$token_param = $this->getAccessTokenParams($useTokenHeader);
|
||||
|
||||
// Access token was not provided
|
||||
if ($token_param === false) {
|
||||
|
Reference in New Issue
Block a user