{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments/108593488","pull_request_review_id":29634036,"id":108593488,"diff_hunk":"@@ -553,6 +553,66 @@\n         return tokenInfo;\n     }\n \n+    /**\n+     * This method is called to revoke an existing access token.\n+     *\n+     * @param tokenRequest AccessTokenRequest which encapsulates parameters sent from UI.\n+     * @throws KeyManagementException   Error while revoking the access token\n+     */\n+    @Override\n+    public void revokeAccessToken (AccessTokenRequest tokenRequest) throws KeyManagementException {\n+\n+        if (tokenRequest == null) {\n+            log.warn(\"No information available to generate Token.\");\n+            return;\n+        }\n+\n+        //TO-DO -ADD A CONFIG FOR REVOKE ENDPOINT\n+        String revokeEndpoint = getKeyManagerEndPoint(\"/oauth2/revoke\");\n+\n+        URL url;\n+        HttpURLConnection urlConn = null;\n+\n+        if (tokenRequest.getTokenToRevoke() != null && !\"\".equals(tokenRequest.getTokenToRevoke())) {","path":"components/apimgt/org.wso2.carbon.apimgt.core/src/main/java/org/wso2/carbon/apimgt/core/impl/LogInKeyManagerImpl.java","position":24,"original_position":24,"commit_id":"d38e53b7718b232a07eb578732876be7187487ef","original_commit_id":"d38e53b7718b232a07eb578732876be7187487ef","user":{"login":"shaniR","id":7173347,"avatar_url":"https://avatars0.githubusercontent.com/u/7173347?v=3","gravatar_id":"","url":"https://api.github.com/users/shaniR","html_url":"https://github.com/shaniR","followers_url":"https://api.github.com/users/shaniR/followers","following_url":"https://api.github.com/users/shaniR/following{/other_user}","gists_url":"https://api.github.com/users/shaniR/gists{/gist_id}","starred_url":"https://api.github.com/users/shaniR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaniR/subscriptions","organizations_url":"https://api.github.com/users/shaniR/orgs","repos_url":"https://api.github.com/users/shaniR/repos","events_url":"https://api.github.com/users/shaniR/events{/privacy}","received_events_url":"https://api.github.com/users/shaniR/received_events","type":"User","site_admin":false},"body":"Use isEmpty here.","created_at":"2017-03-29T05:24:32Z","updated_at":"2017-03-29T05:24:33Z","html_url":"https://github.com/wso2/carbon-apimgt/pull/3887#discussion_r108593488","pull_request_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/3887","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments/108593488"},"html":{"href":"https://github.com/wso2/carbon-apimgt/pull/3887#discussion_r108593488"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/3887"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/3887","id":113117696,"html_url":"https://github.com/wso2/carbon-apimgt/pull/3887","diff_url":"https://github.com/wso2/carbon-apimgt/pull/3887.diff","patch_url":"https://github.com/wso2/carbon-apimgt/pull/3887.patch","issue_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/3887","number":3887,"state":"open","locked":false,"title":"Access token revoke on log out","user":{"login":"Rajith90","id":12757270,"avatar_url":"https://avatars3.githubusercontent.com/u/12757270?v=3","gravatar_id":"","url":"https://api.github.com/users/Rajith90","html_url":"https://github.com/Rajith90","followers_url":"https://api.github.com/users/Rajith90/followers","following_url":"https://api.github.com/users/Rajith90/following{/other_user}","gists_url":"https://api.github.com/users/Rajith90/gists{/gist_id}","starred_url":"https://api.github.com/users/Rajith90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rajith90/subscriptions","organizations_url":"https://api.github.com/users/Rajith90/orgs","repos_url":"https://api.github.com/users/Rajith90/repos","events_url":"https://api.github.com/users/Rajith90/events{/privacy}","received_events_url":"https://api.github.com/users/Rajith90/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-29T04:50:35Z","updated_at":"2017-03-29T05:24:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a49708fa9dc959523d3b5fc0dd3ec8be499e5ba","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/3887/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/3887/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/3887/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-apimgt/statuses/d38e53b7718b232a07eb578732876be7187487ef","head":{"label":"Rajith90:new-C5","ref":"new-C5","sha":"d38e53b7718b232a07eb578732876be7187487ef","user":{"login":"Rajith90","id":12757270,"avatar_url":"https://avatars3.githubusercontent.com/u/12757270?v=3","gravatar_id":"","url":"https://api.github.com/users/Rajith90","html_url":"https://github.com/Rajith90","followers_url":"https://api.github.com/users/Rajith90/followers","following_url":"https://api.github.com/users/Rajith90/following{/other_user}","gists_url":"https://api.github.com/users/Rajith90/gists{/gist_id}","starred_url":"https://api.github.com/users/Rajith90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rajith90/subscriptions","organizations_url":"https://api.github.com/users/Rajith90/orgs","repos_url":"https://api.github.com/users/Rajith90/repos","events_url":"https://api.github.com/users/Rajith90/events{/privacy}","received_events_url":"https://api.github.com/users/Rajith90/received_events","type":"User","site_admin":false},"repo":{"id":57181080,"name":"carbon-apimgt","full_name":"Rajith90/carbon-apimgt","owner":{"login":"Rajith90","id":12757270,"avatar_url":"https://avatars3.githubusercontent.com/u/12757270?v=3","gravatar_id":"","url":"https://api.github.com/users/Rajith90","html_url":"https://github.com/Rajith90","followers_url":"https://api.github.com/users/Rajith90/followers","following_url":"https://api.github.com/users/Rajith90/following{/other_user}","gists_url":"https://api.github.com/users/Rajith90/gists{/gist_id}","starred_url":"https://api.github.com/users/Rajith90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rajith90/subscriptions","organizations_url":"https://api.github.com/users/Rajith90/orgs","repos_url":"https://api.github.com/users/Rajith90/repos","events_url":"https://api.github.com/users/Rajith90/events{/privacy}","received_events_url":"https://api.github.com/users/Rajith90/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rajith90/carbon-apimgt","description":null,"fork":true,"url":"https://api.github.com/repos/Rajith90/carbon-apimgt","forks_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/forks","keys_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/teams","hooks_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/hooks","issue_events_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/issues/events{/number}","events_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/events","assignees_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/assignees{/user}","branches_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/branches{/branch}","tags_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/tags","blobs_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/statuses/{sha}","languages_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/languages","stargazers_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/stargazers","contributors_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/contributors","subscribers_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/subscribers","subscription_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/subscription","commits_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/contents/{+path}","compare_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/merges","archive_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/downloads","issues_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/issues{/number}","pulls_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/pulls{/number}","milestones_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/milestones{/number}","notifications_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/labels{/name}","releases_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/releases{/id}","deployments_url":"https://api.github.com/repos/Rajith90/carbon-apimgt/deployments","created_at":"2016-04-27T03:38:08Z","updated_at":"2016-04-27T03:38:25Z","pushed_at":"2017-03-29T04:48:36Z","git_url":"git://github.com/Rajith90/carbon-apimgt.git","ssh_url":"git@github.com:Rajith90/carbon-apimgt.git","clone_url":"https://github.com/Rajith90/carbon-apimgt.git","svn_url":"https://github.com/Rajith90/carbon-apimgt","homepage":null,"size":168275,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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:C5","ref":"C5","sha":"d0629fd8d2e4089cd62ea0ec34acf02e18ed1230","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars0.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":17201744,"name":"carbon-apimgt","full_name":"wso2/carbon-apimgt","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars0.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/carbon-apimgt","description":null,"fork":false,"url":"https://api.github.com/repos/wso2/carbon-apimgt","forks_url":"https://api.github.com/repos/wso2/carbon-apimgt/forks","keys_url":"https://api.github.com/repos/wso2/carbon-apimgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-apimgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-apimgt/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-apimgt/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-apimgt/events","assignees_url":"https://api.github.com/repos/wso2/carbon-apimgt/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-apimgt/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-apimgt/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-apimgt/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-apimgt/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-apimgt/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-apimgt/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-apimgt/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-apimgt/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-apimgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-apimgt/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-apimgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-apimgt/merges","archive_url":"https://api.github.com/repos/wso2/carbon-apimgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-apimgt/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-apimgt/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-apimgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-apimgt/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-apimgt/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/carbon-apimgt/deployments","created_at":"2014-02-26T06:46:48Z","updated_at":"2017-02-27T01:08:36Z","pushed_at":"2017-03-29T04:50:36Z","git_url":"git://github.com/wso2/carbon-apimgt.git","ssh_url":"git@github.com:wso2/carbon-apimgt.git","clone_url":"https://github.com/wso2/carbon-apimgt.git","svn_url":"https://github.com/wso2/carbon-apimgt","homepage":null,"size":174501,"stargazers_count":23,"watchers_count":23,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":231,"mirror_url":null,"open_issues_count":22,"forks":231,"open_issues":22,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/3887"},"html":{"href":"https://github.com/wso2/carbon-apimgt/pull/3887"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/issues/3887"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/issues/3887/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/3887/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/3887/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/statuses/d38e53b7718b232a07eb578732876be7187487ef"}}}}
{"actor":{"display_login":"shaniR"}}