mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Remove dead code
This commit is contained in:
@@ -67,12 +67,6 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
*/
|
||||
protected $session_id;
|
||||
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $usr_id_requested;
|
||||
|
||||
/**
|
||||
* access token of current request
|
||||
* @var string
|
||||
@@ -151,15 +145,6 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
return $this->session_id;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_usr_id()
|
||||
{
|
||||
return $this->usr_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements OAuth2::checkClientCredentials().
|
||||
*
|
||||
@@ -572,7 +557,7 @@ 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)
|
||||
public function verifyAccessToken($scope = null, $exit_not_present = true, $exit_invalid = true, $exit_expired = true, $exit_scope = true, $realm = null)
|
||||
{
|
||||
$token_param = $this->getAccessTokenParams();
|
||||
|
||||
@@ -605,10 +590,9 @@ class API_OAuth2_Adapter extends OAuth2
|
||||
}
|
||||
//save token's linked ses_id
|
||||
$this->session_id = $token['session_id'];
|
||||
$this->usr_id = $token['usr_id'];
|
||||
$this->token = $token['oauth_token'];
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
public function finishClientAuthorization($is_authorized, $params = [])
|
||||
|
Reference in New Issue
Block a user