{"action":"opened","number":10387,"pull_request":{"url":"https://api.github.com/repos/guardian/frontend/pulls/10387","id":44121087,"html_url":"https://github.com/guardian/frontend/pull/10387","diff_url":"https://github.com/guardian/frontend/pull/10387.diff","patch_url":"https://github.com/guardian/frontend/pull/10387.patch","issue_url":"https://api.github.com/repos/guardian/frontend/issues/10387","number":10387,"state":"open","locked":false,"title":"Allow override of redirect url for authentication in Preview","user":{"login":"jamespamplin","id":2298529,"avatar_url":"https://avatars.githubusercontent.com/u/2298529?v=3","gravatar_id":"","url":"https://api.github.com/users/jamespamplin","html_url":"https://github.com/jamespamplin","followers_url":"https://api.github.com/users/jamespamplin/followers","following_url":"https://api.github.com/users/jamespamplin/following{/other_user}","gists_url":"https://api.github.com/users/jamespamplin/gists{/gist_id}","starred_url":"https://api.github.com/users/jamespamplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamespamplin/subscriptions","organizations_url":"https://api.github.com/users/jamespamplin/orgs","repos_url":"https://api.github.com/users/jamespamplin/repos","events_url":"https://api.github.com/users/jamespamplin/events{/privacy}","received_events_url":"https://api.github.com/users/jamespamplin/received_events","type":"User","site_admin":false},"body":"Small change to enable overriding the `redirect_url` used for Google OAuth on Preview (and training-preview).\r\n\r\nPassing `redirect-url` as a query parameter to `/login` and `/oauth2callback` will ensure that Google redirects the client to `redirect-url` instead of `/oauth2callback` for authentication and validation.\r\n\r\nRequired for a proxy to preview in the new mobile viewer: guardian/editorial-viewer#10","created_at":"2015-09-03T15:28:16Z","updated_at":"2015-09-03T15:28:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guardian/frontend/pulls/10387/commits","review_comments_url":"https://api.github.com/repos/guardian/frontend/pulls/10387/comments","review_comment_url":"https://api.github.com/repos/guardian/frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/frontend/issues/10387/comments","statuses_url":"https://api.github.com/repos/guardian/frontend/statuses/485703a580ad126388a32237ee92af65cfe53d42","head":{"label":"jamespamplin:jpam-preview-redirect-url","ref":"jpam-preview-redirect-url","sha":"485703a580ad126388a32237ee92af65cfe53d42","user":{"login":"jamespamplin","id":2298529,"avatar_url":"https://avatars.githubusercontent.com/u/2298529?v=3","gravatar_id":"","url":"https://api.github.com/users/jamespamplin","html_url":"https://github.com/jamespamplin","followers_url":"https://api.github.com/users/jamespamplin/followers","following_url":"https://api.github.com/users/jamespamplin/following{/other_user}","gists_url":"https://api.github.com/users/jamespamplin/gists{/gist_id}","starred_url":"https://api.github.com/users/jamespamplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamespamplin/subscriptions","organizations_url":"https://api.github.com/users/jamespamplin/orgs","repos_url":"https://api.github.com/users/jamespamplin/repos","events_url":"https://api.github.com/users/jamespamplin/events{/privacy}","received_events_url":"https://api.github.com/users/jamespamplin/received_events","type":"User","site_admin":false},"repo":{"id":41867032,"name":"frontend","full_name":"jamespamplin/frontend","owner":{"login":"jamespamplin","id":2298529,"avatar_url":"https://avatars.githubusercontent.com/u/2298529?v=3","gravatar_id":"","url":"https://api.github.com/users/jamespamplin","html_url":"https://github.com/jamespamplin","followers_url":"https://api.github.com/users/jamespamplin/followers","following_url":"https://api.github.com/users/jamespamplin/following{/other_user}","gists_url":"https://api.github.com/users/jamespamplin/gists{/gist_id}","starred_url":"https://api.github.com/users/jamespamplin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamespamplin/subscriptions","organizations_url":"https://api.github.com/users/jamespamplin/orgs","repos_url":"https://api.github.com/users/jamespamplin/repos","events_url":"https://api.github.com/users/jamespamplin/events{/privacy}","received_events_url":"https://api.github.com/users/jamespamplin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamespamplin/frontend","description":"Source for theguardian.com","fork":true,"url":"https://api.github.com/repos/jamespamplin/frontend","forks_url":"https://api.github.com/repos/jamespamplin/frontend/forks","keys_url":"https://api.github.com/repos/jamespamplin/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamespamplin/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamespamplin/frontend/teams","hooks_url":"https://api.github.com/repos/jamespamplin/frontend/hooks","issue_events_url":"https://api.github.com/repos/jamespamplin/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/jamespamplin/frontend/events","assignees_url":"https://api.github.com/repos/jamespamplin/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/jamespamplin/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/jamespamplin/frontend/tags","blobs_url":"https://api.github.com/repos/jamespamplin/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamespamplin/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamespamplin/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamespamplin/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamespamplin/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/jamespamplin/frontend/languages","stargazers_url":"https://api.github.com/repos/jamespamplin/frontend/stargazers","contributors_url":"https://api.github.com/repos/jamespamplin/frontend/contributors","subscribers_url":"https://api.github.com/repos/jamespamplin/frontend/subscribers","subscription_url":"https://api.github.com/repos/jamespamplin/frontend/subscription","commits_url":"https://api.github.com/repos/jamespamplin/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamespamplin/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamespamplin/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamespamplin/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamespamplin/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/jamespamplin/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamespamplin/frontend/merges","archive_url":"https://api.github.com/repos/jamespamplin/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamespamplin/frontend/downloads","issues_url":"https://api.github.com/repos/jamespamplin/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/jamespamplin/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/jamespamplin/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/jamespamplin/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamespamplin/frontend/labels{/name}","releases_url":"https://api.github.com/repos/jamespamplin/frontend/releases{/id}","created_at":"2015-09-03T15:18:47Z","updated_at":"2015-09-03T15:19:08Z","pushed_at":"2015-09-03T15:21:35Z","git_url":"git://github.com/jamespamplin/frontend.git","ssh_url":"git@github.com:jamespamplin/frontend.git","clone_url":"https://github.com/jamespamplin/frontend.git","svn_url":"https://github.com/jamespamplin/frontend","homepage":"http://www.theguardian.com","size":508844,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"guardian:master","ref":"master","sha":"c63267c48e697f7747f69e7d7f46fe8452feae44","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":4370755,"name":"frontend","full_name":"guardian/frontend","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/frontend","description":"Source for theguardian.com","fork":false,"url":"https://api.github.com/repos/guardian/frontend","forks_url":"https://api.github.com/repos/guardian/frontend/forks","keys_url":"https://api.github.com/repos/guardian/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/frontend/teams","hooks_url":"https://api.github.com/repos/guardian/frontend/hooks","issue_events_url":"https://api.github.com/repos/guardian/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/frontend/events","assignees_url":"https://api.github.com/repos/guardian/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/frontend/tags","blobs_url":"https://api.github.com/repos/guardian/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/frontend/languages","stargazers_url":"https://api.github.com/repos/guardian/frontend/stargazers","contributors_url":"https://api.github.com/repos/guardian/frontend/contributors","subscribers_url":"https://api.github.com/repos/guardian/frontend/subscribers","subscription_url":"https://api.github.com/repos/guardian/frontend/subscription","commits_url":"https://api.github.com/repos/guardian/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/frontend/merges","archive_url":"https://api.github.com/repos/guardian/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/frontend/downloads","issues_url":"https://api.github.com/repos/guardian/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/frontend/labels{/name}","releases_url":"https://api.github.com/repos/guardian/frontend/releases{/id}","created_at":"2012-05-18T15:39:15Z","updated_at":"2015-09-03T08:08:08Z","pushed_at":"2015-09-03T15:00:40Z","git_url":"git://github.com/guardian/frontend.git","ssh_url":"git@github.com:guardian/frontend.git","clone_url":"https://github.com/guardian/frontend.git","svn_url":"https://github.com/guardian/frontend","homepage":"http://www.theguardian.com","size":508844,"stargazers_count":2918,"watchers_count":2918,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":277,"mirror_url":null,"open_issues_count":75,"forks":277,"open_issues":75,"watchers":2918,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/frontend/pulls/10387"},"html":{"href":"https://github.com/guardian/frontend/pull/10387"},"issue":{"href":"https://api.github.com/repos/guardian/frontend/issues/10387"},"comments":{"href":"https://api.github.com/repos/guardian/frontend/issues/10387/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/frontend/pulls/10387/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/frontend/pulls/10387/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/frontend/statuses/485703a580ad126388a32237ee92af65cfe53d42"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":2,"changed_files":1}}