Skip to content

Expired (but brand new) Access tokens #53

Open
@ghost

Description

I guess I more leaving this here in case anyone else runs into this problem.

I can't lay my finger on exactly what is causing the problem I'm having, but here is what happens.

From the command line I have the whole thing working just fine, I re-implemented everything as a web call from PHP and the access tokens are expired as soon as I make a call for them.

I'm not sure if I missed part of the set up, or something else, but my solution was to

  1. Edit the database and set expires in the oauth.oauth_access_tokens table to a varchar (20) (anything over 10 should work).
  2. Edit Pdo.php and comment out the "$expires = date('Y-m-d H:i:s', $expires);" lines, and comment out the line "$token['expires'] = strtotime($token['expires']);".

This removes all the unnecessary (from what I saw, but maybe I missed something) time stamp to time string conversions, and solves my problem.

Hope this helps anyone else that had this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions