{"action":"created","issue":{"url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/582","repository_url":"https://api.github.com/repos/thephpleague/oauth2-server","labels_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/582/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/582/comments","events_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/582/events","html_url":"https://github.com/thephpleague/oauth2-server/issues/582","id":155720689,"number":582,"title":"Invalid Request - Cannot decrypt the authorization code","user":{"login":"bobmulder","id":5465074,"avatar_url":"https://avatars.githubusercontent.com/u/5465074?v=3","gravatar_id":"","url":"https://api.github.com/users/bobmulder","html_url":"https://github.com/bobmulder","followers_url":"https://api.github.com/users/bobmulder/followers","following_url":"https://api.github.com/users/bobmulder/following{/other_user}","gists_url":"https://api.github.com/users/bobmulder/gists{/gist_id}","starred_url":"https://api.github.com/users/bobmulder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobmulder/subscriptions","organizations_url":"https://api.github.com/users/bobmulder/orgs","repos_url":"https://api.github.com/users/bobmulder/repos","events_url":"https://api.github.com/users/bobmulder/events{/privacy}","received_events_url":"https://api.github.com/users/bobmulder/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-05-19T12:05:04Z","updated_at":"2016-07-15T09:21:25Z","closed_at":"2016-05-19T12:19:27Z","body":"Hi,\r\n\r\nI tried to implement the `/access_token` endpoint, but the following exception raises:\r\n\r\n```\r\n{\r\n  \"error\": \"invalid_request\",\r\n  \"message\": \"The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.\",\r\n  \"hint\": \"Cannot decrypt the authorization code\"\r\n}\r\n```\r\nWhat I did:\r\n\r\n- Implemented the `/authorize` endpoint. For example: `http://auth.myapi.dev/authorize?response_type=code&client_id=573c65967b34d6938827976&grant_type=authorization_code&state=test_state&scope=scope_1 scope_2&redirect_uri=https://www.getpostman.com/oauth2/callback`\r\n- I put this request in my browser and got back: `https://app.getpostman.com/oauth2/callback?code=TQwFP9FNd%2F8kGD%2FBX5QeFTFGPdnXV0lsNKltFWzpQzgX6%2Bu3Rg%2BT0cEcDBc9HNUTCAm%2BebuR5ccgnUpApXuZvp5jx%2FtN%2FgKfrMRGzp6Pbq5LYAaIbx4o62SVSXpyaFdRYcAdudg0NEq2RXtLUW9PF9dYLERRAeGEJfi0RLEWp%2FFlItqFsaz%2Ba6IUF9qpDrlcylBhFsSX0FcfD%2Bd6oZ08Hyi4Yksx9hgezp5xQondy%2B%2Bd0VPB56Z4AjuIsAUsR1VO7m0Zz%2FBvrJyZ9Vp5Bua9stG%2B%2FusoK2BO3k2C2kF%2B2PZCiwYmNhC6j%2BQtswSbWrik2IDa0XLVVrGLq9UYD4mN8ZTxhMknygB6VANR6lThaTCdByljU0C7eCB54bdX34e7NCINBI56Dxje302WBN7N5mAm6dtrRLKfwjg9tv6c4fErl%2BrSrshoK7VymzZIhlTTkvcz2yCKhPbciIBRT3%2BKlSJRI3HsesSVqrH7%2FMfZOSIoecZ7oHfRvzj7xZRXbYoc&state=test_state`\r\n- I took the `code` query from that url, and put it in the `code` key of my body of the `/access_token` request...\r\n\r\nCan you confirm this is right?\r\n\r\nI've recreated my keys multiple times, but no result..."},"comment":{"url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/comments/232903626","html_url":"https://github.com/thephpleague/oauth2-server/issues/582#issuecomment-232903626","issue_url":"https://api.github.com/repos/thephpleague/oauth2-server/issues/582","id":232903626,"user":{"login":"ChrisTitos","id":2377451,"avatar_url":"https://avatars.githubusercontent.com/u/2377451?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisTitos","html_url":"https://github.com/ChrisTitos","followers_url":"https://api.github.com/users/ChrisTitos/followers","following_url":"https://api.github.com/users/ChrisTitos/following{/other_user}","gists_url":"https://api.github.com/users/ChrisTitos/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisTitos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisTitos/subscriptions","organizations_url":"https://api.github.com/users/ChrisTitos/orgs","repos_url":"https://api.github.com/users/ChrisTitos/repos","events_url":"https://api.github.com/users/ChrisTitos/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisTitos/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T09:21:25Z","updated_at":"2016-07-15T09:21:25Z","body":"Ok, I found out what was the problem. I turns out I had mbstring function overloading enabled:\r\n\r\nhttp://php.net/manual/en/mbstring.overload.php\r\n\r\nTurning it off solved my problem. \r\n\r\n(now to find out why it was enabled in the first place :/ )"}}
{"actor":{"display_login":"ChrisTitos"}}