You are here

public function OAuthStoreSession::getServerTokenSecrets in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lib/oauth-php/library/store/OAuthStoreSession.php \OAuthStoreSession::getServerTokenSecrets()
  2. 7.2 lib/oauth-php/library/store/OAuthStoreSession.php \OAuthStoreSession::getServerTokenSecrets()
  3. 7.3 lib/oauth-php/library/store/OAuthStoreSession.php \OAuthStoreSession::getServerTokenSecrets()
  4. 7.5 lib/oauth-php/library/store/OAuthStoreSession.php \OAuthStoreSession::getServerTokenSecrets()
  5. 7.6 lib/oauth-php/library/store/OAuthStoreSession.php \OAuthStoreSession::getServerTokenSecrets()

Overrides OAuthStoreAbstract::getServerTokenSecrets

File

lib/oauth-php/library/store/OAuthStoreSession.php, line 72

Class

OAuthStoreSession

Code

public function getServerTokenSecrets($consumer_key, $token, $token_type, $user_id, $name = '') {
  if ($consumer_key != $this->session['consumer_key']) {
    return array();
  }
  return array(
    'consumer_key' => $consumer_key,
    'consumer_secret' => $this->session['consumer_secret'],
    'token' => $token,
    'token_secret' => $this->session['token_secret'],
    'token_name' => $name,
    'signature_methods' => $this->session['signature_methods'],
    'server_uri' => $this->session['server_uri'],
    'request_token_uri' => $this->session['request_token_uri'],
    'authorize_uri' => $this->session['authorize_uri'],
    'access_token_uri' => $this->session['access_token_uri'],
    'token_ttl' => 3600,
  );
}