{"action":"created","issue":{"url":"https://api.github.com/repos/lonelycode/tyk-dashboard-docker/issues/3","repository_url":"https://api.github.com/repos/lonelycode/tyk-dashboard-docker","labels_url":"https://api.github.com/repos/lonelycode/tyk-dashboard-docker/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/lonelycode/tyk-dashboard-docker/issues/3/comments","events_url":"https://api.github.com/repos/lonelycode/tyk-dashboard-docker/issues/3/events","html_url":"https://github.com/lonelycode/tyk-dashboard-docker/issues/3","id":158124647,"number":3,"title":"Issue with bootstrap script","user":{"login":"alexraju","id":11927055,"avatar_url":"https://avatars.githubusercontent.com/u/11927055?v=3","gravatar_id":"","url":"https://api.github.com/users/alexraju","html_url":"https://github.com/alexraju","followers_url":"https://api.github.com/users/alexraju/followers","following_url":"https://api.github.com/users/alexraju/following{/other_user}","gists_url":"https://api.github.com/users/alexraju/gists{/gist_id}","starred_url":"https://api.github.com/users/alexraju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexraju/subscriptions","organizations_url":"https://api.github.com/users/alexraju/orgs","repos_url":"https://api.github.com/users/alexraju/repos","events_url":"https://api.github.com/users/alexraju/events{/privacy}","received_events_url":"https://api.github.com/users/alexraju/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-06-02T12:04:32Z","updated_at":"2016-06-03T11:41:02Z","closed_at":null,"body":"In [bootstrap.sh](https://raw.githubusercontent.com/lonelycode/tyk-dashboard-docker/version/v1.1/bootstrap.sh), \r\n\r\n`USER_DATA=$(curl --silent --header \"admin-auth: 12345\" --header \"Content-Type:application/json\" --data '{\"first_name\": \"John\",\"last_name\": \"Smith\",\"email_address\": \"'$RANDOM_USER'@default.com\",\"password\":\"'$PASS'\", \"active\": true,\"org_id\": \"'$ORGID'\"}' http://$LOCALIP:3000/admin/users 2>&1)`\r\n\r\nis giving me the following response:\r\n\r\n`{\"Status\":\"OK\",\"Message\":\"User created\",\"Meta\":\"\"}`\r\n\r\nThe message information is simply 'User created' text and we are using this as authorization header value in below request.\r\n\r\n```\r\nUSER_CODE=$(echo $USER_DATA | python -c 'import json,sys;obj=json.load(sys.stdin);print obj[\"Message\"]')\r\necho \"USER AUTH: $USER_CODE\" \r\n\r\nUSER_LIST=$(curl --silent --header \"authorization: $USER_CODE\" http://$LOCALIP:3000/api/users 2>&1)\r\n```\r\n\r\nAnd no wonder, its giving me following error.\r\n\r\n`{\"Status\":\"Error\",\"Message\":\"Not authorised\",\"Meta\":\"\"}`\r\n\r\nPlease help me to create tyk users for logging to dashboard."},"comment":{"url":"https://api.github.com/repos/lonelycode/tyk-dashboard-docker/issues/comments/223557625","html_url":"https://github.com/lonelycode/tyk-dashboard-docker/issues/3#issuecomment-223557625","issue_url":"https://api.github.com/repos/lonelycode/tyk-dashboard-docker/issues/3","id":223557625,"user":{"login":"alexraju","id":11927055,"avatar_url":"https://avatars.githubusercontent.com/u/11927055?v=3","gravatar_id":"","url":"https://api.github.com/users/alexraju","html_url":"https://github.com/alexraju","followers_url":"https://api.github.com/users/alexraju/followers","following_url":"https://api.github.com/users/alexraju/following{/other_user}","gists_url":"https://api.github.com/users/alexraju/gists{/gist_id}","starred_url":"https://api.github.com/users/alexraju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexraju/subscriptions","organizations_url":"https://api.github.com/users/alexraju/orgs","repos_url":"https://api.github.com/users/alexraju/repos","events_url":"https://api.github.com/users/alexraju/events{/privacy}","received_events_url":"https://api.github.com/users/alexraju/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T11:41:02Z","updated_at":"2016-06-03T11:41:02Z","body":"@lonelycode I'm setting up Tyk in Marathon. So, you see I can't use the docker compose as it is."}}
{"actor":{"display_login":"alexraju"}}