{"action":"created","comment":{"url":"https://api.github.com/repos/aaugustin/django-sesame/pulls/comments/179910743","pull_request_review_id":110249043,"id":179910743,"diff_hunk":"@@ -49,6 +49,13 @@ def tearDown(self):\n     def test_token(self):\n         response = self.client.get('/', {'url_auth_token': self.token})\n         self.assertEqual(response.content, b'john')\n+        self.assertRedirects(response, '/')\n+\n+    def test_token_with_path(self):\n+        params = {'bar': 42, 'url_auth_token': self.token}\n+        response = self.client.get('/foo', params)\n+        self.assertEqual(response.content, b'john')","path":"sesame/test_middleware.py","position":9,"original_position":9,"commit_id":"73be93a34b1e9dfd9211e531cd9f5c8ed2057388","original_commit_id":"73be93a34b1e9dfd9211e531cd9f5c8ed2057388","user":{"login":"aaugustin","id":788910,"avatar_url":"https://avatars1.githubusercontent.com/u/788910?v=4","gravatar_id":"","url":"https://api.github.com/users/aaugustin","html_url":"https://github.com/aaugustin","followers_url":"https://api.github.com/users/aaugustin/followers","following_url":"https://api.github.com/users/aaugustin/following{/other_user}","gists_url":"https://api.github.com/users/aaugustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaugustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaugustin/subscriptions","organizations_url":"https://api.github.com/users/aaugustin/orgs","repos_url":"https://api.github.com/users/aaugustin/repos","events_url":"https://api.github.com/users/aaugustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaugustin/received_events","type":"User","site_admin":false},"body":"As mentioned above, the redirect response doesn't need any contents.\r\n","created_at":"2018-04-07T07:20:29Z","updated_at":"2018-04-07T07:25:17Z","html_url":"https://github.com/aaugustin/django-sesame/pull/10#discussion_r179910743","pull_request_url":"https://api.github.com/repos/aaugustin/django-sesame/pulls/10","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/aaugustin/django-sesame/pulls/comments/179910743"},"html":{"href":"https://github.com/aaugustin/django-sesame/pull/10#discussion_r179910743"},"pull_request":{"href":"https://api.github.com/repos/aaugustin/django-sesame/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/aaugustin/django-sesame/pulls/10","id":179736380,"html_url":"https://github.com/aaugustin/django-sesame/pull/10","diff_url":"https://github.com/aaugustin/django-sesame/pull/10.diff","patch_url":"https://github.com/aaugustin/django-sesame/pull/10.patch","issue_url":"https://api.github.com/repos/aaugustin/django-sesame/issues/10","number":10,"state":"open","locked":false,"title":"Redirect to drop token after successful auth","user":{"login":"jacebrowning","id":939501,"avatar_url":"https://avatars0.githubusercontent.com/u/939501?v=4","gravatar_id":"","url":"https://api.github.com/users/jacebrowning","html_url":"https://github.com/jacebrowning","followers_url":"https://api.github.com/users/jacebrowning/followers","following_url":"https://api.github.com/users/jacebrowning/following{/other_user}","gists_url":"https://api.github.com/users/jacebrowning/gists{/gist_id}","starred_url":"https://api.github.com/users/jacebrowning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacebrowning/subscriptions","organizations_url":"https://api.github.com/users/jacebrowning/orgs","repos_url":"https://api.github.com/users/jacebrowning/repos","events_url":"https://api.github.com/users/jacebrowning/events{/privacy}","received_events_url":"https://api.github.com/users/jacebrowning/received_events","type":"User","site_admin":false},"body":"Closes #9 ","created_at":"2018-04-05T16:53:45Z","updated_at":"2018-04-07T07:25:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dce42d35785e36414f938760ee2cae167d5df241","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aaugustin/django-sesame/pulls/10/commits","review_comments_url":"https://api.github.com/repos/aaugustin/django-sesame/pulls/10/comments","review_comment_url":"https://api.github.com/repos/aaugustin/django-sesame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aaugustin/django-sesame/issues/10/comments","statuses_url":"https://api.github.com/repos/aaugustin/django-sesame/statuses/73be93a34b1e9dfd9211e531cd9f5c8ed2057388","head":{"label":"jacebrowning:drop-token-after-auth","ref":"drop-token-after-auth","sha":"73be93a34b1e9dfd9211e531cd9f5c8ed2057388","user":{"login":"jacebrowning","id":939501,"avatar_url":"https://avatars0.githubusercontent.com/u/939501?v=4","gravatar_id":"","url":"https://api.github.com/users/jacebrowning","html_url":"https://github.com/jacebrowning","followers_url":"https://api.github.com/users/jacebrowning/followers","following_url":"https://api.github.com/users/jacebrowning/following{/other_user}","gists_url":"https://api.github.com/users/jacebrowning/gists{/gist_id}","starred_url":"https://api.github.com/users/jacebrowning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacebrowning/subscriptions","organizations_url":"https://api.github.com/users/jacebrowning/orgs","repos_url":"https://api.github.com/users/jacebrowning/repos","events_url":"https://api.github.com/users/jacebrowning/events{/privacy}","received_events_url":"https://api.github.com/users/jacebrowning/received_events","type":"User","site_admin":false},"repo":{"id":128228122,"name":"django-sesame","full_name":"jacebrowning/django-sesame","owner":{"login":"jacebrowning","id":939501,"avatar_url":"https://avatars0.githubusercontent.com/u/939501?v=4","gravatar_id":"","url":"https://api.github.com/users/jacebrowning","html_url":"https://github.com/jacebrowning","followers_url":"https://api.github.com/users/jacebrowning/followers","following_url":"https://api.github.com/users/jacebrowning/following{/other_user}","gists_url":"https://api.github.com/users/jacebrowning/gists{/gist_id}","starred_url":"https://api.github.com/users/jacebrowning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacebrowning/subscriptions","organizations_url":"https://api.github.com/users/jacebrowning/orgs","repos_url":"https://api.github.com/users/jacebrowning/repos","events_url":"https://api.github.com/users/jacebrowning/events{/privacy}","received_events_url":"https://api.github.com/users/jacebrowning/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacebrowning/django-sesame","description":"URLs with authentication tokens for automatic login","fork":true,"url":"https://api.github.com/repos/jacebrowning/django-sesame","forks_url":"https://api.github.com/repos/jacebrowning/django-sesame/forks","keys_url":"https://api.github.com/repos/jacebrowning/django-sesame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacebrowning/django-sesame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacebrowning/django-sesame/teams","hooks_url":"https://api.github.com/repos/jacebrowning/django-sesame/hooks","issue_events_url":"https://api.github.com/repos/jacebrowning/django-sesame/issues/events{/number}","events_url":"https://api.github.com/repos/jacebrowning/django-sesame/events","assignees_url":"https://api.github.com/repos/jacebrowning/django-sesame/assignees{/user}","branches_url":"https://api.github.com/repos/jacebrowning/django-sesame/branches{/branch}","tags_url":"https://api.github.com/repos/jacebrowning/django-sesame/tags","blobs_url":"https://api.github.com/repos/jacebrowning/django-sesame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacebrowning/django-sesame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacebrowning/django-sesame/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacebrowning/django-sesame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacebrowning/django-sesame/statuses/{sha}","languages_url":"https://api.github.com/repos/jacebrowning/django-sesame/languages","stargazers_url":"https://api.github.com/repos/jacebrowning/django-sesame/stargazers","contributors_url":"https://api.github.com/repos/jacebrowning/django-sesame/contributors","subscribers_url":"https://api.github.com/repos/jacebrowning/django-sesame/subscribers","subscription_url":"https://api.github.com/repos/jacebrowning/django-sesame/subscription","commits_url":"https://api.github.com/repos/jacebrowning/django-sesame/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacebrowning/django-sesame/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacebrowning/django-sesame/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacebrowning/django-sesame/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacebrowning/django-sesame/contents/{+path}","compare_url":"https://api.github.com/repos/jacebrowning/django-sesame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacebrowning/django-sesame/merges","archive_url":"https://api.github.com/repos/jacebrowning/django-sesame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacebrowning/django-sesame/downloads","issues_url":"https://api.github.com/repos/jacebrowning/django-sesame/issues{/number}","pulls_url":"https://api.github.com/repos/jacebrowning/django-sesame/pulls{/number}","milestones_url":"https://api.github.com/repos/jacebrowning/django-sesame/milestones{/number}","notifications_url":"https://api.github.com/repos/jacebrowning/django-sesame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacebrowning/django-sesame/labels{/name}","releases_url":"https://api.github.com/repos/jacebrowning/django-sesame/releases{/id}","deployments_url":"https://api.github.com/repos/jacebrowning/django-sesame/deployments","created_at":"2018-04-05T15:44:14Z","updated_at":"2018-04-05T15:44:17Z","pushed_at":"2018-04-05T16:53:23Z","git_url":"git://github.com/jacebrowning/django-sesame.git","ssh_url":"git@github.com:jacebrowning/django-sesame.git","clone_url":"https://github.com/jacebrowning/django-sesame.git","svn_url":"https://github.com/jacebrowning/django-sesame","homepage":"https://django-sesame.readthedocs.org/","size":42,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aaugustin:master","ref":"master","sha":"b546c024796fc7ea5a9c41e26cfa358eb35f31c6","user":{"login":"aaugustin","id":788910,"avatar_url":"https://avatars1.githubusercontent.com/u/788910?v=4","gravatar_id":"","url":"https://api.github.com/users/aaugustin","html_url":"https://github.com/aaugustin","followers_url":"https://api.github.com/users/aaugustin/followers","following_url":"https://api.github.com/users/aaugustin/following{/other_user}","gists_url":"https://api.github.com/users/aaugustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaugustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaugustin/subscriptions","organizations_url":"https://api.github.com/users/aaugustin/orgs","repos_url":"https://api.github.com/users/aaugustin/repos","events_url":"https://api.github.com/users/aaugustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaugustin/received_events","type":"User","site_admin":false},"repo":{"id":3916311,"name":"django-sesame","full_name":"aaugustin/django-sesame","owner":{"login":"aaugustin","id":788910,"avatar_url":"https://avatars1.githubusercontent.com/u/788910?v=4","gravatar_id":"","url":"https://api.github.com/users/aaugustin","html_url":"https://github.com/aaugustin","followers_url":"https://api.github.com/users/aaugustin/followers","following_url":"https://api.github.com/users/aaugustin/following{/other_user}","gists_url":"https://api.github.com/users/aaugustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaugustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaugustin/subscriptions","organizations_url":"https://api.github.com/users/aaugustin/orgs","repos_url":"https://api.github.com/users/aaugustin/repos","events_url":"https://api.github.com/users/aaugustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaugustin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aaugustin/django-sesame","description":"URLs with authentication tokens for automatic login","fork":false,"url":"https://api.github.com/repos/aaugustin/django-sesame","forks_url":"https://api.github.com/repos/aaugustin/django-sesame/forks","keys_url":"https://api.github.com/repos/aaugustin/django-sesame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aaugustin/django-sesame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aaugustin/django-sesame/teams","hooks_url":"https://api.github.com/repos/aaugustin/django-sesame/hooks","issue_events_url":"https://api.github.com/repos/aaugustin/django-sesame/issues/events{/number}","events_url":"https://api.github.com/repos/aaugustin/django-sesame/events","assignees_url":"https://api.github.com/repos/aaugustin/django-sesame/assignees{/user}","branches_url":"https://api.github.com/repos/aaugustin/django-sesame/branches{/branch}","tags_url":"https://api.github.com/repos/aaugustin/django-sesame/tags","blobs_url":"https://api.github.com/repos/aaugustin/django-sesame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aaugustin/django-sesame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aaugustin/django-sesame/git/refs{/sha}","trees_url":"https://api.github.com/repos/aaugustin/django-sesame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aaugustin/django-sesame/statuses/{sha}","languages_url":"https://api.github.com/repos/aaugustin/django-sesame/languages","stargazers_url":"https://api.github.com/repos/aaugustin/django-sesame/stargazers","contributors_url":"https://api.github.com/repos/aaugustin/django-sesame/contributors","subscribers_url":"https://api.github.com/repos/aaugustin/django-sesame/subscribers","subscription_url":"https://api.github.com/repos/aaugustin/django-sesame/subscription","commits_url":"https://api.github.com/repos/aaugustin/django-sesame/commits{/sha}","git_commits_url":"https://api.github.com/repos/aaugustin/django-sesame/git/commits{/sha}","comments_url":"https://api.github.com/repos/aaugustin/django-sesame/comments{/number}","issue_comment_url":"https://api.github.com/repos/aaugustin/django-sesame/issues/comments{/number}","contents_url":"https://api.github.com/repos/aaugustin/django-sesame/contents/{+path}","compare_url":"https://api.github.com/repos/aaugustin/django-sesame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aaugustin/django-sesame/merges","archive_url":"https://api.github.com/repos/aaugustin/django-sesame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aaugustin/django-sesame/downloads","issues_url":"https://api.github.com/repos/aaugustin/django-sesame/issues{/number}","pulls_url":"https://api.github.com/repos/aaugustin/django-sesame/pulls{/number}","milestones_url":"https://api.github.com/repos/aaugustin/django-sesame/milestones{/number}","notifications_url":"https://api.github.com/repos/aaugustin/django-sesame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aaugustin/django-sesame/labels{/name}","releases_url":"https://api.github.com/repos/aaugustin/django-sesame/releases{/id}","deployments_url":"https://api.github.com/repos/aaugustin/django-sesame/deployments","created_at":"2012-04-03T09:10:15Z","updated_at":"2018-04-04T18:13:48Z","pushed_at":"2018-04-05T16:53:46Z","git_url":"git://github.com/aaugustin/django-sesame.git","ssh_url":"git@github.com:aaugustin/django-sesame.git","clone_url":"https://github.com/aaugustin/django-sesame.git","svn_url":"https://github.com/aaugustin/django-sesame","homepage":"https://django-sesame.readthedocs.org/","size":41,"stargazers_count":129,"watchers_count":129,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":7,"open_issues":3,"watchers":129,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aaugustin/django-sesame/pulls/10"},"html":{"href":"https://github.com/aaugustin/django-sesame/pull/10"},"issue":{"href":"https://api.github.com/repos/aaugustin/django-sesame/issues/10"},"comments":{"href":"https://api.github.com/repos/aaugustin/django-sesame/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/aaugustin/django-sesame/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/aaugustin/django-sesame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aaugustin/django-sesame/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/aaugustin/django-sesame/statuses/73be93a34b1e9dfd9211e531cd9f5c8ed2057388"}},"author_association":"NONE"}}
{"actor":{"display_login":"aaugustin"}}