{"action":"opened","number":72,"pull_request":{"url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/72","id":33159356,"html_url":"https://github.com/Tivix/django-rest-auth/pull/72","diff_url":"https://github.com/Tivix/django-rest-auth/pull/72.diff","patch_url":"https://github.com/Tivix/django-rest-auth/pull/72.patch","issue_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/72","number":72,"state":"open","locked":false,"title":"Also accepting authorization codes instead of access tokens","user":{"login":"philippeluickx","id":836866,"avatar_url":"https://avatars.githubusercontent.com/u/836866?v=3","gravatar_id":"","url":"https://api.github.com/users/philippeluickx","html_url":"https://github.com/philippeluickx","followers_url":"https://api.github.com/users/philippeluickx/followers","following_url":"https://api.github.com/users/philippeluickx/following{/other_user}","gists_url":"https://api.github.com/users/philippeluickx/gists{/gist_id}","starred_url":"https://api.github.com/users/philippeluickx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippeluickx/subscriptions","organizations_url":"https://api.github.com/users/philippeluickx/orgs","repos_url":"https://api.github.com/users/philippeluickx/repos","events_url":"https://api.github.com/users/philippeluickx/events{/privacy}","received_events_url":"https://api.github.com/users/philippeluickx/received_events","type":"User","site_admin":false},"body":"oauth2 (at least Facebook) can provide an authorization code instead of an access token. This code is short lived and provides a way to fetch a long lived access token.\r\n\r\nI am using https://github.com/sahat/satellizer in the frontend which by default fetches code, not token. Hence the implementation in the backend.\r\n\r\nSource:\r\nhttp://stackoverflow.com/questions/8666316/facebook-oauth-2-0-code-and-token","created_at":"2015-04-13T12:35:55Z","updated_at":"2015-04-13T12:35:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/72/commits","review_comments_url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/72/comments","review_comment_url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/72/comments","statuses_url":"https://api.github.com/repos/Tivix/django-rest-auth/statuses/724f17d91ee5a3c0537972c865c4c276cd102b9f","head":{"label":"philippeluickx:master","ref":"master","sha":"724f17d91ee5a3c0537972c865c4c276cd102b9f","user":{"login":"philippeluickx","id":836866,"avatar_url":"https://avatars.githubusercontent.com/u/836866?v=3","gravatar_id":"","url":"https://api.github.com/users/philippeluickx","html_url":"https://github.com/philippeluickx","followers_url":"https://api.github.com/users/philippeluickx/followers","following_url":"https://api.github.com/users/philippeluickx/following{/other_user}","gists_url":"https://api.github.com/users/philippeluickx/gists{/gist_id}","starred_url":"https://api.github.com/users/philippeluickx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippeluickx/subscriptions","organizations_url":"https://api.github.com/users/philippeluickx/orgs","repos_url":"https://api.github.com/users/philippeluickx/repos","events_url":"https://api.github.com/users/philippeluickx/events{/privacy}","received_events_url":"https://api.github.com/users/philippeluickx/received_events","type":"User","site_admin":false},"repo":{"id":33676330,"name":"django-rest-auth","full_name":"philippeluickx/django-rest-auth","owner":{"login":"philippeluickx","id":836866,"avatar_url":"https://avatars.githubusercontent.com/u/836866?v=3","gravatar_id":"","url":"https://api.github.com/users/philippeluickx","html_url":"https://github.com/philippeluickx","followers_url":"https://api.github.com/users/philippeluickx/followers","following_url":"https://api.github.com/users/philippeluickx/following{/other_user}","gists_url":"https://api.github.com/users/philippeluickx/gists{/gist_id}","starred_url":"https://api.github.com/users/philippeluickx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippeluickx/subscriptions","organizations_url":"https://api.github.com/users/philippeluickx/orgs","repos_url":"https://api.github.com/users/philippeluickx/repos","events_url":"https://api.github.com/users/philippeluickx/events{/privacy}","received_events_url":"https://api.github.com/users/philippeluickx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/philippeluickx/django-rest-auth","description":"This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)","fork":true,"url":"https://api.github.com/repos/philippeluickx/django-rest-auth","forks_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/forks","keys_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/teams","hooks_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/hooks","issue_events_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/issues/events{/number}","events_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/events","assignees_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/assignees{/user}","branches_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/branches{/branch}","tags_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/tags","blobs_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/languages","stargazers_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/stargazers","contributors_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/contributors","subscribers_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/subscribers","subscription_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/subscription","commits_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/contents/{+path}","compare_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/merges","archive_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/downloads","issues_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/issues{/number}","pulls_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/labels{/name}","releases_url":"https://api.github.com/repos/philippeluickx/django-rest-auth/releases{/id}","created_at":"2015-04-09T15:18:40Z","updated_at":"2015-04-12T21:50:18Z","pushed_at":"2015-04-12T21:50:18Z","git_url":"git://github.com/philippeluickx/django-rest-auth.git","ssh_url":"git@github.com:philippeluickx/django-rest-auth.git","clone_url":"https://github.com/philippeluickx/django-rest-auth.git","svn_url":"https://github.com/philippeluickx/django-rest-auth","homepage":"www.tivix.com","size":234,"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":"Tivix:master","ref":"master","sha":"dddde2d6180e72ff416d71fdedd74ebe63a7169b","user":{"login":"Tivix","id":610135,"avatar_url":"https://avatars.githubusercontent.com/u/610135?v=3","gravatar_id":"","url":"https://api.github.com/users/Tivix","html_url":"https://github.com/Tivix","followers_url":"https://api.github.com/users/Tivix/followers","following_url":"https://api.github.com/users/Tivix/following{/other_user}","gists_url":"https://api.github.com/users/Tivix/gists{/gist_id}","starred_url":"https://api.github.com/users/Tivix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tivix/subscriptions","organizations_url":"https://api.github.com/users/Tivix/orgs","repos_url":"https://api.github.com/users/Tivix/repos","events_url":"https://api.github.com/users/Tivix/events{/privacy}","received_events_url":"https://api.github.com/users/Tivix/received_events","type":"Organization","site_admin":false},"repo":{"id":19325336,"name":"django-rest-auth","full_name":"Tivix/django-rest-auth","owner":{"login":"Tivix","id":610135,"avatar_url":"https://avatars.githubusercontent.com/u/610135?v=3","gravatar_id":"","url":"https://api.github.com/users/Tivix","html_url":"https://github.com/Tivix","followers_url":"https://api.github.com/users/Tivix/followers","following_url":"https://api.github.com/users/Tivix/following{/other_user}","gists_url":"https://api.github.com/users/Tivix/gists{/gist_id}","starred_url":"https://api.github.com/users/Tivix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tivix/subscriptions","organizations_url":"https://api.github.com/users/Tivix/orgs","repos_url":"https://api.github.com/users/Tivix/repos","events_url":"https://api.github.com/users/Tivix/events{/privacy}","received_events_url":"https://api.github.com/users/Tivix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tivix/django-rest-auth","description":"This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)","fork":false,"url":"https://api.github.com/repos/Tivix/django-rest-auth","forks_url":"https://api.github.com/repos/Tivix/django-rest-auth/forks","keys_url":"https://api.github.com/repos/Tivix/django-rest-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tivix/django-rest-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tivix/django-rest-auth/teams","hooks_url":"https://api.github.com/repos/Tivix/django-rest-auth/hooks","issue_events_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/events{/number}","events_url":"https://api.github.com/repos/Tivix/django-rest-auth/events","assignees_url":"https://api.github.com/repos/Tivix/django-rest-auth/assignees{/user}","branches_url":"https://api.github.com/repos/Tivix/django-rest-auth/branches{/branch}","tags_url":"https://api.github.com/repos/Tivix/django-rest-auth/tags","blobs_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tivix/django-rest-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/Tivix/django-rest-auth/languages","stargazers_url":"https://api.github.com/repos/Tivix/django-rest-auth/stargazers","contributors_url":"https://api.github.com/repos/Tivix/django-rest-auth/contributors","subscribers_url":"https://api.github.com/repos/Tivix/django-rest-auth/subscribers","subscription_url":"https://api.github.com/repos/Tivix/django-rest-auth/subscription","commits_url":"https://api.github.com/repos/Tivix/django-rest-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tivix/django-rest-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tivix/django-rest-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tivix/django-rest-auth/contents/{+path}","compare_url":"https://api.github.com/repos/Tivix/django-rest-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tivix/django-rest-auth/merges","archive_url":"https://api.github.com/repos/Tivix/django-rest-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tivix/django-rest-auth/downloads","issues_url":"https://api.github.com/repos/Tivix/django-rest-auth/issues{/number}","pulls_url":"https://api.github.com/repos/Tivix/django-rest-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/Tivix/django-rest-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/Tivix/django-rest-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tivix/django-rest-auth/labels{/name}","releases_url":"https://api.github.com/repos/Tivix/django-rest-auth/releases{/id}","created_at":"2014-04-30T19:50:41Z","updated_at":"2015-04-12T08:00:24Z","pushed_at":"2015-04-03T08:37:13Z","git_url":"git://github.com/Tivix/django-rest-auth.git","ssh_url":"git@github.com:Tivix/django-rest-auth.git","clone_url":"https://github.com/Tivix/django-rest-auth.git","svn_url":"https://github.com/Tivix/django-rest-auth","homepage":"www.tivix.com","size":914,"stargazers_count":169,"watchers_count":169,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":11,"forks":49,"open_issues":11,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/72"},"html":{"href":"https://github.com/Tivix/django-rest-auth/pull/72"},"issue":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/issues/72"},"comments":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/Tivix/django-rest-auth/statuses/724f17d91ee5a3c0537972c865c4c276cd102b9f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":7,"additions":114,"deletions":25,"changed_files":4}}