{"action":"created","issue":{"url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/738","repository_url":"https://api.github.com/repos/bshaffer/oauth2-server-php","labels_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/738/labels{/name}","comments_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/738/comments","events_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/738/events","html_url":"https://github.com/bshaffer/oauth2-server-php/issues/738","id":159893773,"number":738,"title":"JWT can't use PDO for storage","user":{"login":"al-ramadhan","id":8788860,"avatar_url":"https://avatars.githubusercontent.com/u/8788860?v=3","gravatar_id":"","url":"https://api.github.com/users/al-ramadhan","html_url":"https://github.com/al-ramadhan","followers_url":"https://api.github.com/users/al-ramadhan/followers","following_url":"https://api.github.com/users/al-ramadhan/following{/other_user}","gists_url":"https://api.github.com/users/al-ramadhan/gists{/gist_id}","starred_url":"https://api.github.com/users/al-ramadhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/al-ramadhan/subscriptions","organizations_url":"https://api.github.com/users/al-ramadhan/orgs","repos_url":"https://api.github.com/users/al-ramadhan/repos","events_url":"https://api.github.com/users/al-ramadhan/events{/privacy}","received_events_url":"https://api.github.com/users/al-ramadhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-13T08:07:31Z","updated_at":"2016-12-23T00:12:49Z","closed_at":null,"body":"We have an issue after working with jwt and set pdo as storage. There is an error message **\"openssl_sign(): supplied key param cannot be coerced into a private key\"**. That error refer to Encryption\\Jwt.php line 124 with code `if (!openssl_sign($input, $signature, $key, $algo))`.\n\nWe also tried to implement firebase/php-jwt library but the same problem raised again. The error refer to Authentication\\JWT.php line 170 `$success = openssl_sign($msg, $signature, $key, $algorithm);`.\n\nBut when we applied memory storage, all things working fine. Our objectives are to store access_token and refresh_token into database by using jwt as a returns, not plain text token.\n\nWe need helps people...\n"},"comment":{"url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/comments/268918691","html_url":"https://github.com/bshaffer/oauth2-server-php/issues/738#issuecomment-268918691","issue_url":"https://api.github.com/repos/bshaffer/oauth2-server-php/issues/738","id":268918691,"user":{"login":"byteworksng","id":6043931,"avatar_url":"https://avatars.githubusercontent.com/u/6043931?v=3","gravatar_id":"","url":"https://api.github.com/users/byteworksng","html_url":"https://github.com/byteworksng","followers_url":"https://api.github.com/users/byteworksng/followers","following_url":"https://api.github.com/users/byteworksng/following{/other_user}","gists_url":"https://api.github.com/users/byteworksng/gists{/gist_id}","starred_url":"https://api.github.com/users/byteworksng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byteworksng/subscriptions","organizations_url":"https://api.github.com/users/byteworksng/orgs","repos_url":"https://api.github.com/users/byteworksng/repos","events_url":"https://api.github.com/users/byteworksng/events{/privacy}","received_events_url":"https://api.github.com/users/byteworksng/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T00:12:49Z","updated_at":"2016-12-23T00:12:49Z","body":"Here is what I did when I ran into the same problem.\r\n1. Confirm your public and primary keys are correctly created by trying to sign and verify random inputs using one of the valid encryption algorithms.\r\n2. Change the size of the primary key (\"access_token\" column) from \"40\" to \"255\" on the table \"oauth_access_tokens\".\r\n\r\nThats all."}}
{"actor":{"display_login":"byteworksng"}}