My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 5: Wrong variable name in get_access_token() in pdo_oatuh.php
2 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Dec 2010


 
Reported by eriksso...@gmail.com, Sep 16, 2010
It would seem that this function needs to be changed from:

protected function get_access_token($token_id) {
        try {
            $sql = "select client_id, expires, scope from tokens where id = :client_id";
            $stmt = $this->db->prepare($sql);
            $stmt->bindParam(":client_id", $client_id, PDO::PARAM_STR);
            $stmt->execute();

            $result = $stmt->fetch(PDO::FETCH_ASSOC);

            return $result !== false ? $result : null;
        } catch (PDOException $e) {
            $this->handle_exception($e);
        }
    }

to:

    protected function get_access_token($token_id) {
        try {
            $sql = "select client_id, expires, scope from tokens where id = :token_id";
            $stmt = $this->db->prepare($sql);
            $stmt->bindParam(":token_id", $token_id, PDO::PARAM_STR);
            $stmt->execute();

            $result = $stmt->fetch(PDO::FETCH_ASSOC);

            return $result !== false ? $result : null;
        } catch (PDOException $e) {
            $this->handle_exception($e);
        }
    }

Or have I totally misunderstood what it does?
Dec 13, 2010
Project Member #1 hswon...@pantarei-design.com
Refer to https://code.google.com/p/oauth2-php/source/detail?r=d4e371c900e8fa8f0d59c798ca47ecca5f579db6, this is now get fixed within latest dev.
Status: Fixed

Powered by Google Project Hosting