{"action":"created","comment":{"url":"https://api.github.com/repos/omab/python-social-auth/pulls/comments/26442628","id":26442628,"diff_hunk":"@@ -0,0 +1,84 @@\n+\"\"\"\n+Vend  OAuth2 backend:\n+\n+\"\"\"\n+from requests import HTTPError\n+from social.backends.oauth import BaseOAuth2\n+from social.exceptions import AuthCanceled, AuthUnknownError\n+\n+\n+class VendOAuth2(BaseOAuth2):\n+    name = 'vend'\n+    AUTHORIZATION_URL = 'https://secure.vendhq.com/connect'\n+    ACCESS_TOKEN_URL = ''\n+    SCOPE_SEPARATOR = ' '\n+    REDIRECT_STATE = False\n+    REDIRECT_URI_PARAMETER_NAME = 'redirect_uri'\n+    EXTRA_DATA = [\n+                     ('refresh_token', 'refresh_token'),\n+                     ('domain_prefix','domain_prefix')\n+    ]\n+    def get_user_id(self, details, response):\n+        return None\n+    def get_user_details(self, response):\n+        return {}\n+\n+    def user_data(self, access_token, *args, **kwargs):\n+\n+        return None\n+\n+\n+    def access_token_url(self):\n+        return self.ACCESS_TOKEN_URL","path":"social/backends/vend.py","position":32,"original_position":32,"commit_id":"f9597b9d0796dc555517fcd4d6cf67d9a7f76e9c","original_commit_id":"f9597b9d0796dc555517fcd4d6cf67d9a7f76e9c","user":{"login":"omab","id":91022,"avatar_url":"https://avatars.githubusercontent.com/u/91022?v=3","gravatar_id":"","url":"https://api.github.com/users/omab","html_url":"https://github.com/omab","followers_url":"https://api.github.com/users/omab/followers","following_url":"https://api.github.com/users/omab/following{/other_user}","gists_url":"https://api.github.com/users/omab/gists{/gist_id}","starred_url":"https://api.github.com/users/omab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omab/subscriptions","organizations_url":"https://api.github.com/users/omab/orgs","repos_url":"https://api.github.com/users/omab/repos","events_url":"https://api.github.com/users/omab/events{/privacy}","received_events_url":"https://api.github.com/users/omab/received_events","type":"User","site_admin":false},"body":"This is the default behavior, why override? I see that it requires a ``domain_prefix`` a few lines below, if that's the case, then that logic should be put here.","created_at":"2015-03-14T22:54:28Z","updated_at":"2015-03-14T22:54:28Z","html_url":"https://github.com/omab/python-social-auth/pull/549#discussion_r26442628","pull_request_url":"https://api.github.com/repos/omab/python-social-auth/pulls/549","_links":{"self":{"href":"https://api.github.com/repos/omab/python-social-auth/pulls/comments/26442628"},"html":{"href":"https://github.com/omab/python-social-auth/pull/549#discussion_r26442628"},"pull_request":{"href":"https://api.github.com/repos/omab/python-social-auth/pulls/549"}}},"pull_request":{"url":"https://api.github.com/repos/omab/python-social-auth/pulls/549","id":31075597,"html_url":"https://github.com/omab/python-social-auth/pull/549","diff_url":"https://github.com/omab/python-social-auth/pull/549.diff","patch_url":"https://github.com/omab/python-social-auth/pull/549.patch","issue_url":"https://api.github.com/repos/omab/python-social-auth/issues/549","number":549,"state":"open","locked":false,"title":"Added support for Vend","user":{"login":"matthowland","id":393981,"avatar_url":"https://avatars.githubusercontent.com/u/393981?v=3","gravatar_id":"","url":"https://api.github.com/users/matthowland","html_url":"https://github.com/matthowland","followers_url":"https://api.github.com/users/matthowland/followers","following_url":"https://api.github.com/users/matthowland/following{/other_user}","gists_url":"https://api.github.com/users/matthowland/gists{/gist_id}","starred_url":"https://api.github.com/users/matthowland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthowland/subscriptions","organizations_url":"https://api.github.com/users/matthowland/orgs","repos_url":"https://api.github.com/users/matthowland/repos","events_url":"https://api.github.com/users/matthowland/events{/privacy}","received_events_url":"https://api.github.com/users/matthowland/received_events","type":"User","site_admin":false},"body":"New backend for http://www.vendhq.com/ \r\n\r\nAt this point they're user profile is experimental so getting user parameters isn't included, simply getting the access token for subsequent api calls.\r\n","created_at":"2015-03-12T20:41:52Z","updated_at":"2015-03-14T22:54:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"271e2ebcdb58282c203cd2bcfef61bb469e30558","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omab/python-social-auth/pulls/549/commits","review_comments_url":"https://api.github.com/repos/omab/python-social-auth/pulls/549/comments","review_comment_url":"https://api.github.com/repos/omab/python-social-auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omab/python-social-auth/issues/549/comments","statuses_url":"https://api.github.com/repos/omab/python-social-auth/statuses/f9597b9d0796dc555517fcd4d6cf67d9a7f76e9c","head":{"label":"matthowland:master","ref":"master","sha":"f9597b9d0796dc555517fcd4d6cf67d9a7f76e9c","user":{"login":"matthowland","id":393981,"avatar_url":"https://avatars.githubusercontent.com/u/393981?v=3","gravatar_id":"","url":"https://api.github.com/users/matthowland","html_url":"https://github.com/matthowland","followers_url":"https://api.github.com/users/matthowland/followers","following_url":"https://api.github.com/users/matthowland/following{/other_user}","gists_url":"https://api.github.com/users/matthowland/gists{/gist_id}","starred_url":"https://api.github.com/users/matthowland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthowland/subscriptions","organizations_url":"https://api.github.com/users/matthowland/orgs","repos_url":"https://api.github.com/users/matthowland/repos","events_url":"https://api.github.com/users/matthowland/events{/privacy}","received_events_url":"https://api.github.com/users/matthowland/received_events","type":"User","site_admin":false},"repo":{"id":32100372,"name":"python-social-auth","full_name":"matthowland/python-social-auth","owner":{"login":"matthowland","id":393981,"avatar_url":"https://avatars.githubusercontent.com/u/393981?v=3","gravatar_id":"","url":"https://api.github.com/users/matthowland","html_url":"https://github.com/matthowland","followers_url":"https://api.github.com/users/matthowland/followers","following_url":"https://api.github.com/users/matthowland/following{/other_user}","gists_url":"https://api.github.com/users/matthowland/gists{/gist_id}","starred_url":"https://api.github.com/users/matthowland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthowland/subscriptions","organizations_url":"https://api.github.com/users/matthowland/orgs","repos_url":"https://api.github.com/users/matthowland/repos","events_url":"https://api.github.com/users/matthowland/events{/privacy}","received_events_url":"https://api.github.com/users/matthowland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthowland/python-social-auth","description":"Social auth made simple","fork":true,"url":"https://api.github.com/repos/matthowland/python-social-auth","forks_url":"https://api.github.com/repos/matthowland/python-social-auth/forks","keys_url":"https://api.github.com/repos/matthowland/python-social-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthowland/python-social-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthowland/python-social-auth/teams","hooks_url":"https://api.github.com/repos/matthowland/python-social-auth/hooks","issue_events_url":"https://api.github.com/repos/matthowland/python-social-auth/issues/events{/number}","events_url":"https://api.github.com/repos/matthowland/python-social-auth/events","assignees_url":"https://api.github.com/repos/matthowland/python-social-auth/assignees{/user}","branches_url":"https://api.github.com/repos/matthowland/python-social-auth/branches{/branch}","tags_url":"https://api.github.com/repos/matthowland/python-social-auth/tags","blobs_url":"https://api.github.com/repos/matthowland/python-social-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthowland/python-social-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthowland/python-social-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthowland/python-social-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthowland/python-social-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/matthowland/python-social-auth/languages","stargazers_url":"https://api.github.com/repos/matthowland/python-social-auth/stargazers","contributors_url":"https://api.github.com/repos/matthowland/python-social-auth/contributors","subscribers_url":"https://api.github.com/repos/matthowland/python-social-auth/subscribers","subscription_url":"https://api.github.com/repos/matthowland/python-social-auth/subscription","commits_url":"https://api.github.com/repos/matthowland/python-social-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthowland/python-social-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthowland/python-social-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthowland/python-social-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthowland/python-social-auth/contents/{+path}","compare_url":"https://api.github.com/repos/matthowland/python-social-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthowland/python-social-auth/merges","archive_url":"https://api.github.com/repos/matthowland/python-social-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthowland/python-social-auth/downloads","issues_url":"https://api.github.com/repos/matthowland/python-social-auth/issues{/number}","pulls_url":"https://api.github.com/repos/matthowland/python-social-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/matthowland/python-social-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/matthowland/python-social-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthowland/python-social-auth/labels{/name}","releases_url":"https://api.github.com/repos/matthowland/python-social-auth/releases{/id}","created_at":"2015-03-12T20:23:32Z","updated_at":"2015-03-12T20:38:30Z","pushed_at":"2015-03-12T20:38:30Z","git_url":"git://github.com/matthowland/python-social-auth.git","ssh_url":"git@github.com:matthowland/python-social-auth.git","clone_url":"https://github.com/matthowland/python-social-auth.git","svn_url":"https://github.com/matthowland/python-social-auth","homepage":"http://psa.matiasaguirre.net","size":2429,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"omab:master","ref":"master","sha":"d803dd574a5a25156c4561d449e368c7dca5f222","user":{"login":"omab","id":91022,"avatar_url":"https://avatars.githubusercontent.com/u/91022?v=3","gravatar_id":"","url":"https://api.github.com/users/omab","html_url":"https://github.com/omab","followers_url":"https://api.github.com/users/omab/followers","following_url":"https://api.github.com/users/omab/following{/other_user}","gists_url":"https://api.github.com/users/omab/gists{/gist_id}","starred_url":"https://api.github.com/users/omab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omab/subscriptions","organizations_url":"https://api.github.com/users/omab/orgs","repos_url":"https://api.github.com/users/omab/repos","events_url":"https://api.github.com/users/omab/events{/privacy}","received_events_url":"https://api.github.com/users/omab/received_events","type":"User","site_admin":false},"repo":{"id":7133153,"name":"python-social-auth","full_name":"omab/python-social-auth","owner":{"login":"omab","id":91022,"avatar_url":"https://avatars.githubusercontent.com/u/91022?v=3","gravatar_id":"","url":"https://api.github.com/users/omab","html_url":"https://github.com/omab","followers_url":"https://api.github.com/users/omab/followers","following_url":"https://api.github.com/users/omab/following{/other_user}","gists_url":"https://api.github.com/users/omab/gists{/gist_id}","starred_url":"https://api.github.com/users/omab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omab/subscriptions","organizations_url":"https://api.github.com/users/omab/orgs","repos_url":"https://api.github.com/users/omab/repos","events_url":"https://api.github.com/users/omab/events{/privacy}","received_events_url":"https://api.github.com/users/omab/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/omab/python-social-auth","description":"Social auth made simple","fork":false,"url":"https://api.github.com/repos/omab/python-social-auth","forks_url":"https://api.github.com/repos/omab/python-social-auth/forks","keys_url":"https://api.github.com/repos/omab/python-social-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omab/python-social-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omab/python-social-auth/teams","hooks_url":"https://api.github.com/repos/omab/python-social-auth/hooks","issue_events_url":"https://api.github.com/repos/omab/python-social-auth/issues/events{/number}","events_url":"https://api.github.com/repos/omab/python-social-auth/events","assignees_url":"https://api.github.com/repos/omab/python-social-auth/assignees{/user}","branches_url":"https://api.github.com/repos/omab/python-social-auth/branches{/branch}","tags_url":"https://api.github.com/repos/omab/python-social-auth/tags","blobs_url":"https://api.github.com/repos/omab/python-social-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omab/python-social-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omab/python-social-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/omab/python-social-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omab/python-social-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/omab/python-social-auth/languages","stargazers_url":"https://api.github.com/repos/omab/python-social-auth/stargazers","contributors_url":"https://api.github.com/repos/omab/python-social-auth/contributors","subscribers_url":"https://api.github.com/repos/omab/python-social-auth/subscribers","subscription_url":"https://api.github.com/repos/omab/python-social-auth/subscription","commits_url":"https://api.github.com/repos/omab/python-social-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/omab/python-social-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/omab/python-social-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/omab/python-social-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/omab/python-social-auth/contents/{+path}","compare_url":"https://api.github.com/repos/omab/python-social-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omab/python-social-auth/merges","archive_url":"https://api.github.com/repos/omab/python-social-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omab/python-social-auth/downloads","issues_url":"https://api.github.com/repos/omab/python-social-auth/issues{/number}","pulls_url":"https://api.github.com/repos/omab/python-social-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/omab/python-social-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/omab/python-social-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omab/python-social-auth/labels{/name}","releases_url":"https://api.github.com/repos/omab/python-social-auth/releases{/id}","created_at":"2012-12-12T16:08:42Z","updated_at":"2015-03-14T22:46:23Z","pushed_at":"2015-03-14T22:46:23Z","git_url":"git://github.com/omab/python-social-auth.git","ssh_url":"git@github.com:omab/python-social-auth.git","clone_url":"https://github.com/omab/python-social-auth.git","svn_url":"https://github.com/omab/python-social-auth","homepage":"http://psa.matiasaguirre.net","size":6167,"stargazers_count":1476,"watchers_count":1476,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":447,"mirror_url":null,"open_issues_count":99,"forks":447,"open_issues":99,"watchers":1476,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omab/python-social-auth/pulls/549"},"html":{"href":"https://github.com/omab/python-social-auth/pull/549"},"issue":{"href":"https://api.github.com/repos/omab/python-social-auth/issues/549"},"comments":{"href":"https://api.github.com/repos/omab/python-social-auth/issues/549/comments"},"review_comments":{"href":"https://api.github.com/repos/omab/python-social-auth/pulls/549/comments"},"review_comment":{"href":"https://api.github.com/repos/omab/python-social-auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omab/python-social-auth/pulls/549/commits"},"statuses":{"href":"https://api.github.com/repos/omab/python-social-auth/statuses/f9597b9d0796dc555517fcd4d6cf67d9a7f76e9c"}}}}