{"action":"created","issue":{"url":"https://api.github.com/repos/mpdavis/python-jose/issues/16","repository_url":"https://api.github.com/repos/mpdavis/python-jose","labels_url":"https://api.github.com/repos/mpdavis/python-jose/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/mpdavis/python-jose/issues/16/comments","events_url":"https://api.github.com/repos/mpdavis/python-jose/issues/16/events","html_url":"https://github.com/mpdavis/python-jose/pull/16","id":138698851,"number":16,"title":"HMACKey.process_jwk","user":{"login":"crgk","id":1093952,"avatar_url":"https://avatars.githubusercontent.com/u/1093952?v=3","gravatar_id":"","url":"https://api.github.com/users/crgk","html_url":"https://github.com/crgk","followers_url":"https://api.github.com/users/crgk/followers","following_url":"https://api.github.com/users/crgk/following{/other_user}","gists_url":"https://api.github.com/users/crgk/gists{/gist_id}","starred_url":"https://api.github.com/users/crgk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crgk/subscriptions","organizations_url":"https://api.github.com/users/crgk/orgs","repos_url":"https://api.github.com/users/crgk/repos","events_url":"https://api.github.com/users/crgk/events{/privacy}","received_events_url":"https://api.github.com/users/crgk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-05T17:09:46Z","updated_at":"2016-03-06T15:56:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mpdavis/python-jose/pulls/16","html_url":"https://github.com/mpdavis/python-jose/pull/16","diff_url":"https://github.com/mpdavis/python-jose/pull/16.diff","patch_url":"https://github.com/mpdavis/python-jose/pull/16.patch"},"body":"Decided to take a crack at this, but I'm not sure if it's what you were looking for. I tried to follow the pattern set with `RSAKey.process_jwk`, but it seems strange to return the hmac instance. Feels to me like these should be classmethods to be used as factories for creating the `Key` objects.\r\n\r\nAlso started a test based on [the cookbook example](https://tools.ietf.org/html/draft-ietf-jose-cookbook-08#section-4.4), but did not commit it when it failed and became clear that I didn't know what I was doing."},"comment":{"url":"https://api.github.com/repos/mpdavis/python-jose/issues/comments/192919830","html_url":"https://github.com/mpdavis/python-jose/pull/16#issuecomment-192919830","issue_url":"https://api.github.com/repos/mpdavis/python-jose/issues/16","id":192919830,"user":{"login":"crgk","id":1093952,"avatar_url":"https://avatars.githubusercontent.com/u/1093952?v=3","gravatar_id":"","url":"https://api.github.com/users/crgk","html_url":"https://github.com/crgk","followers_url":"https://api.github.com/users/crgk/followers","following_url":"https://api.github.com/users/crgk/following{/other_user}","gists_url":"https://api.github.com/users/crgk/gists{/gist_id}","starred_url":"https://api.github.com/users/crgk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crgk/subscriptions","organizations_url":"https://api.github.com/users/crgk/orgs","repos_url":"https://api.github.com/users/crgk/repos","events_url":"https://api.github.com/users/crgk/events{/privacy}","received_events_url":"https://api.github.com/users/crgk/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T15:56:39Z","updated_at":"2016-03-06T15:56:39Z","body":"I'll try to turn this into a more comprehensive refractor, unless you want to handle changes at that scale yourself."}}