{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/2587","repository_url":"https://api.github.com/repos/eclipse/smarthome","labels_url":"https://api.github.com/repos/eclipse/smarthome/issues/2587/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/smarthome/issues/2587/comments","events_url":"https://api.github.com/repos/eclipse/smarthome/issues/2587/events","html_url":"https://github.com/eclipse/smarthome/pull/2587","id":193160970,"number":2587,"title":"Authentication API for ESH","user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"labels":[{"id":294421275,"url":"https://api.github.com/repos/eclipse/smarthome/labels/Core","name":"Core","color":"207de5","default":false},{"id":74198570,"url":"https://api.github.com/repos/eclipse/smarthome/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-02T16:38:20Z","updated_at":"2016-12-07T10:39:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eclipse/smarthome/pulls/2587","html_url":"https://github.com/eclipse/smarthome/pull/2587","diff_url":"https://github.com/eclipse/smarthome/pull/2587.diff","patch_url":"https://github.com/eclipse/smarthome/pull/2587.patch"},"body":"This commit brings basic implementation authentication provider based on JAAS realms which allows to plug in any standard java module to work. There are some limitations - first of all authentication is done via REST service layer with SPI provided there. No session tracking is yet available and all works just like basic authentication.\r\n\r\nOnly roles USER and ADMIN have been created so far; it can be discussed to define further roles within ESH. The REST resources are secured in a way that USERs only have read-access to the relevant parts and PUT/POST access only for item updates&commands. Only admins can add/delete/discover/approve/configure stuff.\r\n\r\nAlso-by: Łukasz Dywicki <lukasz@dywicki.pl>\r\nSigned-off-by: Kai Kreuzer <kai@openhab.org>"},"comment":{"url":"https://api.github.com/repos/eclipse/smarthome/issues/comments/265414203","html_url":"https://github.com/eclipse/smarthome/pull/2587#issuecomment-265414203","issue_url":"https://api.github.com/repos/eclipse/smarthome/issues/2587","id":265414203,"user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T10:39:53Z","updated_at":"2016-12-07T10:39:53Z","body":"@maggu2810 Ok for you to merge? Note that this PR only picked up the already reviewed PR #2359."}}
{"actor":{"display_login":"kaikreuzer"}}