{"action":"created","issue":{"url":"https://api.github.com/repos/ForgeRock/openam-authentication/issues/9","repository_url":"https://api.github.com/repos/ForgeRock/openam-authentication","labels_url":"https://api.github.com/repos/ForgeRock/openam-authentication/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ForgeRock/openam-authentication/issues/9/comments","events_url":"https://api.github.com/repos/ForgeRock/openam-authentication/issues/9/events","html_url":"https://github.com/ForgeRock/openam-authentication/pull/9","id":268800699,"number":9,"title":"Fix incompatibilities with AM 5.x","user":{"login":"vscheuber","id":28791378,"avatar_url":"https://avatars2.githubusercontent.com/u/28791378?v=4","gravatar_id":"","url":"https://api.github.com/users/vscheuber","html_url":"https://github.com/vscheuber","followers_url":"https://api.github.com/users/vscheuber/followers","following_url":"https://api.github.com/users/vscheuber/following{/other_user}","gists_url":"https://api.github.com/users/vscheuber/gists{/gist_id}","starred_url":"https://api.github.com/users/vscheuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vscheuber/subscriptions","organizations_url":"https://api.github.com/users/vscheuber/orgs","repos_url":"https://api.github.com/users/vscheuber/repos","events_url":"https://api.github.com/users/vscheuber/events{/privacy}","received_events_url":"https://api.github.com/users/vscheuber/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-10-26T15:12:55Z","updated_at":"2017-11-01T10:08:43Z","closed_at":"2017-11-01T09:04:54Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ForgeRock/openam-authentication/pulls/9","html_url":"https://github.com/ForgeRock/openam-authentication/pull/9","diff_url":"https://github.com/ForgeRock/openam-authentication/pull/9.diff","patch_url":"https://github.com/ForgeRock/openam-authentication/pull/9.patch"},"body":"Hi,\r\n\r\nI really made only 2 real code changes and bumped the version to 1.5. Not sure why the compare view shows 500+ changes when I only changed 3 lines of code and one comment. Here are the critical things I did:\r\n\r\n**function openam_sso()**\r\nTrimmed cookie value on line 123 to make function _openam_sessionsdata_ work properly. Older versions of OpenAM must have not set the cookie with double quotes:\r\n\r\n_Old:_\r\n```\r\n$tokenId = $_COOKIE[ OPENAM_COOKIE_NAME ];\r\n```\r\n_New:_\r\n```\r\n$tokenId = trim($_COOKIE[ OPENAM_COOKIE_NAME ],  '\"');\r\n```\r\n\r\n**function openam_sessionsdata()**\r\nForced API version by setting header  \"Accept-API-Version: resource=2.0, protocol=1.0\" to make the REST call work against AM 5.x. A better option might be to add an AM version selector (or use the API version selector that already exists) and call the new and improved API instead of calling an old version on a new AM instance. On line 195:\r\n\r\n_Old:_\r\n```\r\n'headers'     => array('Content-Type' => 'application/json'),\r\n```\r\n_New:_\r\n```\r\n'headers'     => array('Content-Type' => 'application/json', 'Accept-API-Version' => 'resource=1.0, protocol=1.0'),\r\n```\r\n\r\nCheers.\r\nVolker"},"comment":{"url":"https://api.github.com/repos/ForgeRock/openam-authentication/issues/comments/341060987","html_url":"https://github.com/ForgeRock/openam-authentication/pull/9#issuecomment-341060987","issue_url":"https://api.github.com/repos/ForgeRock/openam-authentication/issues/9","id":341060987,"user":{"login":"forgerock1","id":8524128,"avatar_url":"https://avatars0.githubusercontent.com/u/8524128?v=4","gravatar_id":"","url":"https://api.github.com/users/forgerock1","html_url":"https://github.com/forgerock1","followers_url":"https://api.github.com/users/forgerock1/followers","following_url":"https://api.github.com/users/forgerock1/following{/other_user}","gists_url":"https://api.github.com/users/forgerock1/gists{/gist_id}","starred_url":"https://api.github.com/users/forgerock1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forgerock1/subscriptions","organizations_url":"https://api.github.com/users/forgerock1/orgs","repos_url":"https://api.github.com/users/forgerock1/repos","events_url":"https://api.github.com/users/forgerock1/events{/privacy}","received_events_url":"https://api.github.com/users/forgerock1/received_events","type":"User","site_admin":false},"created_at":"2017-11-01T10:08:43Z","updated_at":"2017-11-01T10:08:43Z","author_association":"CONTRIBUTOR","body":"Forgot to ask Volker, what version number of Wordpress did you use?  I could update the \"Tested up to\" if you used a more recent version.\r\n  Cheers"}}
{"actor":{"display_login":"forgerock1"}}