{"action":"created","comment":{"url":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/comments/22920282","id":22920282,"diff_hunk":"@@ -0,0 +1,178 @@\n+/*\n+ * Copyright (c) 2005-2013, 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+package org.wso2.carbon.identity.oauth2.model;\n+\n+import org.apache.amber.oauth2.as.request.OAuthTokenRequest;\n+import org.apache.amber.oauth2.common.OAuth;\n+import org.apache.amber.oauth2.common.exception.OAuthProblemException;\n+import org.apache.amber.oauth2.common.exception.OAuthSystemException;\n+import org.apache.amber.oauth2.common.utils.OAuthUtils;\n+import org.apache.amber.oauth2.common.validators.OAuthValidator;\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration;\n+\n+import javax.servlet.http.HttpServletRequest;\n+import java.util.ArrayList;\n+import java.util.List;\n+","path":"components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/model/CarbonOAuthTokenRequest.java","position":33,"original_position":33,"commit_id":"e4851fb03a23de3fce464dfc383e63bc06d1ada7","original_commit_id":"e4851fb03a23de3fce464dfc383e63bc06d1ada7","user":{"login":"hasinthaindrajee","id":3666100,"avatar_url":"https://avatars.githubusercontent.com/u/3666100?v=3","gravatar_id":"","url":"https://api.github.com/users/hasinthaindrajee","html_url":"https://github.com/hasinthaindrajee","followers_url":"https://api.github.com/users/hasinthaindrajee/followers","following_url":"https://api.github.com/users/hasinthaindrajee/following{/other_user}","gists_url":"https://api.github.com/users/hasinthaindrajee/gists{/gist_id}","starred_url":"https://api.github.com/users/hasinthaindrajee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasinthaindrajee/subscriptions","organizations_url":"https://api.github.com/users/hasinthaindrajee/orgs","repos_url":"https://api.github.com/users/hasinthaindrajee/repos","events_url":"https://api.github.com/users/hasinthaindrajee/events{/privacy}","received_events_url":"https://api.github.com/users/hasinthaindrajee/received_events","type":"User","site_admin":false},"body":"Add class level doc comments and comments for at least public methods","created_at":"2015-01-14T07:33:22Z","updated_at":"2015-01-14T07:33:22Z","html_url":"https://github.com/wso2-dev/carbon-identity/pull/37#discussion_r22920282","pull_request_url":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/comments/22920282"},"html":{"href":"https://github.com/wso2-dev/carbon-identity/pull/37#discussion_r22920282"},"pull_request":{"href":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/37","id":25833050,"html_url":"https://github.com/wso2-dev/carbon-identity/pull/37","diff_url":"https://github.com/wso2-dev/carbon-identity/pull/37.diff","patch_url":"https://github.com/wso2-dev/carbon-identity/pull/37.patch","issue_url":"https://api.github.com/repos/wso2-dev/carbon-identity/issues/37","number":37,"state":"open","locked":false,"title":"Fix for IDENTITY-2925","user":{"login":"malithie","id":4951983,"avatar_url":"https://avatars.githubusercontent.com/u/4951983?v=3","gravatar_id":"","url":"https://api.github.com/users/malithie","html_url":"https://github.com/malithie","followers_url":"https://api.github.com/users/malithie/followers","following_url":"https://api.github.com/users/malithie/following{/other_user}","gists_url":"https://api.github.com/users/malithie/gists{/gist_id}","starred_url":"https://api.github.com/users/malithie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malithie/subscriptions","organizations_url":"https://api.github.com/users/malithie/orgs","repos_url":"https://api.github.com/users/malithie/repos","events_url":"https://api.github.com/users/malithie/events{/privacy}","received_events_url":"https://api.github.com/users/malithie/received_events","type":"User","site_admin":false},"body":"Attached fix provides support to add custom grant types by allowing to add grant type validators. Previously only default validators were supported which blocked any other grant type that pass by.\r\n","created_at":"2014-12-10T16:08:26Z","updated_at":"2015-01-14T07:33:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a23e38e6a10faf49aa6cc491b80c232383824acb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/37/commits","review_comments_url":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/37/comments","review_comment_url":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/comments/{number}","comments_url":"https://api.github.com/repos/wso2-dev/carbon-identity/issues/37/comments","statuses_url":"https://api.github.com/repos/wso2-dev/carbon-identity/statuses/e4851fb03a23de3fce464dfc383e63bc06d1ada7","head":{"label":"malithie:IDENTITY-2925","ref":"IDENTITY-2925","sha":"e4851fb03a23de3fce464dfc383e63bc06d1ada7","user":{"login":"malithie","id":4951983,"avatar_url":"https://avatars.githubusercontent.com/u/4951983?v=3","gravatar_id":"","url":"https://api.github.com/users/malithie","html_url":"https://github.com/malithie","followers_url":"https://api.github.com/users/malithie/followers","following_url":"https://api.github.com/users/malithie/following{/other_user}","gists_url":"https://api.github.com/users/malithie/gists{/gist_id}","starred_url":"https://api.github.com/users/malithie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malithie/subscriptions","organizations_url":"https://api.github.com/users/malithie/orgs","repos_url":"https://api.github.com/users/malithie/repos","events_url":"https://api.github.com/users/malithie/events{/privacy}","received_events_url":"https://api.github.com/users/malithie/received_events","type":"User","site_admin":false},"repo":{"id":27826092,"name":"carbon-identity","full_name":"malithie/carbon-identity","owner":{"login":"malithie","id":4951983,"avatar_url":"https://avatars.githubusercontent.com/u/4951983?v=3","gravatar_id":"","url":"https://api.github.com/users/malithie","html_url":"https://github.com/malithie","followers_url":"https://api.github.com/users/malithie/followers","following_url":"https://api.github.com/users/malithie/following{/other_user}","gists_url":"https://api.github.com/users/malithie/gists{/gist_id}","starred_url":"https://api.github.com/users/malithie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malithie/subscriptions","organizations_url":"https://api.github.com/users/malithie/orgs","repos_url":"https://api.github.com/users/malithie/repos","events_url":"https://api.github.com/users/malithie/events{/privacy}","received_events_url":"https://api.github.com/users/malithie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/malithie/carbon-identity","description":"","fork":true,"url":"https://api.github.com/repos/malithie/carbon-identity","forks_url":"https://api.github.com/repos/malithie/carbon-identity/forks","keys_url":"https://api.github.com/repos/malithie/carbon-identity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/malithie/carbon-identity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/malithie/carbon-identity/teams","hooks_url":"https://api.github.com/repos/malithie/carbon-identity/hooks","issue_events_url":"https://api.github.com/repos/malithie/carbon-identity/issues/events{/number}","events_url":"https://api.github.com/repos/malithie/carbon-identity/events","assignees_url":"https://api.github.com/repos/malithie/carbon-identity/assignees{/user}","branches_url":"https://api.github.com/repos/malithie/carbon-identity/branches{/branch}","tags_url":"https://api.github.com/repos/malithie/carbon-identity/tags","blobs_url":"https://api.github.com/repos/malithie/carbon-identity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/malithie/carbon-identity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/malithie/carbon-identity/git/refs{/sha}","trees_url":"https://api.github.com/repos/malithie/carbon-identity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/malithie/carbon-identity/statuses/{sha}","languages_url":"https://api.github.com/repos/malithie/carbon-identity/languages","stargazers_url":"https://api.github.com/repos/malithie/carbon-identity/stargazers","contributors_url":"https://api.github.com/repos/malithie/carbon-identity/contributors","subscribers_url":"https://api.github.com/repos/malithie/carbon-identity/subscribers","subscription_url":"https://api.github.com/repos/malithie/carbon-identity/subscription","commits_url":"https://api.github.com/repos/malithie/carbon-identity/commits{/sha}","git_commits_url":"https://api.github.com/repos/malithie/carbon-identity/git/commits{/sha}","comments_url":"https://api.github.com/repos/malithie/carbon-identity/comments{/number}","issue_comment_url":"https://api.github.com/repos/malithie/carbon-identity/issues/comments/{number}","contents_url":"https://api.github.com/repos/malithie/carbon-identity/contents/{+path}","compare_url":"https://api.github.com/repos/malithie/carbon-identity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/malithie/carbon-identity/merges","archive_url":"https://api.github.com/repos/malithie/carbon-identity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/malithie/carbon-identity/downloads","issues_url":"https://api.github.com/repos/malithie/carbon-identity/issues{/number}","pulls_url":"https://api.github.com/repos/malithie/carbon-identity/pulls{/number}","milestones_url":"https://api.github.com/repos/malithie/carbon-identity/milestones{/number}","notifications_url":"https://api.github.com/repos/malithie/carbon-identity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/malithie/carbon-identity/labels{/name}","releases_url":"https://api.github.com/repos/malithie/carbon-identity/releases{/id}","created_at":"2014-12-10T15:32:35Z","updated_at":"2014-12-21T13:43:33Z","pushed_at":"2014-12-23T09:32:07Z","git_url":"git://github.com/malithie/carbon-identity.git","ssh_url":"git@github.com:malithie/carbon-identity.git","clone_url":"https://github.com/malithie/carbon-identity.git","svn_url":"https://github.com/malithie/carbon-identity","homepage":"","size":15278,"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-dev:master","ref":"master","sha":"f07d2d54c65f312751425ae1a8e40bd9dc76fd05","user":{"login":"wso2-dev","id":6744733,"avatar_url":"https://avatars.githubusercontent.com/u/6744733?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2-dev","html_url":"https://github.com/wso2-dev","followers_url":"https://api.github.com/users/wso2-dev/followers","following_url":"https://api.github.com/users/wso2-dev/following{/other_user}","gists_url":"https://api.github.com/users/wso2-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2-dev/subscriptions","organizations_url":"https://api.github.com/users/wso2-dev/orgs","repos_url":"https://api.github.com/users/wso2-dev/repos","events_url":"https://api.github.com/users/wso2-dev/events{/privacy}","received_events_url":"https://api.github.com/users/wso2-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":20436898,"name":"carbon-identity","full_name":"wso2-dev/carbon-identity","owner":{"login":"wso2-dev","id":6744733,"avatar_url":"https://avatars.githubusercontent.com/u/6744733?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2-dev","html_url":"https://github.com/wso2-dev","followers_url":"https://api.github.com/users/wso2-dev/followers","following_url":"https://api.github.com/users/wso2-dev/following{/other_user}","gists_url":"https://api.github.com/users/wso2-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2-dev/subscriptions","organizations_url":"https://api.github.com/users/wso2-dev/orgs","repos_url":"https://api.github.com/users/wso2-dev/repos","events_url":"https://api.github.com/users/wso2-dev/events{/privacy}","received_events_url":"https://api.github.com/users/wso2-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2-dev/carbon-identity","description":"","fork":true,"url":"https://api.github.com/repos/wso2-dev/carbon-identity","forks_url":"https://api.github.com/repos/wso2-dev/carbon-identity/forks","keys_url":"https://api.github.com/repos/wso2-dev/carbon-identity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2-dev/carbon-identity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2-dev/carbon-identity/teams","hooks_url":"https://api.github.com/repos/wso2-dev/carbon-identity/hooks","issue_events_url":"https://api.github.com/repos/wso2-dev/carbon-identity/issues/events{/number}","events_url":"https://api.github.com/repos/wso2-dev/carbon-identity/events","assignees_url":"https://api.github.com/repos/wso2-dev/carbon-identity/assignees{/user}","branches_url":"https://api.github.com/repos/wso2-dev/carbon-identity/branches{/branch}","tags_url":"https://api.github.com/repos/wso2-dev/carbon-identity/tags","blobs_url":"https://api.github.com/repos/wso2-dev/carbon-identity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2-dev/carbon-identity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2-dev/carbon-identity/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2-dev/carbon-identity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2-dev/carbon-identity/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2-dev/carbon-identity/languages","stargazers_url":"https://api.github.com/repos/wso2-dev/carbon-identity/stargazers","contributors_url":"https://api.github.com/repos/wso2-dev/carbon-identity/contributors","subscribers_url":"https://api.github.com/repos/wso2-dev/carbon-identity/subscribers","subscription_url":"https://api.github.com/repos/wso2-dev/carbon-identity/subscription","commits_url":"https://api.github.com/repos/wso2-dev/carbon-identity/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2-dev/carbon-identity/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2-dev/carbon-identity/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2-dev/carbon-identity/issues/comments/{number}","contents_url":"https://api.github.com/repos/wso2-dev/carbon-identity/contents/{+path}","compare_url":"https://api.github.com/repos/wso2-dev/carbon-identity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2-dev/carbon-identity/merges","archive_url":"https://api.github.com/repos/wso2-dev/carbon-identity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2-dev/carbon-identity/downloads","issues_url":"https://api.github.com/repos/wso2-dev/carbon-identity/issues{/number}","pulls_url":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2-dev/carbon-identity/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2-dev/carbon-identity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2-dev/carbon-identity/labels{/name}","releases_url":"https://api.github.com/repos/wso2-dev/carbon-identity/releases{/id}","created_at":"2014-06-03T09:28:43Z","updated_at":"2015-01-13T10:30:40Z","pushed_at":"2015-01-13T10:30:40Z","git_url":"git://github.com/wso2-dev/carbon-identity.git","ssh_url":"git@github.com:wso2-dev/carbon-identity.git","clone_url":"https://github.com/wso2-dev/carbon-identity.git","svn_url":"https://github.com/wso2-dev/carbon-identity","homepage":"","size":18754,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":15,"forks":38,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/37"},"html":{"href":"https://github.com/wso2-dev/carbon-identity/pull/37"},"issue":{"href":"https://api.github.com/repos/wso2-dev/carbon-identity/issues/37"},"comments":{"href":"https://api.github.com/repos/wso2-dev/carbon-identity/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/wso2-dev/carbon-identity/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/wso2-dev/carbon-identity/statuses/e4851fb03a23de3fce464dfc383e63bc06d1ada7"}}}}