{"action":"created","issue":{"url":"https://api.github.com/repos/Puzzlout/TrekToursApi/issues/6","repository_url":"https://api.github.com/repos/Puzzlout/TrekToursApi","labels_url":"https://api.github.com/repos/Puzzlout/TrekToursApi/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Puzzlout/TrekToursApi/issues/6/comments","events_url":"https://api.github.com/repos/Puzzlout/TrekToursApi/issues/6/events","html_url":"https://github.com/Puzzlout/TrekToursApi/issues/6","id":160647789,"number":6,"title":"Implement Lexik JWT Bundle","user":{"login":"damirius","id":1443969,"avatar_url":"https://avatars.githubusercontent.com/u/1443969?v=3","gravatar_id":"","url":"https://api.github.com/users/damirius","html_url":"https://github.com/damirius","followers_url":"https://api.github.com/users/damirius/followers","following_url":"https://api.github.com/users/damirius/following{/other_user}","gists_url":"https://api.github.com/users/damirius/gists{/gist_id}","starred_url":"https://api.github.com/users/damirius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damirius/subscriptions","organizations_url":"https://api.github.com/users/damirius/orgs","repos_url":"https://api.github.com/users/damirius/repos","events_url":"https://api.github.com/users/damirius/events{/privacy}","received_events_url":"https://api.github.com/users/damirius/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Puzzlout/TrekToursApi/labels/state:enhancement","name":"state:enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"damirius","id":1443969,"avatar_url":"https://avatars.githubusercontent.com/u/1443969?v=3","gravatar_id":"","url":"https://api.github.com/users/damirius","html_url":"https://github.com/damirius","followers_url":"https://api.github.com/users/damirius/followers","following_url":"https://api.github.com/users/damirius/following{/other_user}","gists_url":"https://api.github.com/users/damirius/gists{/gist_id}","starred_url":"https://api.github.com/users/damirius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damirius/subscriptions","organizations_url":"https://api.github.com/users/damirius/orgs","repos_url":"https://api.github.com/users/damirius/repos","events_url":"https://api.github.com/users/damirius/events{/privacy}","received_events_url":"https://api.github.com/users/damirius/received_events","type":"User","site_admin":false},"assignees":[{"login":"damirius","id":1443969,"avatar_url":"https://avatars.githubusercontent.com/u/1443969?v=3","gravatar_id":"","url":"https://api.github.com/users/damirius","html_url":"https://github.com/damirius","followers_url":"https://api.github.com/users/damirius/followers","following_url":"https://api.github.com/users/damirius/following{/other_user}","gists_url":"https://api.github.com/users/damirius/gists{/gist_id}","starred_url":"https://api.github.com/users/damirius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damirius/subscriptions","organizations_url":"https://api.github.com/users/damirius/orgs","repos_url":"https://api.github.com/users/damirius/repos","events_url":"https://api.github.com/users/damirius/events{/privacy}","received_events_url":"https://api.github.com/users/damirius/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Puzzlout/TrekToursApi/milestones/2","html_url":"https://github.com/Puzzlout/TrekToursApi/milestones/authentication","labels_url":"https://api.github.com/repos/Puzzlout/TrekToursApi/milestones/2/labels","id":1832111,"number":2,"title":"authentication","description":null,"creator":{"login":"damirius","id":1443969,"avatar_url":"https://avatars.githubusercontent.com/u/1443969?v=3","gravatar_id":"","url":"https://api.github.com/users/damirius","html_url":"https://github.com/damirius","followers_url":"https://api.github.com/users/damirius/followers","following_url":"https://api.github.com/users/damirius/following{/other_user}","gists_url":"https://api.github.com/users/damirius/gists{/gist_id}","starred_url":"https://api.github.com/users/damirius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damirius/subscriptions","organizations_url":"https://api.github.com/users/damirius/orgs","repos_url":"https://api.github.com/users/damirius/repos","events_url":"https://api.github.com/users/damirius/events{/privacy}","received_events_url":"https://api.github.com/users/damirius/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-06-16T12:18:55Z","updated_at":"2016-06-24T22:09:31Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-06-16T12:18:56Z","updated_at":"2016-06-28T05:01:23Z","closed_at":null,"body":"Setup for JWT API authentication"},"comment":{"url":"https://api.github.com/repos/Puzzlout/TrekToursApi/issues/comments/228948776","html_url":"https://github.com/Puzzlout/TrekToursApi/issues/6#issuecomment-228948776","issue_url":"https://api.github.com/repos/Puzzlout/TrekToursApi/issues/6","id":228948776,"user":{"login":"WebDevJL","id":3506074,"avatar_url":"https://avatars.githubusercontent.com/u/3506074?v=3","gravatar_id":"","url":"https://api.github.com/users/WebDevJL","html_url":"https://github.com/WebDevJL","followers_url":"https://api.github.com/users/WebDevJL/followers","following_url":"https://api.github.com/users/WebDevJL/following{/other_user}","gists_url":"https://api.github.com/users/WebDevJL/gists{/gist_id}","starred_url":"https://api.github.com/users/WebDevJL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WebDevJL/subscriptions","organizations_url":"https://api.github.com/users/WebDevJL/orgs","repos_url":"https://api.github.com/users/WebDevJL/repos","events_url":"https://api.github.com/users/WebDevJL/events{/privacy}","received_events_url":"https://api.github.com/users/WebDevJL/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T05:01:23Z","updated_at":"2016-06-28T05:01:23Z","body":"@damirius \r\n\r\nRegarding Travis CI, you can already test it as each commit on a given branch is built. See here: [for the Flyer](https://travis-ci.org/Puzzlout/TrekToursFlyer/branches) and [for the Api](https://travis-ci.org/Puzzlout/TrekToursApi/branches).\r\n\r\nRegarding the procedure to test all that, here is my feedback:\r\n1. I have switch to `feature_authentication` branch.\r\n2. I ran `cd var/jwt/`\r\n3. I ran `openssl genrsa -out ./private.pem -aes256 4096` and then `openssl rsa -pubout -in ./private.pem -out ./public.pem`. ***All good***.\r\n4. I went back to the root of the project: `cd ../../`\r\n5. I ran `sh CloudDeploy/Project/TrekTours/Api/refresh.sh prod` where I was asked to confirm:\r\n  a. the path of private.pem (hit enter since I stored in the default location)\r\n  b. the path of public.pem (hit enter since I stored in the default location)\r\n  c. I typed the same passphrase I entered while running step 3\r\n  d. I left the default ttl\r\n6. I ran `php bin/console fos:user:create oneuser test@test.com testpass --super-admin`\r\n7. I tested the `/me` endpoint and got HTTP/401:\r\n![screen shot 2016-06-28 at 06 58 34](https://cloud.githubusercontent.com/assets/3506074/16404278/d21f5fc8-3cfd-11e6-8b55-09e38cf14c85.png)\r\n\r\nSo what am I missing?\r\n\r\nIs it mandatory to setup the vhosts? On Cloud 9, which is our current hosting to showcase the project to the client, I can't setup vhosts.\r\n\r\nLocally, I am not using vhosts. My urls are:\r\n- API: http://localhost/TrekToursApi/web/doc\r\n- Flyer: http://localhost/TrekToursFlyer/web\r\n\r\nThanks for the analysis"}}
{"actor":{"display_login":"WebDevJL"}}