{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-identity/pulls/comments/49933572","id":49933572,"diff_hunk":"@@ -49,17 +50,27 @@ public OAuth2AuthorizeRespDTO issue(OAuthAuthzReqMessageContext oauthAuthzMsgCtx\n \n         OAuth2AuthorizeRespDTO respDTO = new OAuth2AuthorizeRespDTO();\n         OAuth2AuthorizeReqDTO authorizationReqDTO = oauthAuthzMsgCtx.getAuthorizationReqDTO();\n+\n         String scope = OAuth2Util.buildScopeString(oauthAuthzMsgCtx.getApprovedScope());\n+\n         respDTO.setCallbackURI(authorizationReqDTO.getCallbackUrl());\n+\n         String consumerKey = authorizationReqDTO.getConsumerKey();\n         String authorizedUser = authorizationReqDTO.getUsername();\n         String oAuthCacheKeyString;\n+\n+        String responseType = oauthAuthzMsgCtx.getAuthorizationReqDTO().getResponseType();\n+\n+        String grantType = StringUtils.equals(OAuthConstants.GrantTypes.TOKEN, responseType) ?","path":"components/oauth/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authz/handlers/TokenResponseTypeHandler.java","position":23,"original_position":23,"commit_id":"34a246fda514c28fff17170441806dfe77cd61be","original_commit_id":"34a246fda514c28fff17170441806dfe77cd61be","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":"Use if then else to improve readablity","created_at":"2016-01-16T16:07:51Z","updated_at":"2016-01-16T16:07:51Z","html_url":"https://github.com/wso2/carbon-identity/pull/1130#discussion_r49933572","pull_request_url":"https://api.github.com/repos/wso2/carbon-identity/pulls/1130","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-identity/pulls/comments/49933572"},"html":{"href":"https://github.com/wso2/carbon-identity/pull/1130#discussion_r49933572"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-identity/pulls/1130"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-identity/pulls/1130","id":47120655,"html_url":"https://github.com/wso2/carbon-identity/pull/1130","diff_url":"https://github.com/wso2/carbon-identity/pull/1130.diff","patch_url":"https://github.com/wso2/carbon-identity/pull/1130.patch","issue_url":"https://api.github.com/repos/wso2/carbon-identity/issues/1130","number":1130,"state":"closed","locked":false,"title":"Fixing - IDENTITY-3156","user":{"login":"JKAUSHALYA","id":8939174,"avatar_url":"https://avatars.githubusercontent.com/u/8939174?v=3","gravatar_id":"","url":"https://api.github.com/users/JKAUSHALYA","html_url":"https://github.com/JKAUSHALYA","followers_url":"https://api.github.com/users/JKAUSHALYA/followers","following_url":"https://api.github.com/users/JKAUSHALYA/following{/other_user}","gists_url":"https://api.github.com/users/JKAUSHALYA/gists{/gist_id}","starred_url":"https://api.github.com/users/JKAUSHALYA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKAUSHALYA/subscriptions","organizations_url":"https://api.github.com/users/JKAUSHALYA/orgs","repos_url":"https://api.github.com/users/JKAUSHALYA/repos","events_url":"https://api.github.com/users/JKAUSHALYA/events{/privacy}","received_events_url":"https://api.github.com/users/JKAUSHALYA/received_events","type":"User","site_admin":false},"body":"**Fixing - IDENTITY-3156**\r\n\r\nAdded the \"GrantType\" column to the IDN_OAUTH2_ACCESS_TOKEN.\r\n\r\nhttps://wso2.org/jira/browse/IDENTITY-3156","created_at":"2015-10-08T07:44:09Z","updated_at":"2016-01-16T16:07:51Z","closed_at":"2015-10-17T10:59:10Z","merged_at":"2015-10-17T10:59:10Z","merge_commit_sha":"ff44ea2e5968fb7e5d4ce320e18a04a6a7fd963a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-identity/pulls/1130/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-identity/pulls/1130/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-identity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-identity/issues/1130/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-identity/statuses/34a246fda514c28fff17170441806dfe77cd61be","head":{"label":"JKAUSHALYA:IDENTITY-3156","ref":"IDENTITY-3156","sha":"34a246fda514c28fff17170441806dfe77cd61be","user":{"login":"JKAUSHALYA","id":8939174,"avatar_url":"https://avatars.githubusercontent.com/u/8939174?v=3","gravatar_id":"","url":"https://api.github.com/users/JKAUSHALYA","html_url":"https://github.com/JKAUSHALYA","followers_url":"https://api.github.com/users/JKAUSHALYA/followers","following_url":"https://api.github.com/users/JKAUSHALYA/following{/other_user}","gists_url":"https://api.github.com/users/JKAUSHALYA/gists{/gist_id}","starred_url":"https://api.github.com/users/JKAUSHALYA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKAUSHALYA/subscriptions","organizations_url":"https://api.github.com/users/JKAUSHALYA/orgs","repos_url":"https://api.github.com/users/JKAUSHALYA/repos","events_url":"https://api.github.com/users/JKAUSHALYA/events{/privacy}","received_events_url":"https://api.github.com/users/JKAUSHALYA/received_events","type":"User","site_admin":false},"repo":{"id":42031874,"name":"carbon-identity","full_name":"JKAUSHALYA/carbon-identity","owner":{"login":"JKAUSHALYA","id":8939174,"avatar_url":"https://avatars.githubusercontent.com/u/8939174?v=3","gravatar_id":"","url":"https://api.github.com/users/JKAUSHALYA","html_url":"https://github.com/JKAUSHALYA","followers_url":"https://api.github.com/users/JKAUSHALYA/followers","following_url":"https://api.github.com/users/JKAUSHALYA/following{/other_user}","gists_url":"https://api.github.com/users/JKAUSHALYA/gists{/gist_id}","starred_url":"https://api.github.com/users/JKAUSHALYA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JKAUSHALYA/subscriptions","organizations_url":"https://api.github.com/users/JKAUSHALYA/orgs","repos_url":"https://api.github.com/users/JKAUSHALYA/repos","events_url":"https://api.github.com/users/JKAUSHALYA/events{/privacy}","received_events_url":"https://api.github.com/users/JKAUSHALYA/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JKAUSHALYA/carbon-identity","description":"","fork":true,"url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity","forks_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/forks","keys_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/teams","hooks_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/hooks","issue_events_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/issues/events{/number}","events_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/events","assignees_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/assignees{/user}","branches_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/branches{/branch}","tags_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/tags","blobs_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/git/refs{/sha}","trees_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/statuses/{sha}","languages_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/languages","stargazers_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/stargazers","contributors_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/contributors","subscribers_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/subscribers","subscription_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/subscription","commits_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/commits{/sha}","git_commits_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/git/commits{/sha}","comments_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/comments{/number}","issue_comment_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/issues/comments{/number}","contents_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/contents/{+path}","compare_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/merges","archive_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/downloads","issues_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/issues{/number}","pulls_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/pulls{/number}","milestones_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/milestones{/number}","notifications_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/labels{/name}","releases_url":"https://api.github.com/repos/JKAUSHALYA/carbon-identity/releases{/id}","created_at":"2015-09-07T04:51:00Z","updated_at":"2015-10-20T11:32:30Z","pushed_at":"2015-12-18T10:05:08Z","git_url":"git://github.com/JKAUSHALYA/carbon-identity.git","ssh_url":"git@github.com:JKAUSHALYA/carbon-identity.git","clone_url":"https://github.com/JKAUSHALYA/carbon-identity.git","svn_url":"https://github.com/JKAUSHALYA/carbon-identity","homepage":null,"size":55181,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"891860e1178b706474580e693aab258eabf61635","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.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":16588204,"name":"carbon-identity","full_name":"wso2/carbon-identity","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.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-identity","description":"","fork":false,"url":"https://api.github.com/repos/wso2/carbon-identity","forks_url":"https://api.github.com/repos/wso2/carbon-identity/forks","keys_url":"https://api.github.com/repos/wso2/carbon-identity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-identity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-identity/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-identity/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-identity/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-identity/events","assignees_url":"https://api.github.com/repos/wso2/carbon-identity/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-identity/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-identity/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-identity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-identity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-identity/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-identity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-identity/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-identity/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-identity/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-identity/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-identity/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-identity/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-identity/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-identity/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-identity/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-identity/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-identity/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-identity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-identity/merges","archive_url":"https://api.github.com/repos/wso2/carbon-identity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-identity/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-identity/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-identity/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-identity/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-identity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-identity/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-identity/releases{/id}","created_at":"2014-02-06T17:58:23Z","updated_at":"2016-01-09T19:46:34Z","pushed_at":"2016-01-16T11:21:18Z","git_url":"git://github.com/wso2/carbon-identity.git","ssh_url":"git@github.com:wso2/carbon-identity.git","clone_url":"https://github.com/wso2/carbon-identity.git","svn_url":"https://github.com/wso2/carbon-identity","homepage":null,"size":78144,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":164,"mirror_url":null,"open_issues_count":60,"forks":164,"open_issues":60,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-identity/pulls/1130"},"html":{"href":"https://github.com/wso2/carbon-identity/pull/1130"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-identity/issues/1130"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-identity/issues/1130/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-identity/pulls/1130/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-identity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-identity/pulls/1130/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-identity/statuses/34a246fda514c28fff17170441806dfe77cd61be"}}}}