Oauth.php is requesting a request token when calling to fetch_access_token, resulting a "Invalid token" response.

  /**
   * process an access_token request
   * returns the access token on success
   */
  public function fetch_access_token(&$request) {
    $this->get_version($request);

    $consumer = $this->get_consumer($request);

    // requires authorized request token
    $token = $this->get_token($request, $consumer, "request");

    $this->check_signature($request, $consumer, $token);

    // Rev A change
    $verifier = $request->get_parameter('oauth_verifier');
    $new_token = $this->data_store->new_access_token($token, $consumer, $verifier);

    return $new_token;
  }

Comments

miqmago’s picture

Priority: Major » Normal
Status: Needs review » Fixed

Sorry, I was working with a patch that was solving problems on last version, I updated to newest version, applied a patch from last version but it has been solved by another side, incompatible with the patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

access->request (as it is in code)