{"action":"created","comment":{"url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/comments/66716315","id":66716315,"diff_hunk":"@@ -0,0 +1,96 @@\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.oidc.dcr.internal;\n+\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.osgi.service.component.ComponentContext;\n+import org.wso2.carbon.identity.application.authentication.framework.inbound.HttpIdentityRequestFactory;\n+import org.wso2.carbon.identity.application.authentication.framework.inbound.HttpIdentityResponseFactory;\n+import org.wso2.carbon.identity.application.authentication.framework.inbound.IdentityProcessor;\n+import org.wso2.carbon.identity.application.mgt.ApplicationManagementService;\n+import org.wso2.carbon.identity.oidc.dcr.factory.HttpOIDCRegistrationResponseFactory;\n+import org.wso2.carbon.identity.oidc.dcr.factory.OIDCRegistrationRequestFactory;\n+import org.wso2.carbon.identity.oidc.dcr.processor.OIDCDCRProcessor;\n+\n+/**\n+ * @scr.component name=\"identity.oidc.dcr\" immediate=\"true\"\n+ * @scr.reference name=\"identity.application.management.service\"\n+ * interface=\"org.wso2.carbon.identity.application.mgt.ApplicationManagementService\"\n+ * cardinality=\"1..1\" policy=\"dynamic\"\n+ * bind=\"setApplicationManagementService\" unbind=\"unsetApplicationManagementService\"\n+ */\n+\n+public class OIDCDCRServiceComponent {\n+\n+    private static final Log log = LogFactory.getLog(OIDCDCRServiceComponent.class);\n+\n+    @SuppressWarnings(\"unused\")\n+    protected void activate(ComponentContext componentContext) {\n+        try {\n+            System.out.print(\"DDD\");\n+\n+            componentContext.getBundleContext().registerService(HttpIdentityRequestFactory.class.getName(),\n+                                                                new OIDCRegistrationRequestFactory(), null);\n+            componentContext.getBundleContext().registerService(IdentityProcessor.class.getName(),\n+                                                                new OIDCDCRProcessor(), null);\n+            componentContext.getBundleContext().registerService(HttpIdentityResponseFactory.class.getName(),\n+                                                                new HttpOIDCRegistrationResponseFactory(), null);\n+\n+\n+        } catch (Exception ee) {\n+            ee.printStackTrace();","path":"components/org.wso2.carbon.identity.oidc.dcr/src/main/java/org/wso2/carbon/identity/oidc/dcr/internal/OIDCDCRServiceComponent.java","position":58,"original_position":58,"commit_id":"d6fa12a5f9354a0ab3a96c4036db8daf77d039a9","original_commit_id":"d6fa12a5f9354a0ab3a96c4036db8daf77d039a9","user":{"login":"thanujalk","id":1498339,"avatar_url":"https://avatars.githubusercontent.com/u/1498339?v=3","gravatar_id":"","url":"https://api.github.com/users/thanujalk","html_url":"https://github.com/thanujalk","followers_url":"https://api.github.com/users/thanujalk/followers","following_url":"https://api.github.com/users/thanujalk/following{/other_user}","gists_url":"https://api.github.com/users/thanujalk/gists{/gist_id}","starred_url":"https://api.github.com/users/thanujalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanujalk/subscriptions","organizations_url":"https://api.github.com/users/thanujalk/orgs","repos_url":"https://api.github.com/users/thanujalk/repos","events_url":"https://api.github.com/users/thanujalk/events{/privacy}","received_events_url":"https://api.github.com/users/thanujalk/received_events","type":"User","site_admin":false},"body":"log the error","created_at":"2016-06-12T05:23:32Z","updated_at":"2016-06-12T05:23:32Z","html_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/81#discussion_r66716315","pull_request_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/comments/66716315"},"html":{"href":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/81#discussion_r66716315"},"pull_request":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/81","id":73484569,"html_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/81","diff_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/81.diff","patch_url":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/81.patch","issue_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues/81","number":81,"state":"open","locked":false,"title":"Oauth DCR","user":{"login":"harsha1979","id":2236308,"avatar_url":"https://avatars.githubusercontent.com/u/2236308?v=3","gravatar_id":"","url":"https://api.github.com/users/harsha1979","html_url":"https://github.com/harsha1979","followers_url":"https://api.github.com/users/harsha1979/followers","following_url":"https://api.github.com/users/harsha1979/following{/other_user}","gists_url":"https://api.github.com/users/harsha1979/gists{/gist_id}","starred_url":"https://api.github.com/users/harsha1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harsha1979/subscriptions","organizations_url":"https://api.github.com/users/harsha1979/orgs","repos_url":"https://api.github.com/users/harsha1979/repos","events_url":"https://api.github.com/users/harsha1979/events{/privacy}","received_events_url":"https://api.github.com/users/harsha1979/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-12T02:59:48Z","updated_at":"2016-06-12T05:23:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec60b0af3f8d5c7bb8916786c30d7ffb0a48156c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/81/commits","review_comments_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/81/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/81/comments","statuses_url":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/statuses/d6fa12a5f9354a0ab3a96c4036db8daf77d039a9","head":{"label":"harsha1979:OAuth-DCR","ref":"OAuth-DCR","sha":"d6fa12a5f9354a0ab3a96c4036db8daf77d039a9","user":{"login":"harsha1979","id":2236308,"avatar_url":"https://avatars.githubusercontent.com/u/2236308?v=3","gravatar_id":"","url":"https://api.github.com/users/harsha1979","html_url":"https://github.com/harsha1979","followers_url":"https://api.github.com/users/harsha1979/followers","following_url":"https://api.github.com/users/harsha1979/following{/other_user}","gists_url":"https://api.github.com/users/harsha1979/gists{/gist_id}","starred_url":"https://api.github.com/users/harsha1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harsha1979/subscriptions","organizations_url":"https://api.github.com/users/harsha1979/orgs","repos_url":"https://api.github.com/users/harsha1979/repos","events_url":"https://api.github.com/users/harsha1979/events{/privacy}","received_events_url":"https://api.github.com/users/harsha1979/received_events","type":"User","site_admin":false},"repo":{"id":59986236,"name":"identity-inbound-auth-oauth","full_name":"harsha1979/identity-inbound-auth-oauth","owner":{"login":"harsha1979","id":2236308,"avatar_url":"https://avatars.githubusercontent.com/u/2236308?v=3","gravatar_id":"","url":"https://api.github.com/users/harsha1979","html_url":"https://github.com/harsha1979","followers_url":"https://api.github.com/users/harsha1979/followers","following_url":"https://api.github.com/users/harsha1979/following{/other_user}","gists_url":"https://api.github.com/users/harsha1979/gists{/gist_id}","starred_url":"https://api.github.com/users/harsha1979/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harsha1979/subscriptions","organizations_url":"https://api.github.com/users/harsha1979/orgs","repos_url":"https://api.github.com/users/harsha1979/repos","events_url":"https://api.github.com/users/harsha1979/events{/privacy}","received_events_url":"https://api.github.com/users/harsha1979/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harsha1979/identity-inbound-auth-oauth","description":"","fork":true,"url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth","forks_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/forks","keys_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/teams","hooks_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/hooks","issue_events_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/issues/events{/number}","events_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/events","assignees_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/assignees{/user}","branches_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/branches{/branch}","tags_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/tags","blobs_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/git/refs{/sha}","trees_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/statuses/{sha}","languages_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/languages","stargazers_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/stargazers","contributors_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/contributors","subscribers_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/subscribers","subscription_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/subscription","commits_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/commits{/sha}","git_commits_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/git/commits{/sha}","comments_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/comments{/number}","issue_comment_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/issues/comments{/number}","contents_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/contents/{+path}","compare_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/merges","archive_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/downloads","issues_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/issues{/number}","pulls_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/pulls{/number}","milestones_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/milestones{/number}","notifications_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/labels{/name}","releases_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/releases{/id}","deployments_url":"https://api.github.com/repos/harsha1979/identity-inbound-auth-oauth/deployments","created_at":"2016-05-30T06:36:34Z","updated_at":"2016-05-30T06:36:35Z","pushed_at":"2016-06-12T02:58:42Z","git_url":"git://github.com/harsha1979/identity-inbound-auth-oauth.git","ssh_url":"git@github.com:harsha1979/identity-inbound-auth-oauth.git","clone_url":"https://github.com/harsha1979/identity-inbound-auth-oauth.git","svn_url":"https://github.com/harsha1979/identity-inbound-auth-oauth","homepage":null,"size":985,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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":"2184b7d1573133e22d6fa23a6888638d98755fc4","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-06-12T02:59:48Z","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":859,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":1,"forks":20,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/81"},"html":{"href":"https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/81"},"issue":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues/81"},"comments":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/pulls/81/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/81/commits"},"statuses":{"href":"https://api.github.com/repos/wso2-extensions/identity-inbound-auth-oauth/statuses/d6fa12a5f9354a0ab3a96c4036db8daf77d039a9"}}}}
{"actor":{"display_login":"thanujalk"}}