{"action":"created","comment":{"url":"https://api.github.com/repos/waprin/oauth2client/pulls/comments/42670346","id":42670346,"diff_hunk":"@@ -0,0 +1,137 @@\n+# Copyright 2015 Google Inc.  All rights reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+# http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+\n+\"\"\"Utilities for the Django web framework\n+\n+Provides Django views and helpers the make using the OAuth2 web server\n+flow easier. It includes a ``required`` decorator to automatically ensure\n+that user credentials are available.\n+\n+\n+Configuration\n+=============\n+\n+First, add the helper to your INSTALLED_APPS:\n+\n+INSTALLED_APPS = (\n+    # other apps\n+    \"oauth2client.django_util\"\n+)\n+\n+To configure, you'll need a set of OAuth2 web application credentials from","path":"oauth2client/django_util/__init__.py","position":33,"original_position":33,"commit_id":"8ced3a146724e947a7548abfb8e50693c5f4fc3d","original_commit_id":"8ced3a146724e947a7548abfb8e50693c5f4fc3d","user":{"login":"jonparrott","id":250995,"avatar_url":"https://avatars.githubusercontent.com/u/250995?v=3","gravatar_id":"","url":"https://api.github.com/users/jonparrott","html_url":"https://github.com/jonparrott","followers_url":"https://api.github.com/users/jonparrott/followers","following_url":"https://api.github.com/users/jonparrott/following{/other_user}","gists_url":"https://api.github.com/users/jonparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/jonparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonparrott/subscriptions","organizations_url":"https://api.github.com/users/jonparrott/orgs","repos_url":"https://api.github.com/users/jonparrott/repos","events_url":"https://api.github.com/users/jonparrott/events{/privacy}","received_events_url":"https://api.github.com/users/jonparrott/received_events","type":"User","site_admin":false},"body":"Move this above the `INSTALLED_APPS` instruction.","created_at":"2015-10-21T19:28:39Z","updated_at":"2015-10-21T19:28:39Z","html_url":"https://github.com/waprin/oauth2client/pull/2#discussion_r42670346","pull_request_url":"https://api.github.com/repos/waprin/oauth2client/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/waprin/oauth2client/pulls/comments/42670346"},"html":{"href":"https://github.com/waprin/oauth2client/pull/2#discussion_r42670346"},"pull_request":{"href":"https://api.github.com/repos/waprin/oauth2client/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/waprin/oauth2client/pulls/2","id":47857331,"html_url":"https://github.com/waprin/oauth2client/pull/2","diff_url":"https://github.com/waprin/oauth2client/pull/2.diff","patch_url":"https://github.com/waprin/oauth2client/pull/2.patch","issue_url":"https://api.github.com/repos/waprin/oauth2client/issues/2","number":2,"state":"open","locked":false,"title":"Add Django Util With Decorator","user":{"login":"waprin","id":1075173,"avatar_url":"https://avatars.githubusercontent.com/u/1075173?v=3","gravatar_id":"","url":"https://api.github.com/users/waprin","html_url":"https://github.com/waprin","followers_url":"https://api.github.com/users/waprin/followers","following_url":"https://api.github.com/users/waprin/following{/other_user}","gists_url":"https://api.github.com/users/waprin/gists{/gist_id}","starred_url":"https://api.github.com/users/waprin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waprin/subscriptions","organizations_url":"https://api.github.com/users/waprin/orgs","repos_url":"https://api.github.com/users/waprin/repos","events_url":"https://api.github.com/users/waprin/events{/privacy}","received_events_url":"https://api.github.com/users/waprin/received_events","type":"User","site_admin":false},"body":"Now refactored into separate files.","created_at":"2015-10-16T00:01:31Z","updated_at":"2015-10-21T19:28:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0bce59cafeb5d218879a08ec7bdc5114afc3faba","assignee":{"login":"jonparrott","id":250995,"avatar_url":"https://avatars.githubusercontent.com/u/250995?v=3","gravatar_id":"","url":"https://api.github.com/users/jonparrott","html_url":"https://github.com/jonparrott","followers_url":"https://api.github.com/users/jonparrott/followers","following_url":"https://api.github.com/users/jonparrott/following{/other_user}","gists_url":"https://api.github.com/users/jonparrott/gists{/gist_id}","starred_url":"https://api.github.com/users/jonparrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonparrott/subscriptions","organizations_url":"https://api.github.com/users/jonparrott/orgs","repos_url":"https://api.github.com/users/jonparrott/repos","events_url":"https://api.github.com/users/jonparrott/events{/privacy}","received_events_url":"https://api.github.com/users/jonparrott/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/waprin/oauth2client/pulls/2/commits","review_comments_url":"https://api.github.com/repos/waprin/oauth2client/pulls/2/comments","review_comment_url":"https://api.github.com/repos/waprin/oauth2client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/waprin/oauth2client/issues/2/comments","statuses_url":"https://api.github.com/repos/waprin/oauth2client/statuses/8ced3a146724e947a7548abfb8e50693c5f4fc3d","head":{"label":"waprin:django_two","ref":"django_two","sha":"8ced3a146724e947a7548abfb8e50693c5f4fc3d","user":{"login":"waprin","id":1075173,"avatar_url":"https://avatars.githubusercontent.com/u/1075173?v=3","gravatar_id":"","url":"https://api.github.com/users/waprin","html_url":"https://github.com/waprin","followers_url":"https://api.github.com/users/waprin/followers","following_url":"https://api.github.com/users/waprin/following{/other_user}","gists_url":"https://api.github.com/users/waprin/gists{/gist_id}","starred_url":"https://api.github.com/users/waprin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waprin/subscriptions","organizations_url":"https://api.github.com/users/waprin/orgs","repos_url":"https://api.github.com/users/waprin/repos","events_url":"https://api.github.com/users/waprin/events{/privacy}","received_events_url":"https://api.github.com/users/waprin/received_events","type":"User","site_admin":false},"repo":{"id":44128520,"name":"oauth2client","full_name":"waprin/oauth2client","owner":{"login":"waprin","id":1075173,"avatar_url":"https://avatars.githubusercontent.com/u/1075173?v=3","gravatar_id":"","url":"https://api.github.com/users/waprin","html_url":"https://github.com/waprin","followers_url":"https://api.github.com/users/waprin/followers","following_url":"https://api.github.com/users/waprin/following{/other_user}","gists_url":"https://api.github.com/users/waprin/gists{/gist_id}","starred_url":"https://api.github.com/users/waprin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waprin/subscriptions","organizations_url":"https://api.github.com/users/waprin/orgs","repos_url":"https://api.github.com/users/waprin/repos","events_url":"https://api.github.com/users/waprin/events{/privacy}","received_events_url":"https://api.github.com/users/waprin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/waprin/oauth2client","description":"This is a Python library for accessing resources protected by OAuth 2.0.","fork":true,"url":"https://api.github.com/repos/waprin/oauth2client","forks_url":"https://api.github.com/repos/waprin/oauth2client/forks","keys_url":"https://api.github.com/repos/waprin/oauth2client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/waprin/oauth2client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/waprin/oauth2client/teams","hooks_url":"https://api.github.com/repos/waprin/oauth2client/hooks","issue_events_url":"https://api.github.com/repos/waprin/oauth2client/issues/events{/number}","events_url":"https://api.github.com/repos/waprin/oauth2client/events","assignees_url":"https://api.github.com/repos/waprin/oauth2client/assignees{/user}","branches_url":"https://api.github.com/repos/waprin/oauth2client/branches{/branch}","tags_url":"https://api.github.com/repos/waprin/oauth2client/tags","blobs_url":"https://api.github.com/repos/waprin/oauth2client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/waprin/oauth2client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/waprin/oauth2client/git/refs{/sha}","trees_url":"https://api.github.com/repos/waprin/oauth2client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/waprin/oauth2client/statuses/{sha}","languages_url":"https://api.github.com/repos/waprin/oauth2client/languages","stargazers_url":"https://api.github.com/repos/waprin/oauth2client/stargazers","contributors_url":"https://api.github.com/repos/waprin/oauth2client/contributors","subscribers_url":"https://api.github.com/repos/waprin/oauth2client/subscribers","subscription_url":"https://api.github.com/repos/waprin/oauth2client/subscription","commits_url":"https://api.github.com/repos/waprin/oauth2client/commits{/sha}","git_commits_url":"https://api.github.com/repos/waprin/oauth2client/git/commits{/sha}","comments_url":"https://api.github.com/repos/waprin/oauth2client/comments{/number}","issue_comment_url":"https://api.github.com/repos/waprin/oauth2client/issues/comments{/number}","contents_url":"https://api.github.com/repos/waprin/oauth2client/contents/{+path}","compare_url":"https://api.github.com/repos/waprin/oauth2client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/waprin/oauth2client/merges","archive_url":"https://api.github.com/repos/waprin/oauth2client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/waprin/oauth2client/downloads","issues_url":"https://api.github.com/repos/waprin/oauth2client/issues{/number}","pulls_url":"https://api.github.com/repos/waprin/oauth2client/pulls{/number}","milestones_url":"https://api.github.com/repos/waprin/oauth2client/milestones{/number}","notifications_url":"https://api.github.com/repos/waprin/oauth2client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/waprin/oauth2client/labels{/name}","releases_url":"https://api.github.com/repos/waprin/oauth2client/releases{/id}","created_at":"2015-10-12T19:12:47Z","updated_at":"2015-10-12T19:12:50Z","pushed_at":"2015-10-16T23:03:22Z","git_url":"git://github.com/waprin/oauth2client.git","ssh_url":"git@github.com:waprin/oauth2client.git","clone_url":"https://github.com/waprin/oauth2client.git","svn_url":"https://github.com/waprin/oauth2client","homepage":"","size":23277,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"waprin:master","ref":"master","sha":"2b6aea62894bc79eaf70670bcdac35bf7c474539","user":{"login":"waprin","id":1075173,"avatar_url":"https://avatars.githubusercontent.com/u/1075173?v=3","gravatar_id":"","url":"https://api.github.com/users/waprin","html_url":"https://github.com/waprin","followers_url":"https://api.github.com/users/waprin/followers","following_url":"https://api.github.com/users/waprin/following{/other_user}","gists_url":"https://api.github.com/users/waprin/gists{/gist_id}","starred_url":"https://api.github.com/users/waprin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waprin/subscriptions","organizations_url":"https://api.github.com/users/waprin/orgs","repos_url":"https://api.github.com/users/waprin/repos","events_url":"https://api.github.com/users/waprin/events{/privacy}","received_events_url":"https://api.github.com/users/waprin/received_events","type":"User","site_admin":false},"repo":{"id":44128520,"name":"oauth2client","full_name":"waprin/oauth2client","owner":{"login":"waprin","id":1075173,"avatar_url":"https://avatars.githubusercontent.com/u/1075173?v=3","gravatar_id":"","url":"https://api.github.com/users/waprin","html_url":"https://github.com/waprin","followers_url":"https://api.github.com/users/waprin/followers","following_url":"https://api.github.com/users/waprin/following{/other_user}","gists_url":"https://api.github.com/users/waprin/gists{/gist_id}","starred_url":"https://api.github.com/users/waprin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waprin/subscriptions","organizations_url":"https://api.github.com/users/waprin/orgs","repos_url":"https://api.github.com/users/waprin/repos","events_url":"https://api.github.com/users/waprin/events{/privacy}","received_events_url":"https://api.github.com/users/waprin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/waprin/oauth2client","description":"This is a Python library for accessing resources protected by OAuth 2.0.","fork":true,"url":"https://api.github.com/repos/waprin/oauth2client","forks_url":"https://api.github.com/repos/waprin/oauth2client/forks","keys_url":"https://api.github.com/repos/waprin/oauth2client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/waprin/oauth2client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/waprin/oauth2client/teams","hooks_url":"https://api.github.com/repos/waprin/oauth2client/hooks","issue_events_url":"https://api.github.com/repos/waprin/oauth2client/issues/events{/number}","events_url":"https://api.github.com/repos/waprin/oauth2client/events","assignees_url":"https://api.github.com/repos/waprin/oauth2client/assignees{/user}","branches_url":"https://api.github.com/repos/waprin/oauth2client/branches{/branch}","tags_url":"https://api.github.com/repos/waprin/oauth2client/tags","blobs_url":"https://api.github.com/repos/waprin/oauth2client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/waprin/oauth2client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/waprin/oauth2client/git/refs{/sha}","trees_url":"https://api.github.com/repos/waprin/oauth2client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/waprin/oauth2client/statuses/{sha}","languages_url":"https://api.github.com/repos/waprin/oauth2client/languages","stargazers_url":"https://api.github.com/repos/waprin/oauth2client/stargazers","contributors_url":"https://api.github.com/repos/waprin/oauth2client/contributors","subscribers_url":"https://api.github.com/repos/waprin/oauth2client/subscribers","subscription_url":"https://api.github.com/repos/waprin/oauth2client/subscription","commits_url":"https://api.github.com/repos/waprin/oauth2client/commits{/sha}","git_commits_url":"https://api.github.com/repos/waprin/oauth2client/git/commits{/sha}","comments_url":"https://api.github.com/repos/waprin/oauth2client/comments{/number}","issue_comment_url":"https://api.github.com/repos/waprin/oauth2client/issues/comments{/number}","contents_url":"https://api.github.com/repos/waprin/oauth2client/contents/{+path}","compare_url":"https://api.github.com/repos/waprin/oauth2client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/waprin/oauth2client/merges","archive_url":"https://api.github.com/repos/waprin/oauth2client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/waprin/oauth2client/downloads","issues_url":"https://api.github.com/repos/waprin/oauth2client/issues{/number}","pulls_url":"https://api.github.com/repos/waprin/oauth2client/pulls{/number}","milestones_url":"https://api.github.com/repos/waprin/oauth2client/milestones{/number}","notifications_url":"https://api.github.com/repos/waprin/oauth2client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/waprin/oauth2client/labels{/name}","releases_url":"https://api.github.com/repos/waprin/oauth2client/releases{/id}","created_at":"2015-10-12T19:12:47Z","updated_at":"2015-10-12T19:12:50Z","pushed_at":"2015-10-16T23:03:22Z","git_url":"git://github.com/waprin/oauth2client.git","ssh_url":"git@github.com:waprin/oauth2client.git","clone_url":"https://github.com/waprin/oauth2client.git","svn_url":"https://github.com/waprin/oauth2client","homepage":"","size":23277,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/waprin/oauth2client/pulls/2"},"html":{"href":"https://github.com/waprin/oauth2client/pull/2"},"issue":{"href":"https://api.github.com/repos/waprin/oauth2client/issues/2"},"comments":{"href":"https://api.github.com/repos/waprin/oauth2client/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/waprin/oauth2client/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/waprin/oauth2client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/waprin/oauth2client/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/waprin/oauth2client/statuses/8ced3a146724e947a7548abfb8e50693c5f4fc3d"}}}}