{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/comments/72609053","id":72609053,"diff_hunk":"@@ -0,0 +1,205 @@\n+/*\n+ * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and limitations under the License.\n+ *\n+ */\n+\n+package oauth;\n+\n+import org.apache.axis2.context.ServiceContext;\n+import org.apache.axis2.transport.http.HTTPConstants;\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.apache.commons.pool.impl.GenericObjectPool;\n+import org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceStub;\n+import org.wso2.carbon.identity.oauth2.stub.dto.OAuth2TokenValidationRequestDTO;\n+import org.wso2.carbon.identity.oauth2.stub.dto.OAuth2TokenValidationRequestDTO_OAuth2AccessToken;\n+import org.wso2.carbon.identity.oauth2.stub.dto.OAuth2TokenValidationResponseDTO;\n+import org.wso2.carbon.user.api.UserStoreException;\n+import org.wso2.carbon.utils.CarbonUtils;\n+import org.wso2.carbon.utils.multitenancy.MultitenantUtils;\n+import util.AuthenticationInfo;\n+\n+import javax.websocket.Session;\n+import java.io.File;\n+import java.io.FileInputStream;\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.rmi.RemoteException;\n+import java.util.Properties;\n+\n+/**\n+ * This acts as a contract point for OAuth token validation.\n+ */\n+public class OAuthTokenValdiator {\n+\n+\tprivate static String cookie;\n+\tprivate GenericObjectPool stubs;\n+\tprivate static Log log = LogFactory.getLog(OAuthTokenValdiator.class);\n+\tprivate static final String WEBSOCKET_CONFIG_LOCATION =\n+\t\t\tCarbonUtils.getEtcCarbonConfigDirPath() + File.separator + \"websocket-validation.properties\";\n+\tprivate static final String QUERY_STRING_SEPERATOR = \"&\";\n+\tprivate static final String QUERY_KEY_VALUE_SEPERATOR = \"=\";\n+\tprivate static final String TOKEN_TYPE = \"bearer\";\n+\tprivate static final String TOKEN_IDENTIFIER = \"token\";\n+\tprivate static OAuthTokenValdiator oAuthTokenValdiator;\n+\n+\tpublic static OAuthTokenValdiator getInstance() {\n+\t\tif (oAuthTokenValdiator == null) {\n+\t\t\tsynchronized (OAuthTokenValdiator.class) {\n+\t\t\t\tif (oAuthTokenValdiator == null) {\n+\t\t\t\t\toAuthTokenValdiator = new OAuthTokenValdiator();\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n+\t\treturn  oAuthTokenValdiator;\n+\t}\n+\n+\tprivate OAuthTokenValdiator() {\n+\t\ttry {\n+\t\t\tProperties properties = getWebSocketConfig();\n+\t\t\tthis.stubs = new GenericObjectPool(new OAuthTokenValidaterStubFactory(properties));\n+\t\t} catch (IOException e) {\n+\t\t\tlog.error(\"Failed to parse the web socket config file \" + WEBSOCKET_CONFIG_LOCATION);\n+\t\t}\n+\t}\n+\n+\t/**\n+\t * This method gets a string accessToken and validates it\n+\t *\n+\t * @param session which need to be validated.\n+\t * @return AuthenticationInfo with the validated results.\n+\t */\n+\tpublic AuthenticationInfo validateToken(Session session) {\n+\t\tString token = getTokenFromSession(session);\n+\t\tif (token == null) {\n+\t\t\tAuthenticationInfo authenticationInfo = new AuthenticationInfo();\n+\t\t\tauthenticationInfo.setAuthenticated(false);\n+\t\t\treturn authenticationInfo;\n+\t\t}\n+\t\tOAuth2TokenValidationServiceStub tokenValidationServiceStub = null;\n+\t\ttry {\n+\t\t\tObject stub = this.stubs.borrowObject();\n+\t\t\tif (stub != null) {\n+\t\t\t\ttokenValidationServiceStub = (OAuth2TokenValidationServiceStub) stub;\n+\t\t\t\tif (cookie != null) {\n+\t\t\t\t\ttokenValidationServiceStub._getServiceClient().getOptions().setProperty(\n+\t\t\t\t\t\t\tHTTPConstants.COOKIE_STRING, cookie);\n+\t\t\t\t}\n+\t\t\t\treturn getAuthenticationInfo(token, tokenValidationServiceStub);\n+\t\t\t} else {\n+\t\t\t\tlog.warn(\"Stub initialization failed.\");\n+\t\t\t}\n+\t\t} catch (RemoteException e) {\n+\t\t\tlog.error(\"Error on connecting with the validation endpoint.\", e);\n+\t\t} catch (Exception e) {\n+\t\t\tlog.error(\"Error occurred in borrowing an validation stub from the pool.\", e);\n+\n+\t\t} finally {\n+\t\t\ttry {\n+\t\t\t\tif (tokenValidationServiceStub != null) {\n+\t\t\t\t\tthis.stubs.returnObject(tokenValidationServiceStub);\n+\t\t\t\t}\n+\t\t\t} catch (Exception e) {\n+\t\t\t\tlog.warn(\"Error occurred while returning the object back to the oauth token validation service \" +\n+\t\t\t\t\t\t\t\t \"stub pool.\", e);\n+\t\t\t}\n+\t\t}\n+\t\tAuthenticationInfo authenticationInfo = new AuthenticationInfo();\n+\t\tauthenticationInfo.setAuthenticated(false);\n+\t\treturn authenticationInfo;\n+\t}\n+\n+\t/**\n+\t * This creates an AuthenticationInfo object that is used for authorization. This method will validate the token\n+\t * and\n+\t * sets the required parameters to the object.\n+\t *\n+\t * @param token                      that needs to be validated.\n+\t * @param tokenValidationServiceStub stub that is used to call the external service.\n+\t * @return AuthenticationInfo This contains the information related to authenticated client.\n+\t * @throws RemoteException that triggers when failing to call the external service..\n+\t */\n+\tprivate AuthenticationInfo getAuthenticationInfo(String token,\n+\t\t\t\t\t\t\t\t\t\t\t\t\t OAuth2TokenValidationServiceStub tokenValidationServiceStub)\n+\t\t\tthrows RemoteException, UserStoreException {\n+\t\tAuthenticationInfo authenticationInfo = new AuthenticationInfo();\n+\t\tOAuth2TokenValidationRequestDTO validationRequest = new OAuth2TokenValidationRequestDTO();\n+\t\tOAuth2TokenValidationRequestDTO_OAuth2AccessToken accessToken =\n+\t\t\t\tnew OAuth2TokenValidationRequestDTO_OAuth2AccessToken();\n+\t\taccessToken.setTokenType(TOKEN_TYPE);\n+\t\taccessToken.setIdentifier(token);\n+\t\tvalidationRequest.setAccessToken(accessToken);\n+\t\tboolean authenticated;\n+\t\tOAuth2TokenValidationResponseDTO tokenValidationResponse;\n+\t\ttokenValidationResponse = tokenValidationServiceStub.validate(validationRequest);\n+\t\tif (tokenValidationResponse == null) {\n+\t\t\tauthenticationInfo.setAuthenticated(false);\n+\t\t\treturn authenticationInfo;\n+\t\t}\n+\t\tauthenticated = tokenValidationResponse.getValid();\n+\t\tif (authenticated) {\n+\t\t\tString authorizedUser = tokenValidationResponse.getAuthorizedUser();\n+\t\t\tString username = MultitenantUtils.getTenantAwareUsername(authorizedUser);\n+\t\t\tString tenantDomain = MultitenantUtils.getTenantDomain(authorizedUser);\n+\t\t\tauthenticationInfo.setUsername(username);\n+\t\t\tauthenticationInfo.setTenantDomain(tenantDomain);\n+\t\t} else {\n+\t\t\tif (log.isDebugEnabled()) {\n+\t\t\t\tlog.debug(\"Token validation failed for token: \" + token);\n+\t\t\t}\n+\t\t}\n+\t\tServiceContext serviceContext = tokenValidationServiceStub._getServiceClient()\n+\t\t\t\t.getLastOperationContext().getServiceContext();\n+\t\tcookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);\n+\t\tauthenticationInfo.setAuthenticated(authenticated);\n+\t\treturn authenticationInfo;\n+\t}\n+\n+\t/**\n+\t * Retrieve JWT configs from registry.\n+\t */\n+\tprivate Properties getWebSocketConfig() throws IOException {\n+\t\tProperties properties = new Properties();\n+\t\tFile configFile =new File(WEBSOCKET_CONFIG_LOCATION);\n+\t\tif (configFile.exists()) {\n+\t\t\tInputStream fileInputStream = new FileInputStream(configFile);","path":"components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.output.adapter.ui.endpoint/src/main/java/oauth/OAuthTokenValdiator.java","position":174,"original_position":174,"commit_id":"b7748b000177f92dc0bdbcc9ea96de985392e841","original_commit_id":"b7748b000177f92dc0bdbcc9ea96de985392e841","user":{"login":"ayyoob","id":5144577,"avatar_url":"https://avatars.githubusercontent.com/u/5144577?v=3","gravatar_id":"","url":"https://api.github.com/users/ayyoob","html_url":"https://github.com/ayyoob","followers_url":"https://api.github.com/users/ayyoob/followers","following_url":"https://api.github.com/users/ayyoob/following{/other_user}","gists_url":"https://api.github.com/users/ayyoob/gists{/gist_id}","starred_url":"https://api.github.com/users/ayyoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayyoob/subscriptions","organizations_url":"https://api.github.com/users/ayyoob/orgs","repos_url":"https://api.github.com/users/ayyoob/repos","events_url":"https://api.github.com/users/ayyoob/events{/privacy}","received_events_url":"https://api.github.com/users/ayyoob/received_events","type":"User","site_admin":false},"body":"This code is already been refactored in the master","created_at":"2016-07-28T12:02:05Z","updated_at":"2016-07-28T12:02:05Z","html_url":"https://github.com/wso2/carbon-device-mgt-plugins/pull/280#discussion_r72609053","pull_request_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/280","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/comments/72609053"},"html":{"href":"https://github.com/wso2/carbon-device-mgt-plugins/pull/280#discussion_r72609053"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/280"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/280","id":71225886,"html_url":"https://github.com/wso2/carbon-device-mgt-plugins/pull/280","diff_url":"https://github.com/wso2/carbon-device-mgt-plugins/pull/280.diff","patch_url":"https://github.com/wso2/carbon-device-mgt-plugins/pull/280.patch","issue_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/issues/280","number":280,"state":"closed","locked":false,"title":"added UI output adapter","user":{"login":"ayyoob","id":5144577,"avatar_url":"https://avatars.githubusercontent.com/u/5144577?v=3","gravatar_id":"","url":"https://api.github.com/users/ayyoob","html_url":"https://github.com/ayyoob","followers_url":"https://api.github.com/users/ayyoob/followers","following_url":"https://api.github.com/users/ayyoob/following{/other_user}","gists_url":"https://api.github.com/users/ayyoob/gists{/gist_id}","starred_url":"https://api.github.com/users/ayyoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayyoob/subscriptions","organizations_url":"https://api.github.com/users/ayyoob/orgs","repos_url":"https://api.github.com/users/ayyoob/repos","events_url":"https://api.github.com/users/ayyoob/events{/privacy}","received_events_url":"https://api.github.com/users/ayyoob/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-24T14:03:53Z","updated_at":"2016-07-28T12:02:05Z","closed_at":"2016-05-24T14:05:24Z","merged_at":"2016-05-24T14:05:24Z","merge_commit_sha":"028a9b106aae4b46bcf79a671dfa121545ea12c9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/280/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/280/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/issues/280/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/statuses/b7748b000177f92dc0bdbcc9ea96de985392e841","head":{"label":"ayyoob:transport","ref":"transport","sha":"b7748b000177f92dc0bdbcc9ea96de985392e841","user":{"login":"ayyoob","id":5144577,"avatar_url":"https://avatars.githubusercontent.com/u/5144577?v=3","gravatar_id":"","url":"https://api.github.com/users/ayyoob","html_url":"https://github.com/ayyoob","followers_url":"https://api.github.com/users/ayyoob/followers","following_url":"https://api.github.com/users/ayyoob/following{/other_user}","gists_url":"https://api.github.com/users/ayyoob/gists{/gist_id}","starred_url":"https://api.github.com/users/ayyoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayyoob/subscriptions","organizations_url":"https://api.github.com/users/ayyoob/orgs","repos_url":"https://api.github.com/users/ayyoob/repos","events_url":"https://api.github.com/users/ayyoob/events{/privacy}","received_events_url":"https://api.github.com/users/ayyoob/received_events","type":"User","site_admin":false},"repo":{"id":41381369,"name":"carbon-device-mgt-plugins","full_name":"ayyoob/carbon-device-mgt-plugins","owner":{"login":"ayyoob","id":5144577,"avatar_url":"https://avatars.githubusercontent.com/u/5144577?v=3","gravatar_id":"","url":"https://api.github.com/users/ayyoob","html_url":"https://github.com/ayyoob","followers_url":"https://api.github.com/users/ayyoob/followers","following_url":"https://api.github.com/users/ayyoob/following{/other_user}","gists_url":"https://api.github.com/users/ayyoob/gists{/gist_id}","starred_url":"https://api.github.com/users/ayyoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayyoob/subscriptions","organizations_url":"https://api.github.com/users/ayyoob/orgs","repos_url":"https://api.github.com/users/ayyoob/repos","events_url":"https://api.github.com/users/ayyoob/events{/privacy}","received_events_url":"https://api.github.com/users/ayyoob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ayyoob/carbon-device-mgt-plugins","description":"","fork":true,"url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins","forks_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/forks","keys_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/teams","hooks_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/hooks","issue_events_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/events","assignees_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/tags","blobs_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/languages","stargazers_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/stargazers","contributors_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/contributors","subscribers_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/subscribers","subscription_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/subscription","commits_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/merges","archive_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/downloads","issues_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/labels{/name}","releases_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/ayyoob/carbon-device-mgt-plugins/deployments","created_at":"2015-08-25T18:41:49Z","updated_at":"2015-08-25T18:41:50Z","pushed_at":"2016-07-28T11:25:38Z","git_url":"git://github.com/ayyoob/carbon-device-mgt-plugins.git","ssh_url":"git@github.com:ayyoob/carbon-device-mgt-plugins.git","clone_url":"https://github.com/ayyoob/carbon-device-mgt-plugins.git","svn_url":"https://github.com/ayyoob/carbon-device-mgt-plugins","homepage":null,"size":113265,"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:master","ref":"master","sha":"4f33789d38c8a5a10cbeb1acfe42de5ae93daa2d","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":30521516,"name":"carbon-device-mgt-plugins","full_name":"wso2/carbon-device-mgt-plugins","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-device-mgt-plugins","description":"","fork":false,"url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins","forks_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/forks","keys_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/events","assignees_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/merges","archive_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/deployments","created_at":"2015-02-09T06:12:40Z","updated_at":"2016-01-28T13:45:00Z","pushed_at":"2016-07-28T11:28:17Z","git_url":"git://github.com/wso2/carbon-device-mgt-plugins.git","ssh_url":"git@github.com:wso2/carbon-device-mgt-plugins.git","clone_url":"https://github.com/wso2/carbon-device-mgt-plugins.git","svn_url":"https://github.com/wso2/carbon-device-mgt-plugins","homepage":null,"size":114388,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":1,"forks":38,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/280"},"html":{"href":"https://github.com/wso2/carbon-device-mgt-plugins/pull/280"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/issues/280"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/issues/280/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/280/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/pulls/280/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-device-mgt-plugins/statuses/b7748b000177f92dc0bdbcc9ea96de985392e841"}}}}
{"actor":{"display_login":"ayyoob"}}