{"action":"created","comment":{"url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/comments/56302411","id":56302411,"diff_hunk":"@@ -0,0 +1,161 @@\n+/*\n+ * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *\n+ * WSO2 Inc. licenses this file to you under the Apache License,\n+ * Version 2.0 (the \"License\"); you may not use this file except\n+ * in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+\n+package org.wso2.carbon.identity.oauth.event;\n+\n+import org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception;\n+import org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext;\n+import org.wso2.carbon.identity.oauth2.dto.OAuth2AccessTokenReqDTO;\n+import org.wso2.carbon.identity.oauth2.dto.OAuth2AccessTokenRespDTO;\n+import org.wso2.carbon.identity.oauth2.dto.OAuth2AuthorizeRespDTO;\n+import org.wso2.carbon.identity.oauth2.dto.OAuth2TokenValidationRequestDTO;\n+import org.wso2.carbon.identity.oauth2.dto.OAuth2TokenValidationResponseDTO;\n+import org.wso2.carbon.identity.oauth2.dto.OAuthRevocationRequestDTO;\n+import org.wso2.carbon.identity.oauth2.dto.OAuthRevocationResponseDTO;\n+import org.wso2.carbon.identity.oauth2.model.AccessTokenDO;\n+import org.wso2.carbon.identity.oauth2.model.RefreshTokenValidationDataDO;\n+import org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext;\n+\n+public interface OauthEventListener {","path":"components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/event/OauthEventListener.java","position":34,"original_position":34,"commit_id":"579425387e13eefa70455d9a0403ac8a08414b9f","original_commit_id":"579425387e13eefa70455d9a0403ac8a08414b9f","user":{"login":"godwinamila","id":8766778,"avatar_url":"https://avatars.githubusercontent.com/u/8766778?v=3","gravatar_id":"","url":"https://api.github.com/users/godwinamila","html_url":"https://github.com/godwinamila","followers_url":"https://api.github.com/users/godwinamila/followers","following_url":"https://api.github.com/users/godwinamila/following{/other_user}","gists_url":"https://api.github.com/users/godwinamila/gists{/gist_id}","starred_url":"https://api.github.com/users/godwinamila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godwinamila/subscriptions","organizations_url":"https://api.github.com/users/godwinamila/orgs","repos_url":"https://api.github.com/users/godwinamila/repos","events_url":"https://api.github.com/users/godwinamila/events{/privacy}","received_events_url":"https://api.github.com/users/godwinamila/received_events","type":"User","site_admin":false},"body":"Rename interface as OAuthEventListener","created_at":"2016-03-16T09:23:31Z","updated_at":"2016-03-16T09:23:31Z","html_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/9#discussion_r56302411","pull_request_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/comments/56302411"},"html":{"href":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/9#discussion_r56302411"},"pull_request":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/9","id":62509670,"html_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/9","diff_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/9.diff","patch_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/9.patch","issue_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues/9","number":9,"state":"open","locked":false,"title":"IDENTITY-4390 Adding capability to publish Oauth related events","user":{"login":"pulasthi7","id":1415573,"avatar_url":"https://avatars.githubusercontent.com/u/1415573?v=3","gravatar_id":"","url":"https://api.github.com/users/pulasthi7","html_url":"https://github.com/pulasthi7","followers_url":"https://api.github.com/users/pulasthi7/followers","following_url":"https://api.github.com/users/pulasthi7/following{/other_user}","gists_url":"https://api.github.com/users/pulasthi7/gists{/gist_id}","starred_url":"https://api.github.com/users/pulasthi7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulasthi7/subscriptions","organizations_url":"https://api.github.com/users/pulasthi7/orgs","repos_url":"https://api.github.com/users/pulasthi7/repos","events_url":"https://api.github.com/users/pulasthi7/events{/privacy}","received_events_url":"https://api.github.com/users/pulasthi7/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-11T08:06:50Z","updated_at":"2016-03-16T09:23:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"917623ff5acabbfb8dce3225f93e507f0f3707c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/9/commits","review_comments_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/9/comments","review_comment_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues/9/comments","statuses_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/statuses/579425387e13eefa70455d9a0403ac8a08414b9f","head":{"label":"pulasthi7:IDENTITY-4390","ref":"IDENTITY-4390","sha":"579425387e13eefa70455d9a0403ac8a08414b9f","user":{"login":"pulasthi7","id":1415573,"avatar_url":"https://avatars.githubusercontent.com/u/1415573?v=3","gravatar_id":"","url":"https://api.github.com/users/pulasthi7","html_url":"https://github.com/pulasthi7","followers_url":"https://api.github.com/users/pulasthi7/followers","following_url":"https://api.github.com/users/pulasthi7/following{/other_user}","gists_url":"https://api.github.com/users/pulasthi7/gists{/gist_id}","starred_url":"https://api.github.com/users/pulasthi7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulasthi7/subscriptions","organizations_url":"https://api.github.com/users/pulasthi7/orgs","repos_url":"https://api.github.com/users/pulasthi7/repos","events_url":"https://api.github.com/users/pulasthi7/events{/privacy}","received_events_url":"https://api.github.com/users/pulasthi7/received_events","type":"User","site_admin":false},"repo":{"id":53315893,"name":"identity-inbound-auth-oauth","full_name":"pulasthi7/identity-inbound-auth-oauth","owner":{"login":"pulasthi7","id":1415573,"avatar_url":"https://avatars.githubusercontent.com/u/1415573?v=3","gravatar_id":"","url":"https://api.github.com/users/pulasthi7","html_url":"https://github.com/pulasthi7","followers_url":"https://api.github.com/users/pulasthi7/followers","following_url":"https://api.github.com/users/pulasthi7/following{/other_user}","gists_url":"https://api.github.com/users/pulasthi7/gists{/gist_id}","starred_url":"https://api.github.com/users/pulasthi7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulasthi7/subscriptions","organizations_url":"https://api.github.com/users/pulasthi7/orgs","repos_url":"https://api.github.com/users/pulasthi7/repos","events_url":"https://api.github.com/users/pulasthi7/events{/privacy}","received_events_url":"https://api.github.com/users/pulasthi7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pulasthi7/identity-inbound-auth-oauth","description":"","fork":true,"url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth","forks_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/forks","keys_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/teams","hooks_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/hooks","issue_events_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/issues/events{/number}","events_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/events","assignees_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/assignees{/user}","branches_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/branches{/branch}","tags_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/tags","blobs_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/statuses/{sha}","languages_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/languages","stargazers_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/stargazers","contributors_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/contributors","subscribers_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/subscribers","subscription_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/subscription","commits_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/contents/{+path}","compare_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/merges","archive_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/downloads","issues_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/issues{/number}","pulls_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/pulls{/number}","milestones_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/milestones{/number}","notifications_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/labels{/name}","releases_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/releases{/id}","deployments_url":"https://api.github.com/repos/pulasthi7/identity-inbound-auth-oauth/deployments","created_at":"2016-03-07T10:13:50Z","updated_at":"2016-03-07T10:13:52Z","pushed_at":"2016-03-11T08:03:44Z","git_url":"git://github.com/pulasthi7/identity-inbound-auth-oauth.git","ssh_url":"git@github.com:pulasthi7/identity-inbound-auth-oauth.git","clone_url":"https://github.com/pulasthi7/identity-inbound-auth-oauth.git","svn_url":"https://github.com/pulasthi7/identity-inbound-auth-oauth","homepage":null,"size":433,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2-extensions:master","ref":"master","sha":"46508d74dbf810ea384c46feeb0054b8149c6819","user":{"login":"wso2-extensions","id":17171218,"avatar_url":"https://avatars.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":52758721,"name":"identity-inbound-auth-oauth","full_name":"wso2-extensions/identity-inbound-auth-oauth","owner":{"login":"wso2-extensions","id":17171218,"avatar_url":"https://avatars.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-inbound-auth-oauth","description":"","fork":false,"url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth","forks_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/forks","keys_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/teams","hooks_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/hooks","issue_events_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues/events{/number}","events_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/events","assignees_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/assignees{/user}","branches_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/branches{/branch}","tags_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/tags","blobs_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/languages","stargazers_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/stargazers","contributors_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/contributors","subscribers_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/subscribers","subscription_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/subscription","commits_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/contents/{+path}","compare_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/merges","archive_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/downloads","issues_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues{/number}","pulls_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/labels{/name}","releases_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/releases{/id}","deployments_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/deployments","created_at":"2016-02-29T02:41:06Z","updated_at":"2016-03-02T10:06:18Z","pushed_at":"2016-03-16T07:25:49Z","git_url":"git://github.com/wso2-extensions/identity-inbound-auth-oauth.git","ssh_url":"git@github.com:wso2-extensions/identity-inbound-auth-oauth.git","clone_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth.git","svn_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth","homepage":null,"size":511,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/9"},"html":{"href":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/9"},"issue":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues/9"},"comments":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/statuses/579425387e13eefa70455d9a0403ac8a08414b9f"}}}}