payload: {"action":"created","comment":{"url":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/comments/300441330","pull_request_review_id":258098096,"id":300441330,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMDQ0MTMzMA==","diff_hunk":"@@ -100,4 +102,97 @@ def passes_invite_reqs\n     invitation = check_user_invited(\"\", session[:invite_token], @user_domain)\n     invitation[:present]\n   end\n+\n+  def process_external_signin\n+    @user_exists = check_user_exists\n+\n+    # If using invitation registration method, make sure user is invited\n+    return redirect_to root_path, flash: { alert: I18n.t(\"registration.invite.no_invite\") } unless passes_invite_reqs\n+\n+    @auth['info']['customer'] = parse_user_domain(request.host) if Rails.configuration.loadbalanced_configuration\n+    user = User.from_external_provider(@auth)\n+\n+    # Add pending role if approval method and is a new user\n+    if approval_registration && !@user_exists\n+      user.add_role :pending\n+\n+      # Inform admins that a user signed up if emails are turned on\n+      send_approval_user_signup_email(user) if Rails.configuration.enable_email_verification\n+\n+      return redirect_to root_path, flash: { success: I18n.t(\"registration.approval.signup\") }\n+    end\n+\n+    send_invite_user_signup_email(user) if Rails.configuration.enable_email_verification &&\n+                                           invite_registration && !@user_exists\n+\n+    login(user)\n+  end\n+\n+  def send_ldap_request","path":"app/controllers/sessions_controller.rb","position":94,"original_position":94,"commit_id":"00543ce985ad20ce14023497db8223877090891f","original_commit_id":"00543ce985ad20ce14023497db8223877090891f","user":{"login":"farhatahmad","id":35435341,"node_id":"MDQ6VXNlcjM1NDM1MzQx","avatar_url":"https://avatars2.githubusercontent.com/u/35435341?v=4","gravatar_id":"","url":"https://api.github.com/users/farhatahmad","html_url":"https://github.com/farhatahmad","followers_url":"https://api.github.com/users/farhatahmad/followers","following_url":"https://api.github.com/users/farhatahmad/following{/other_user}","gists_url":"https://api.github.com/users/farhatahmad/gists{/gist_id}","starred_url":"https://api.github.com/users/farhatahmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farhatahmad/subscriptions","organizations_url":"https://api.github.com/users/farhatahmad/orgs","repos_url":"https://api.github.com/users/farhatahmad/repos","events_url":"https://api.github.com/users/farhatahmad/events{/privacy}","received_events_url":"https://api.github.com/users/farhatahmad/received_events","type":"User","site_admin":false},"body":"I'm not quite sure that this is the right place to put this code. Maybe move it into a concern? or some sort of module?","created_at":"2019-07-04T15:18:21Z","updated_at":"2019-07-04T15:18:22Z","html_url":"https://github.com/bigbluebutton/greenlight/pull/606#discussion_r300441330","pull_request_url":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/606","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/comments/300441330"},"html":{"href":"https://github.com/bigbluebutton/greenlight/pull/606#discussion_r300441330"},"pull_request":{"href":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/606"}}},"pull_request":{"url":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/606","id":294295514,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk0Mjk1NTE0","html_url":"https://github.com/bigbluebutton/greenlight/pull/606","diff_url":"https://github.com/bigbluebutton/greenlight/pull/606.diff","patch_url":"https://github.com/bigbluebutton/greenlight/pull/606.patch","issue_url":"https://api.github.com/repos/bigbluebutton/greenlight/issues/606","number":606,"state":"open","locked":false,"title":"GRN2-30: Add custom ldap signin","user":{"login":"shawn-higgins1","id":23224097,"node_id":"MDQ6VXNlcjIzMjI0MDk3","avatar_url":"https://avatars3.githubusercontent.com/u/23224097?v=4","gravatar_id":"","url":"https://api.github.com/users/shawn-higgins1","html_url":"https://github.com/shawn-higgins1","followers_url":"https://api.github.com/users/shawn-higgins1/followers","following_url":"https://api.github.com/users/shawn-higgins1/following{/other_user}","gists_url":"https://api.github.com/users/shawn-higgins1/gists{/gist_id}","starred_url":"https://api.github.com/users/shawn-higgins1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawn-higgins1/subscriptions","organizations_url":"https://api.github.com/users/shawn-higgins1/orgs","repos_url":"https://api.github.com/users/shawn-higgins1/repos","events_url":"https://api.github.com/users/shawn-higgins1/events{/privacy}","received_events_url":"https://api.github.com/users/shawn-higgins1/received_events","type":"User","site_admin":false},"body":"Creates a custom sign in page for LDAP and allows LDAP auth to be used in conjunction with other providers","created_at":"2019-07-03T19:08:49Z","updated_at":"2019-07-04T15:18:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9075299c8ac9e61e0f5880671a91ea98f69241c7","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jfederico","id":578359,"node_id":"MDQ6VXNlcjU3ODM1OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/578359?v=4","gravatar_id":"","url":"https://api.github.com/users/jfederico","html_url":"https://github.com/jfederico","followers_url":"https://api.github.com/users/jfederico/followers","following_url":"https://api.github.com/users/jfederico/following{/other_user}","gists_url":"https://api.github.com/users/jfederico/gists{/gist_id}","starred_url":"https://api.github.com/users/jfederico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfederico/subscriptions","organizations_url":"https://api.github.com/users/jfederico/orgs","repos_url":"https://api.github.com/users/jfederico/repos","events_url":"https://api.github.com/users/jfederico/events{/privacy}","received_events_url":"https://api.github.com/users/jfederico/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1404891011,"node_id":"MDU6TGFiZWwxNDA0ODkxMDEx","url":"https://api.github.com/repos/bigbluebutton/greenlight/labels/v2.2","name":"v2.2","color":"180870","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/606/commits","review_comments_url":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/606/comments","review_comment_url":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bigbluebutton/greenlight/issues/606/comments","statuses_url":"https://api.github.com/repos/bigbluebutton/greenlight/statuses/00543ce985ad20ce14023497db8223877090891f","head":{"label":"shawn-higgins1:add_ldap_to_multitenant","ref":"add_ldap_to_multitenant","sha":"00543ce985ad20ce14023497db8223877090891f","user":{"login":"shawn-higgins1","id":23224097,"node_id":"MDQ6VXNlcjIzMjI0MDk3","avatar_url":"https://avatars3.githubusercontent.com/u/23224097?v=4","gravatar_id":"","url":"https://api.github.com/users/shawn-higgins1","html_url":"https://github.com/shawn-higgins1","followers_url":"https://api.github.com/users/shawn-higgins1/followers","following_url":"https://api.github.com/users/shawn-higgins1/following{/other_user}","gists_url":"https://api.github.com/users/shawn-higgins1/gists{/gist_id}","starred_url":"https://api.github.com/users/shawn-higgins1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawn-higgins1/subscriptions","organizations_url":"https://api.github.com/users/shawn-higgins1/orgs","repos_url":"https://api.github.com/users/shawn-higgins1/repos","events_url":"https://api.github.com/users/shawn-higgins1/events{/privacy}","received_events_url":"https://api.github.com/users/shawn-higgins1/received_events","type":"User","site_admin":false},"repo":{"id":185241401,"node_id":"MDEwOlJlcG9zaXRvcnkxODUyNDE0MDE=","name":"greenlight","full_name":"shawn-higgins1/greenlight","private":false,"owner":{"login":"shawn-higgins1","id":23224097,"node_id":"MDQ6VXNlcjIzMjI0MDk3","avatar_url":"https://avatars3.githubusercontent.com/u/23224097?v=4","gravatar_id":"","url":"https://api.github.com/users/shawn-higgins1","html_url":"https://github.com/shawn-higgins1","followers_url":"https://api.github.com/users/shawn-higgins1/followers","following_url":"https://api.github.com/users/shawn-higgins1/following{/other_user}","gists_url":"https://api.github.com/users/shawn-higgins1/gists{/gist_id}","starred_url":"https://api.github.com/users/shawn-higgins1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawn-higgins1/subscriptions","organizations_url":"https://api.github.com/users/shawn-higgins1/orgs","repos_url":"https://api.github.com/users/shawn-higgins1/repos","events_url":"https://api.github.com/users/shawn-higgins1/events{/privacy}","received_events_url":"https://api.github.com/users/shawn-higgins1/received_events","type":"User","site_admin":false},"html_url":"https://github.com/shawn-higgins1/greenlight","description":"A really simple end-user interface for your BigBlueButton server.","fork":true,"url":"https://api.github.com/repos/shawn-higgins1/greenlight","forks_url":"https://api.github.com/repos/shawn-higgins1/greenlight/forks","keys_url":"https://api.github.com/repos/shawn-higgins1/greenlight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shawn-higgins1/greenlight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shawn-higgins1/greenlight/teams","hooks_url":"https://api.github.com/repos/shawn-higgins1/greenlight/hooks","issue_events_url":"https://api.github.com/repos/shawn-higgins1/greenlight/issues/events{/number}","events_url":"https://api.github.com/repos/shawn-higgins1/greenlight/events","assignees_url":"https://api.github.com/repos/shawn-higgins1/greenlight/assignees{/user}","branches_url":"https://api.github.com/repos/shawn-higgins1/greenlight/branches{/branch}","tags_url":"https://api.github.com/repos/shawn-higgins1/greenlight/tags","blobs_url":"https://api.github.com/repos/shawn-higgins1/greenlight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shawn-higgins1/greenlight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shawn-higgins1/greenlight/git/refs{/sha}","trees_url":"https://api.github.com/repos/shawn-higgins1/greenlight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shawn-higgins1/greenlight/statuses/{sha}","languages_url":"https://api.github.com/repos/shawn-higgins1/greenlight/languages","stargazers_url":"https://api.github.com/repos/shawn-higgins1/greenlight/stargazers","contributors_url":"https://api.github.com/repos/shawn-higgins1/greenlight/contributors","subscribers_url":"https://api.github.com/repos/shawn-higgins1/greenlight/subscribers","subscription_url":"https://api.github.com/repos/shawn-higgins1/greenlight/subscription","commits_url":"https://api.github.com/repos/shawn-higgins1/greenlight/commits{/sha}","git_commits_url":"https://api.github.com/repos/shawn-higgins1/greenlight/git/commits{/sha}","comments_url":"https://api.github.com/repos/shawn-higgins1/greenlight/comments{/number}","issue_comment_url":"https://api.github.com/repos/shawn-higgins1/greenlight/issues/comments{/number}","contents_url":"https://api.github.com/repos/shawn-higgins1/greenlight/contents/{+path}","compare_url":"https://api.github.com/repos/shawn-higgins1/greenlight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shawn-higgins1/greenlight/merges","archive_url":"https://api.github.com/repos/shawn-higgins1/greenlight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shawn-higgins1/greenlight/downloads","issues_url":"https://api.github.com/repos/shawn-higgins1/greenlight/issues{/number}","pulls_url":"https://api.github.com/repos/shawn-higgins1/greenlight/pulls{/number}","milestones_url":"https://api.github.com/repos/shawn-higgins1/greenlight/milestones{/number}","notifications_url":"https://api.github.com/repos/shawn-higgins1/greenlight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shawn-higgins1/greenlight/labels{/name}","releases_url":"https://api.github.com/repos/shawn-higgins1/greenlight/releases{/id}","deployments_url":"https://api.github.com/repos/shawn-higgins1/greenlight/deployments","created_at":"2019-05-06T17:25:43Z","updated_at":"2019-06-25T16:50:19Z","pushed_at":"2019-07-03T19:08:08Z","git_url":"git://github.com/shawn-higgins1/greenlight.git","ssh_url":"git@github.com:shawn-higgins1/greenlight.git","clone_url":"https://github.com/shawn-higgins1/greenlight.git","svn_url":"https://github.com/shawn-higgins1/greenlight","homepage":"","size":4150,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bigbluebutton:v2.2-alpha","ref":"v2.2-alpha","sha":"0fdc8831e794ea58c09b8aa32f3d77f127325347","user":{"login":"bigbluebutton","id":230228,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDIyOA==","avatar_url":"https://avatars0.githubusercontent.com/u/230228?v=4","gravatar_id":"","url":"https://api.github.com/users/bigbluebutton","html_url":"https://github.com/bigbluebutton","followers_url":"https://api.github.com/users/bigbluebutton/followers","following_url":"https://api.github.com/users/bigbluebutton/following{/other_user}","gists_url":"https://api.github.com/users/bigbluebutton/gists{/gist_id}","starred_url":"https://api.github.com/users/bigbluebutton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigbluebutton/subscriptions","organizations_url":"https://api.github.com/users/bigbluebutton/orgs","repos_url":"https://api.github.com/users/bigbluebutton/repos","events_url":"https://api.github.com/users/bigbluebutton/events{/privacy}","received_events_url":"https://api.github.com/users/bigbluebutton/received_events","type":"Organization","site_admin":false},"repo":{"id":70830890,"node_id":"MDEwOlJlcG9zaXRvcnk3MDgzMDg5MA==","name":"greenlight","full_name":"bigbluebutton/greenlight","private":false,"owner":{"login":"bigbluebutton","id":230228,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDIyOA==","avatar_url":"https://avatars0.githubusercontent.com/u/230228?v=4","gravatar_id":"","url":"https://api.github.com/users/bigbluebutton","html_url":"https://github.com/bigbluebutton","followers_url":"https://api.github.com/users/bigbluebutton/followers","following_url":"https://api.github.com/users/bigbluebutton/following{/other_user}","gists_url":"https://api.github.com/users/bigbluebutton/gists{/gist_id}","starred_url":"https://api.github.com/users/bigbluebutton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigbluebutton/subscriptions","organizations_url":"https://api.github.com/users/bigbluebutton/orgs","repos_url":"https://api.github.com/users/bigbluebutton/repos","events_url":"https://api.github.com/users/bigbluebutton/events{/privacy}","received_events_url":"https://api.github.com/users/bigbluebutton/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bigbluebutton/greenlight","description":"A really simple end-user interface for your BigBlueButton server.","fork":false,"url":"https://api.github.com/repos/bigbluebutton/greenlight","forks_url":"https://api.github.com/repos/bigbluebutton/greenlight/forks","keys_url":"https://api.github.com/repos/bigbluebutton/greenlight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bigbluebutton/greenlight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bigbluebutton/greenlight/teams","hooks_url":"https://api.github.com/repos/bigbluebutton/greenlight/hooks","issue_events_url":"https://api.github.com/repos/bigbluebutton/greenlight/issues/events{/number}","events_url":"https://api.github.com/repos/bigbluebutton/greenlight/events","assignees_url":"https://api.github.com/repos/bigbluebutton/greenlight/assignees{/user}","branches_url":"https://api.github.com/repos/bigbluebutton/greenlight/branches{/branch}","tags_url":"https://api.github.com/repos/bigbluebutton/greenlight/tags","blobs_url":"https://api.github.com/repos/bigbluebutton/greenlight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bigbluebutton/greenlight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bigbluebutton/greenlight/git/refs{/sha}","trees_url":"https://api.github.com/repos/bigbluebutton/greenlight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bigbluebutton/greenlight/statuses/{sha}","languages_url":"https://api.github.com/repos/bigbluebutton/greenlight/languages","stargazers_url":"https://api.github.com/repos/bigbluebutton/greenlight/stargazers","contributors_url":"https://api.github.com/repos/bigbluebutton/greenlight/contributors","subscribers_url":"https://api.github.com/repos/bigbluebutton/greenlight/subscribers","subscription_url":"https://api.github.com/repos/bigbluebutton/greenlight/subscription","commits_url":"https://api.github.com/repos/bigbluebutton/greenlight/commits{/sha}","git_commits_url":"https://api.github.com/repos/bigbluebutton/greenlight/git/commits{/sha}","comments_url":"https://api.github.com/repos/bigbluebutton/greenlight/comments{/number}","issue_comment_url":"https://api.github.com/repos/bigbluebutton/greenlight/issues/comments{/number}","contents_url":"https://api.github.com/repos/bigbluebutton/greenlight/contents/{+path}","compare_url":"https://api.github.com/repos/bigbluebutton/greenlight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bigbluebutton/greenlight/merges","archive_url":"https://api.github.com/repos/bigbluebutton/greenlight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bigbluebutton/greenlight/downloads","issues_url":"https://api.github.com/repos/bigbluebutton/greenlight/issues{/number}","pulls_url":"https://api.github.com/repos/bigbluebutton/greenlight/pulls{/number}","milestones_url":"https://api.github.com/repos/bigbluebutton/greenlight/milestones{/number}","notifications_url":"https://api.github.com/repos/bigbluebutton/greenlight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bigbluebutton/greenlight/labels{/name}","releases_url":"https://api.github.com/repos/bigbluebutton/greenlight/releases{/id}","deployments_url":"https://api.github.com/repos/bigbluebutton/greenlight/deployments","created_at":"2016-10-13T17:25:28Z","updated_at":"2019-06-28T20:40:24Z","pushed_at":"2019-07-03T19:08:50Z","git_url":"git://github.com/bigbluebutton/greenlight.git","ssh_url":"git@github.com:bigbluebutton/greenlight.git","clone_url":"https://github.com/bigbluebutton/greenlight.git","svn_url":"https://github.com/bigbluebutton/greenlight","homepage":"","size":4084,"stargazers_count":63,"watchers_count":63,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":175,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":30,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0","node_id":"MDc6TGljZW5zZTEy"},"forks":175,"open_issues":30,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/606"},"html":{"href":"https://github.com/bigbluebutton/greenlight/pull/606"},"issue":{"href":"https://api.github.com/repos/bigbluebutton/greenlight/issues/606"},"comments":{"href":"https://api.github.com/repos/bigbluebutton/greenlight/issues/606/comments"},"review_comments":{"href":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/606/comments"},"review_comment":{"href":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bigbluebutton/greenlight/pulls/606/commits"},"statuses":{"href":"https://api.github.com/repos/bigbluebutton/greenlight/statuses/00543ce985ad20ce14023497db8223877090891f"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"farhatahmad"}}