You are here

function MockOAuthDataStore::new_access_token in OAuth 1.0 6

File

./OAuth_TestServer.php, line 98

Class

MockOAuthDataStore
A mock store for testing

Code

function new_access_token($token, $consumer) {

  /*{{{*/
  if ($consumer->key == $this->consumer->key && $token->key == $this->request_token->key) {
    return $this->access_token;
  }
  return NULL;
}