{"action":"created","comment":{"url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/comments/124878777","pull_request_review_id":47213040,"id":124878777,"diff_hunk":"@@ -195,13 +226,27 @@ private void handleSession(String token, String node, Session session) {\n                 LOGGER.error(\"Error occurred while closing session with node: \" + node, e);\n             }\n         } else {\n-            connectionHandler.addConnection(accessToken, node, serverNode);\n-            serverHandler.addSession(accessToken.getTenant(), accessToken.getDomain(), session);\n-            String msg = node + \" from \" + accessToken.getTenant() + \" connected to server node: \" + serverNode;\n-            LOGGER.info(msg);\n+            addConnection(node, session, accessToken, connectionHandler);\n         }\n     }\n \n+    private HttpURLConnection getHttpURLConnection(String connectedNode) throws IOException {\n+        LOGGER.info(\"Connected Node : \" + connectedNode);\n+        URL url = new URL(BROKER_PROTOCOL + \"://\" + connectedNode + \":\" + BROKER_PORT + \"/\" + STATUS_EP_NAME);\n+        HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n+        conn.setRequestMethod(\"GET\");\n+        conn.setRequestProperty(\"Accept\", \"application/json\");\n+        return conn;\n+    }","path":"components/org.wso2.carbon.identity.agent.outbound.server/src/main/java/org/wso2/carbon/identity/agent/outbound/server/UserStoreServerEndpoint.java","position":null,"original_position":77,"commit_id":"9eff6cabba7798bc34b639ac9d73cb60d9d22a8a","original_commit_id":"f6003aedda15f62827cbf058aab815e6333801e1","user":{"login":"danushkaf","id":5301668,"avatar_url":"https://avatars1.githubusercontent.com/u/5301668?v=3","gravatar_id":"","url":"https://api.github.com/users/danushkaf","html_url":"https://github.com/danushkaf","followers_url":"https://api.github.com/users/danushkaf/followers","following_url":"https://api.github.com/users/danushkaf/following{/other_user}","gists_url":"https://api.github.com/users/danushkaf/gists{/gist_id}","starred_url":"https://api.github.com/users/danushkaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danushkaf/subscriptions","organizations_url":"https://api.github.com/users/danushkaf/orgs","repos_url":"https://api.github.com/users/danushkaf/repos","events_url":"https://api.github.com/users/danushkaf/events{/privacy}","received_events_url":"https://api.github.com/users/danushkaf/received_events","type":"User","site_admin":false},"body":"https connection will need more complex things to be done. This is an internal ping. We can close http to outside and keep it internally. ","created_at":"2017-06-29T18:30:05Z","updated_at":"2017-06-29T18:30:05Z","html_url":"https://github.com/wso2-extensions/identity-agent-onprem-userstore/pull/29#discussion_r124878777","pull_request_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/comments/124878777"},"html":{"href":"https://github.com/wso2-extensions/identity-agent-onprem-userstore/pull/29#discussion_r124878777"},"pull_request":{"href":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/29","id":127848335,"html_url":"https://github.com/wso2-extensions/identity-agent-onprem-userstore/pull/29","diff_url":"https://github.com/wso2-extensions/identity-agent-onprem-userstore/pull/29.diff","patch_url":"https://github.com/wso2-extensions/identity-agent-onprem-userstore/pull/29.patch","issue_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/issues/29","number":29,"state":"open","locked":false,"title":"Fixing IDNCLOUD-281 and IDNCLOUD-275","user":{"login":"danushkaf","id":5301668,"avatar_url":"https://avatars1.githubusercontent.com/u/5301668?v=3","gravatar_id":"","url":"https://api.github.com/users/danushkaf","html_url":"https://github.com/danushkaf","followers_url":"https://api.github.com/users/danushkaf/followers","following_url":"https://api.github.com/users/danushkaf/following{/other_user}","gists_url":"https://api.github.com/users/danushkaf/gists{/gist_id}","starred_url":"https://api.github.com/users/danushkaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danushkaf/subscriptions","organizations_url":"https://api.github.com/users/danushkaf/orgs","repos_url":"https://api.github.com/users/danushkaf/repos","events_url":"https://api.github.com/users/danushkaf/events{/privacy}","received_events_url":"https://api.github.com/users/danushkaf/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-28T06:08:25Z","updated_at":"2017-06-29T18:30:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4986ccf8b6a61f79a6d155cc135b8dada45fce0","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/29/commits","review_comments_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/29/comments","review_comment_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/issues/29/comments","statuses_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/statuses/9eff6cabba7798bc34b639ac9d73cb60d9d22a8a","head":{"label":"danushkaf:master","ref":"master","sha":"9eff6cabba7798bc34b639ac9d73cb60d9d22a8a","user":{"login":"danushkaf","id":5301668,"avatar_url":"https://avatars1.githubusercontent.com/u/5301668?v=3","gravatar_id":"","url":"https://api.github.com/users/danushkaf","html_url":"https://github.com/danushkaf","followers_url":"https://api.github.com/users/danushkaf/followers","following_url":"https://api.github.com/users/danushkaf/following{/other_user}","gists_url":"https://api.github.com/users/danushkaf/gists{/gist_id}","starred_url":"https://api.github.com/users/danushkaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danushkaf/subscriptions","organizations_url":"https://api.github.com/users/danushkaf/orgs","repos_url":"https://api.github.com/users/danushkaf/repos","events_url":"https://api.github.com/users/danushkaf/events{/privacy}","received_events_url":"https://api.github.com/users/danushkaf/received_events","type":"User","site_admin":false},"repo":{"id":95405189,"name":"identity-agent-onprem-userstore","full_name":"danushkaf/identity-agent-onprem-userstore","owner":{"login":"danushkaf","id":5301668,"avatar_url":"https://avatars1.githubusercontent.com/u/5301668?v=3","gravatar_id":"","url":"https://api.github.com/users/danushkaf","html_url":"https://github.com/danushkaf","followers_url":"https://api.github.com/users/danushkaf/followers","following_url":"https://api.github.com/users/danushkaf/following{/other_user}","gists_url":"https://api.github.com/users/danushkaf/gists{/gist_id}","starred_url":"https://api.github.com/users/danushkaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danushkaf/subscriptions","organizations_url":"https://api.github.com/users/danushkaf/orgs","repos_url":"https://api.github.com/users/danushkaf/repos","events_url":"https://api.github.com/users/danushkaf/events{/privacy}","received_events_url":"https://api.github.com/users/danushkaf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danushkaf/identity-agent-onprem-userstore","description":null,"fork":true,"url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore","forks_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/forks","keys_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/teams","hooks_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/hooks","issue_events_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/issues/events{/number}","events_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/events","assignees_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/assignees{/user}","branches_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/branches{/branch}","tags_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/tags","blobs_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/statuses/{sha}","languages_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/languages","stargazers_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/stargazers","contributors_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/contributors","subscribers_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/subscribers","subscription_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/subscription","commits_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/contents/{+path}","compare_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/merges","archive_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/downloads","issues_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/issues{/number}","pulls_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/pulls{/number}","milestones_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/milestones{/number}","notifications_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/labels{/name}","releases_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/releases{/id}","deployments_url":"https://api.github.com/repos/danushkaf/identity-agent-onprem-userstore/deployments","created_at":"2017-06-26T03:30:21Z","updated_at":"2017-06-26T03:30:22Z","pushed_at":"2017-06-29T15:25:00Z","git_url":"git://github.com/danushkaf/identity-agent-onprem-userstore.git","ssh_url":"git@github.com:danushkaf/identity-agent-onprem-userstore.git","clone_url":"https://github.com/danushkaf/identity-agent-onprem-userstore.git","svn_url":"https://github.com/danushkaf/identity-agent-onprem-userstore","homepage":null,"size":490,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"wso2-extensions:master","ref":"master","sha":"f19440ef1bb1c89f3eb146c4f2a28cd7b7c21ac2","user":{"login":"wso2-extensions","id":17171218,"avatar_url":"https://avatars3.githubusercontent.com/u/17171218?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2-extensions","html_url":"https://github.com/wso2-extensions","followers_url":"https://api.github.com/users/wso2-extensions/followers","following_url":"https://api.github.com/users/wso2-extensions/following{/other_user}","gists_url":"https://api.github.com/users/wso2-extensions/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2-extensions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2-extensions/subscriptions","organizations_url":"https://api.github.com/users/wso2-extensions/orgs","repos_url":"https://api.github.com/users/wso2-extensions/repos","events_url":"https://api.github.com/users/wso2-extensions/events{/privacy}","received_events_url":"https://api.github.com/users/wso2-extensions/received_events","type":"Organization","site_admin":false},"repo":{"id":68784415,"name":"identity-agent-onprem-userstore","full_name":"wso2-extensions/identity-agent-onprem-userstore","owner":{"login":"wso2-extensions","id":17171218,"avatar_url":"https://avatars3.githubusercontent.com/u/17171218?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2-extensions","html_url":"https://github.com/wso2-extensions","followers_url":"https://api.github.com/users/wso2-extensions/followers","following_url":"https://api.github.com/users/wso2-extensions/following{/other_user}","gists_url":"https://api.github.com/users/wso2-extensions/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2-extensions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2-extensions/subscriptions","organizations_url":"https://api.github.com/users/wso2-extensions/orgs","repos_url":"https://api.github.com/users/wso2-extensions/repos","events_url":"https://api.github.com/users/wso2-extensions/events{/privacy}","received_events_url":"https://api.github.com/users/wso2-extensions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2-extensions/identity-agent-onprem-userstore","description":null,"fork":false,"url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore","forks_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/forks","keys_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/teams","hooks_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/hooks","issue_events_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/issues/events{/number}","events_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/events","assignees_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/assignees{/user}","branches_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/branches{/branch}","tags_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/tags","blobs_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/languages","stargazers_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/stargazers","contributors_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/contributors","subscribers_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/subscribers","subscription_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/subscription","commits_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/contents/{+path}","compare_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/merges","archive_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/downloads","issues_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/issues{/number}","pulls_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/labels{/name}","releases_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/releases{/id}","deployments_url":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/deployments","created_at":"2016-09-21T05:49:47Z","updated_at":"2016-09-30T06:22:08Z","pushed_at":"2017-06-29T15:25:02Z","git_url":"git://github.com/wso2-extensions/identity-agent-onprem-userstore.git","ssh_url":"git@github.com:wso2-extensions/identity-agent-onprem-userstore.git","clone_url":"https://github.com/wso2-extensions/identity-agent-onprem-userstore.git","svn_url":"https://github.com/wso2-extensions/identity-agent-onprem-userstore","homepage":null,"size":485,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/29"},"html":{"href":"https://github.com/wso2-extensions/identity-agent-onprem-userstore/pull/29"},"issue":{"href":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/issues/29"},"comments":{"href":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/wso2-extensions/identity-agent-onprem-userstore/statuses/9eff6cabba7798bc34b639ac9d73cb60d9d22a8a"}}}}
{"actor":{"display_login":"danushkaf"}}