taken account config to retrieve token in header or in url

This commit is contained in:
aina-esokia
2019-01-15 15:54:37 +04:00
parent efa402391d
commit 26a25532f5

View File

@@ -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) {