{"action":"created","issue":{"url":"https://api.github.com/repos/nsarno/knock/issues/28","labels_url":"https://api.github.com/repos/nsarno/knock/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/nsarno/knock/issues/28/comments","events_url":"https://api.github.com/repos/nsarno/knock/issues/28/events","html_url":"https://github.com/nsarno/knock/pull/28","id":124008819,"number":28,"title":"Allow use of different signing algorithms","user":{"login":"nsarno","id":1244992,"avatar_url":"https://avatars.githubusercontent.com/u/1244992?v=3","gravatar_id":"","url":"https://api.github.com/users/nsarno","html_url":"https://github.com/nsarno","followers_url":"https://api.github.com/users/nsarno/followers","following_url":"https://api.github.com/users/nsarno/following{/other_user}","gists_url":"https://api.github.com/users/nsarno/gists{/gist_id}","starred_url":"https://api.github.com/users/nsarno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsarno/subscriptions","organizations_url":"https://api.github.com/users/nsarno/orgs","repos_url":"https://api.github.com/users/nsarno/repos","events_url":"https://api.github.com/users/nsarno/events{/privacy}","received_events_url":"https://api.github.com/users/nsarno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-28T02:31:44Z","updated_at":"2016-01-17T23:24:33Z","closed_at":"2015-12-28T06:59:00Z","pull_request":{"url":"https://api.github.com/repos/nsarno/knock/pulls/28","html_url":"https://github.com/nsarno/knock/pull/28","diff_url":"https://github.com/nsarno/knock/pull/28.diff","patch_url":"https://github.com/nsarno/knock/pull/28.patch"},"body":"### Context\r\n\r\nWe want to be able to specify a different encoding / decoding algorithm for the tokens. See [jwt/ruby-jwt](https://github.com/jwt/ruby-jwt) for the list of supported algorithms.\r\n\r\n### Implementation\r\n\r\n- [x] Update CHANGELOG.md\r\n- [x] Update README.md\r\n- [x] Add `token_signature_algorithm` to configuration to specify algorithm or use [jwt/ruby-jwt](https://github.com/jwt/ruby-jwt)'s default.\r\n- [x] Add `token_public_key` configuration variable to specify public key if necessary\r\n- [x] Use public key for decoding if present\r\n- [x] Explicitly enforce use of correct algorithm when decoding token\r\n\r\n### Notes\r\n\r\nThis closes #21 "},"comment":{"url":"https://api.github.com/repos/nsarno/knock/issues/comments/172395040","html_url":"https://github.com/nsarno/knock/pull/28#issuecomment-172395040","issue_url":"https://api.github.com/repos/nsarno/knock/issues/28","id":172395040,"user":{"login":"stantoncbradley","id":5314103,"avatar_url":"https://avatars.githubusercontent.com/u/5314103?v=3","gravatar_id":"","url":"https://api.github.com/users/stantoncbradley","html_url":"https://github.com/stantoncbradley","followers_url":"https://api.github.com/users/stantoncbradley/followers","following_url":"https://api.github.com/users/stantoncbradley/following{/other_user}","gists_url":"https://api.github.com/users/stantoncbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/stantoncbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stantoncbradley/subscriptions","organizations_url":"https://api.github.com/users/stantoncbradley/orgs","repos_url":"https://api.github.com/users/stantoncbradley/repos","events_url":"https://api.github.com/users/stantoncbradley/events{/privacy}","received_events_url":"https://api.github.com/users/stantoncbradley/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T23:24:33Z","updated_at":"2016-01-17T23:24:33Z","body":"thanks for adding this--works like a charm!"}}