{"action":"created","issue":{"url":"https://api.github.com/repos/bos/wreq/issues/47","labels_url":"https://api.github.com/repos/bos/wreq/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/bos/wreq/issues/47/comments","events_url":"https://api.github.com/repos/bos/wreq/issues/47/events","html_url":"https://github.com/bos/wreq/pull/47","id":52967015,"number":47,"title":"Add two more ways of authentication for the OAuth 1.0a workflow","user":{"login":"jsantos17","id":677310,"avatar_url":"https://avatars.githubusercontent.com/u/677310?v=3","gravatar_id":"","url":"https://api.github.com/users/jsantos17","html_url":"https://github.com/jsantos17","followers_url":"https://api.github.com/users/jsantos17/followers","following_url":"https://api.github.com/users/jsantos17/following{/other_user}","gists_url":"https://api.github.com/users/jsantos17/gists{/gist_id}","starred_url":"https://api.github.com/users/jsantos17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsantos17/subscriptions","organizations_url":"https://api.github.com/users/jsantos17/orgs","repos_url":"https://api.github.com/users/jsantos17/repos","events_url":"https://api.github.com/users/jsantos17/events{/privacy}","received_events_url":"https://api.github.com/users/jsantos17/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-27T22:03:00Z","updated_at":"2015-12-22T21:03:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bos/wreq/pulls/47","html_url":"https://github.com/bos/wreq/pull/47","diff_url":"https://github.com/bos/wreq/pull/47.diff","patch_url":"https://github.com/bos/wreq/pull/47.patch"},"body":"This pull request is a superset of #45. I'm not sure if the changes here make sense to add to Wreq. This adds three more authentication options:\r\n\r\n1. The first one to make requests once the user has API keys (consumer token, consumer secret) and access tokens for a resource-owner.\r\n2. The second one to ask a service provider to generate temporary tokens so the client can request permission from the resource-owner using the redirection workflow common in OAuth 1.0a.\r\n3. A third one to exchange temporary tokens and an oauth_verifier token for access tokens in order to finish authentication.\r\n\r\nThis effectively makes Wreq capable of conducting the whole three-legged authentication required by a service provider such as Twitter.\r\n\r\nOnly OAuth 1.0a is supported, mainly because I'm not sure how to support OAuth 1.0 without adding three more constructors to the Auth type."},"comment":{"url":"https://api.github.com/repos/bos/wreq/issues/comments/166729014","html_url":"https://github.com/bos/wreq/pull/47#issuecomment-166729014","issue_url":"https://api.github.com/repos/bos/wreq/issues/47","id":166729014,"user":{"login":"bos","id":23374,"avatar_url":"https://avatars.githubusercontent.com/u/23374?v=3","gravatar_id":"","url":"https://api.github.com/users/bos","html_url":"https://github.com/bos","followers_url":"https://api.github.com/users/bos/followers","following_url":"https://api.github.com/users/bos/following{/other_user}","gists_url":"https://api.github.com/users/bos/gists{/gist_id}","starred_url":"https://api.github.com/users/bos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bos/subscriptions","organizations_url":"https://api.github.com/users/bos/orgs","repos_url":"https://api.github.com/users/bos/repos","events_url":"https://api.github.com/users/bos/events{/privacy}","received_events_url":"https://api.github.com/users/bos/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T21:03:54Z","updated_at":"2015-12-22T21:03:54Z","body":"I applied #45, which has many conflicts with this PR. How would you like to proceed?"}}