{"action":"opened","issue":{"url":"https://api.github.com/repos/sdiaz/FOSRestBundleByExample/issues/23","labels_url":"https://api.github.com/repos/sdiaz/FOSRestBundleByExample/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/sdiaz/FOSRestBundleByExample/issues/23/comments","events_url":"https://api.github.com/repos/sdiaz/FOSRestBundleByExample/issues/23/events","html_url":"https://github.com/sdiaz/FOSRestBundleByExample/issues/23","id":107349955,"number":23,"title":"Unauthorized?","user":{"login":"robbanl","id":922250,"avatar_url":"https://avatars.githubusercontent.com/u/922250?v=3","gravatar_id":"","url":"https://api.github.com/users/robbanl","html_url":"https://github.com/robbanl","followers_url":"https://api.github.com/users/robbanl/followers","following_url":"https://api.github.com/users/robbanl/following{/other_user}","gists_url":"https://api.github.com/users/robbanl/gists{/gist_id}","starred_url":"https://api.github.com/users/robbanl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbanl/subscriptions","organizations_url":"https://api.github.com/users/robbanl/orgs","repos_url":"https://api.github.com/users/robbanl/repos","events_url":"https://api.github.com/users/robbanl/events{/privacy}","received_events_url":"https://api.github.com/users/robbanl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-19T18:49:32Z","updated_at":"2015-09-19T18:49:32Z","closed_at":null,"body":"Hello,\r\n\r\nI have some problems reaching resources requiring authentication.\r\n\r\nUsing FosUserBundle and have a user created. Copied your controller methods for fetching salt, getting token and fetching information about a user.\r\n\r\nWhat I do:\r\n\r\n1. Fetch the user salt - Returns the same salt stored in the database (GET /api/v1/user/users/myusername/salt.json)\r\n2. Fetch WSSE token using username, password and salt - Returns an array with X-WSSE (POST /api/v1/tokens.json)\r\n3. Try to fetch information about user (GET /api/v1/user/users/myusername.json)\r\n\r\ncURL headers are set with:\r\n\r\n```\r\n$headers = [\r\n    CURLOPT_HTTPHEADER => (array)json_decode($tokenRequest->getContent())\r\n];\r\n```\r\n\r\nStill I get error 401: You are not authenticated.\r\n\r\nAlso tried generating a WSSE token using CLI tool\r\n\r\n```\r\nphp app/console app:token:create myusername mysecretpassword\r\n```\r\n\r\nHave I missed some really basic stuff? \r\n\r\nThanks!"}}