{"action":"created","issue":{"url":"https://api.github.com/repos/intel/iot-rest-api-server/issues/81","repository_url":"https://api.github.com/repos/intel/iot-rest-api-server","labels_url":"https://api.github.com/repos/intel/iot-rest-api-server/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/intel/iot-rest-api-server/issues/81/comments","events_url":"https://api.github.com/repos/intel/iot-rest-api-server/issues/81/events","html_url":"https://github.com/intel/iot-rest-api-server/issues/81","id":274092190,"number":81,"title":"access denied while accessing secure resource at coaps endpoint","user":{"login":"ttzeng","id":1763431,"avatar_url":"https://avatars2.githubusercontent.com/u/1763431?v=4","gravatar_id":"","url":"https://api.github.com/users/ttzeng","html_url":"https://github.com/ttzeng","followers_url":"https://api.github.com/users/ttzeng/followers","following_url":"https://api.github.com/users/ttzeng/following{/other_user}","gists_url":"https://api.github.com/users/ttzeng/gists{/gist_id}","starred_url":"https://api.github.com/users/ttzeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttzeng/subscriptions","organizations_url":"https://api.github.com/users/ttzeng/orgs","repos_url":"https://api.github.com/users/ttzeng/repos","events_url":"https://api.github.com/users/ttzeng/events{/privacy}","received_events_url":"https://api.github.com/users/ttzeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-15T09:42:42Z","updated_at":"2017-11-15T09:57:30Z","closed_at":null,"author_association":"NONE","body":"Build the iot-rest-api-server with the iotivity-node code from the [coaps branch](https://github.com/otcshare/iotivity-node/tree/coaps), the API server always returns below error while accessing the secured resource:\r\n`Resource retrieve failed: Access denied`\r\n\r\nThe API server and the secured resource have been provisioned (i.e. ownership transfer + install credential) by the Provisioning Client, the secured resource can be accessed by other iotivity-node client provisioned with the same SVR DB, so it seems not the problem of the secured server or the SVR DB configuration."},"comment":{"url":"https://api.github.com/repos/intel/iot-rest-api-server/issues/comments/344542965","html_url":"https://github.com/intel/iot-rest-api-server/issues/81#issuecomment-344542965","issue_url":"https://api.github.com/repos/intel/iot-rest-api-server/issues/81","id":344542965,"user":{"login":"nagineni","id":1140096,"avatar_url":"https://avatars1.githubusercontent.com/u/1140096?v=4","gravatar_id":"","url":"https://api.github.com/users/nagineni","html_url":"https://github.com/nagineni","followers_url":"https://api.github.com/users/nagineni/followers","following_url":"https://api.github.com/users/nagineni/following{/other_user}","gists_url":"https://api.github.com/users/nagineni/gists{/gist_id}","starred_url":"https://api.github.com/users/nagineni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagineni/subscriptions","organizations_url":"https://api.github.com/users/nagineni/orgs","repos_url":"https://api.github.com/users/nagineni/repos","events_url":"https://api.github.com/users/nagineni/events{/privacy}","received_events_url":"https://api.github.com/users/nagineni/received_events","type":"User","site_admin":false},"created_at":"2017-11-15T09:57:30Z","updated_at":"2017-11-15T09:57:30Z","author_association":"CONTRIBUTOR","body":"@ttzeng Coaps works only if we pass the resource object to the retrieve request, but the REST API server uses direct resource retrieve API (i.e by passing resource name and device path) and in this case the coaps doesn't work. We are already investigating how to solve this issue :)"}}
{"actor":{"display_login":"nagineni"}}