payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/comments/333525161","pull_request_review_id":300074246,"id":333525161,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzMzUyNTE2MQ==","diff_hunk":"@@ -67,13 +67,16 @@ class Application < Rails::Application\n     config.x.slack_alerts_webhook = ENV['SLACK_ALERTS_WEBHOOK']\n     config.x.check_finanical_eligibility_host = ENV['CHECK_FINANCIAL_ELIGIBILITY_HOST']\n \n-    config.x.true_layer.client_id      = ENV['TRUE_LAYER_CLIENT_ID']\n-    config.x.true_layer.client_sercret = ENV['TRUE_LAYER_CLIENT_SECRET']\n-    config.x.true_layer.enable_mock    = ENV['TRUE_LAYER_ENABLE_MOCK'] == 'true'\n+    config.x.true_layer.client_id = ENV['TRUE_LAYER_CLIENT_ID']\n+    config.x.true_layer.client_secret = ENV['TRUE_LAYER_CLIENT_SECRET']\n+    config.x.true_layer.enable_mock = ENV['TRUE_LAYER_ENABLE_MOCK'] == 'true'\n \n     require Rails.root.join 'app/lib/govuk_elements_form_builder/form_builder'\n     ActionView::Base.default_form_builder = GovukElementsFormBuilder::FormBuilder\n \n+    config.x.google_oauth2.client_id      = ENV['GOOGLE_CLIENT_ID']\n+    config.x.google_oauth2.client_secret = ENV['GOOGLE_CLIENT_SECRET']","path":"config/application.rb","position":15,"original_position":15,"commit_id":"f886574e6fb8a233cbedee0d60e63b24f5fd6003","original_commit_id":"f886574e6fb8a233cbedee0d60e63b24f5fd6003","user":{"login":"JulienSansot","id":482806,"node_id":"MDQ6VXNlcjQ4MjgwNg==","avatar_url":"https://avatars3.githubusercontent.com/u/482806?v=4","gravatar_id":"","url":"https://api.github.com/users/JulienSansot","html_url":"https://github.com/JulienSansot","followers_url":"https://api.github.com/users/JulienSansot/followers","following_url":"https://api.github.com/users/JulienSansot/following{/other_user}","gists_url":"https://api.github.com/users/JulienSansot/gists{/gist_id}","starred_url":"https://api.github.com/users/JulienSansot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulienSansot/subscriptions","organizations_url":"https://api.github.com/users/JulienSansot/orgs","repos_url":"https://api.github.com/users/JulienSansot/repos","events_url":"https://api.github.com/users/JulienSansot/events{/privacy}","received_events_url":"https://api.github.com/users/JulienSansot/received_events","type":"User","site_admin":false},"body":"line 77 has an extra space it seems","created_at":"2019-10-10T13:39:37Z","updated_at":"2019-10-10T13:46:29Z","html_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/928#discussion_r333525161","pull_request_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/928","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/comments/333525161"},"html":{"href":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/928#discussion_r333525161"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/928"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/928","id":326713029,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI2NzEzMDI5","html_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/928","diff_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/928.diff","patch_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/928.patch","issue_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/928","number":928,"state":"open","locked":false,"title":"AP-966 Allow admin users to log in via google","user":{"login":"reggieb","id":213040,"node_id":"MDQ6VXNlcjIxMzA0MA==","avatar_url":"https://avatars0.githubusercontent.com/u/213040?v=4","gravatar_id":"","url":"https://api.github.com/users/reggieb","html_url":"https://github.com/reggieb","followers_url":"https://api.github.com/users/reggieb/followers","following_url":"https://api.github.com/users/reggieb/following{/other_user}","gists_url":"https://api.github.com/users/reggieb/gists{/gist_id}","starred_url":"https://api.github.com/users/reggieb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reggieb/subscriptions","organizations_url":"https://api.github.com/users/reggieb/orgs","repos_url":"https://api.github.com/users/reggieb/repos","events_url":"https://api.github.com/users/reggieb/events{/privacy}","received_events_url":"https://api.github.com/users/reggieb/received_events","type":"User","site_admin":false},"body":"## What\r\n\r\n[Jira AP-966](https://dsdmoj.atlassian.net/browse/AP-966)\r\n\r\nAdds a link on the Admin User log in screen, which allow a person to log in via their Google account rather than by using user name and password.\r\n\r\nThere was no design for this - so I've just added a very simple link to the page.\r\n\r\nNote, that for log in to work, there needs to be an `AdminUser` with the same email address as the google user. To add admin users go to `/support/admin_user`.\r\n\r\nMost of the work involved refactoring the True Layer login so that it would work alongside the Google login - Device omniauth is a little complicated if two models both use OAuth2. See the Devise Wiki entry [\"OmniAuth with multiple models\"](https://github.com/plataformatec/devise/wiki/OmniAuth-with-multiple-models)","created_at":"2019-10-10T12:37:12Z","updated_at":"2019-10-10T13:46:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2656a41399faf9566cfd278a06297ad8e267bee","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/928/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/928/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/928/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/statuses/f886574e6fb8a233cbedee0d60e63b24f5fd6003","head":{"label":"ministryofjustice:ap-966-allow-admin-users-to-log-in-via-google","ref":"ap-966-allow-admin-users-to-log-in-via-google","sha":"f886574e6fb8a233cbedee0d60e63b24f5fd6003","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":143924174,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5MjQxNzQ=","name":"laa-apply-for-legal-aid","full_name":"ministryofjustice/laa-apply-for-legal-aid","private":false,"owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid","description":"This api will provide various services to create a legal aid application","fork":false,"url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid","forks_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/forks","keys_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/events","assignees_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/merges","archive_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/deployments","created_at":"2018-08-07T20:34:48Z","updated_at":"2019-10-10T10:00:15Z","pushed_at":"2019-10-10T13:33:31Z","git_url":"git://github.com/ministryofjustice/laa-apply-for-legal-aid.git","ssh_url":"git@github.com:ministryofjustice/laa-apply-for-legal-aid.git","clone_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid.git","svn_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid","homepage":"","size":7171,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":17,"license":null,"forks":1,"open_issues":17,"watchers":6,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"7f79db5fa45238437774c86c8044e23df59cd002","user":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":143924174,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5MjQxNzQ=","name":"laa-apply-for-legal-aid","full_name":"ministryofjustice/laa-apply-for-legal-aid","private":false,"owner":{"login":"ministryofjustice","id":2203574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMDM1NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/2203574?v=4","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid","description":"This api will provide various services to create a legal aid application","fork":false,"url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid","forks_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/forks","keys_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/events","assignees_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/merges","archive_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/releases{/id}","deployments_url":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/deployments","created_at":"2018-08-07T20:34:48Z","updated_at":"2019-10-10T10:00:15Z","pushed_at":"2019-10-10T13:33:31Z","git_url":"git://github.com/ministryofjustice/laa-apply-for-legal-aid.git","ssh_url":"git@github.com:ministryofjustice/laa-apply-for-legal-aid.git","clone_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid.git","svn_url":"https://github.com/ministryofjustice/laa-apply-for-legal-aid","homepage":"","size":7171,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":17,"license":null,"forks":1,"open_issues":17,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/928"},"html":{"href":"https://github.com/ministryofjustice/laa-apply-for-legal-aid/pull/928"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/928"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/issues/928/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/928/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/pulls/928/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/laa-apply-for-legal-aid/statuses/f886574e6fb8a233cbedee0d60e63b24f5fd6003"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"JulienSansot"}}