{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/saltstack-plugin/issues/45","repository_url":"https://api.github.com/repos/jenkinsci/saltstack-plugin","labels_url":"https://api.github.com/repos/jenkinsci/saltstack-plugin/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/saltstack-plugin/issues/45/comments","events_url":"https://api.github.com/repos/jenkinsci/saltstack-plugin/issues/45/events","html_url":"https://github.com/jenkinsci/saltstack-plugin/issues/45","id":190415698,"number":45,"title":"rest_tornado support","user":{"login":"fracklen","id":2706577,"avatar_url":"https://avatars.githubusercontent.com/u/2706577?v=3","gravatar_id":"","url":"https://api.github.com/users/fracklen","html_url":"https://github.com/fracklen","followers_url":"https://api.github.com/users/fracklen/followers","following_url":"https://api.github.com/users/fracklen/following{/other_user}","gists_url":"https://api.github.com/users/fracklen/gists{/gist_id}","starred_url":"https://api.github.com/users/fracklen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fracklen/subscriptions","organizations_url":"https://api.github.com/users/fracklen/orgs","repos_url":"https://api.github.com/users/fracklen/repos","events_url":"https://api.github.com/users/fracklen/events{/privacy}","received_events_url":"https://api.github.com/users/fracklen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-18T20:35:09Z","updated_at":"2016-11-21T13:59:38Z","closed_at":null,"body":"Just installed the v2.0-beta1.\r\n\r\nIt works like a charm when you run `rest_cherrypy`. However, when running `rest_tornado`, the login request is denied with \r\n```\r\nHTTP/1.1 400 Bad Request\r\nDate: Fri, 18 Nov 2016 20:07:02 GMT\r\nContent-Length: 73\r\nContent-Type: text/html; charset=UTF-8\r\nServer: TornadoServer/4.2.1\r\n\r\n<html><title>400: Bad Request</title><body>400: Bad Request</body></html>\r\n```\r\n\r\nThis might be a bug in rest_tornado - I'm not that sure about the api spec.\r\n\r\nThe `rest_cherrypy` webserver accepts the login credentials in the form \r\n```json\r\n[\r\n  {\r\n    \"username\": \"rootus_rootus\",\r\n    \"password\": \"thebigsecret\",\r\n    \"eauth\": \"auto\"\r\n  }\r\n]\r\n```\r\n as well as \r\n```json\r\n{\r\n  \"username\": \"rootus_rootus\",\r\n  \"password\": \"thebigsecret\",\r\n  \"eauth\": \"auto\"\r\n}\r\n```\r\n\r\n`rest_tornado` only accepts the latter\r\n\r\nBtw - great kudos for the awesome plugin!"},"comment":{"url":"https://api.github.com/repos/jenkinsci/saltstack-plugin/issues/comments/261945341","html_url":"https://github.com/jenkinsci/saltstack-plugin/issues/45#issuecomment-261945341","issue_url":"https://api.github.com/repos/jenkinsci/saltstack-plugin/issues/45","id":261945341,"user":{"login":"fracklen","id":2706577,"avatar_url":"https://avatars.githubusercontent.com/u/2706577?v=3","gravatar_id":"","url":"https://api.github.com/users/fracklen","html_url":"https://github.com/fracklen","followers_url":"https://api.github.com/users/fracklen/followers","following_url":"https://api.github.com/users/fracklen/following{/other_user}","gists_url":"https://api.github.com/users/fracklen/gists{/gist_id}","starred_url":"https://api.github.com/users/fracklen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fracklen/subscriptions","organizations_url":"https://api.github.com/users/fracklen/orgs","repos_url":"https://api.github.com/users/fracklen/repos","events_url":"https://api.github.com/users/fracklen/events{/privacy}","received_events_url":"https://api.github.com/users/fracklen/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T13:59:38Z","updated_at":"2016-11-21T13:59:38Z","body":"I've filed an issue in saltstack/salt to get clarity of what is expected behaviour"}}
{"actor":{"display_login":"fracklen"}}