{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/389","labels_url":"https://api.github.com/repos/meanjs/mean/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/389/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/389/events","html_url":"https://github.com/meanjs/mean/issues/389","id":56409586,"number":389,"title":"MEAN.js 0.4.0 with token authentication?","user":{"login":"ricardodovalle","id":3634150,"avatar_url":"https://avatars.githubusercontent.com/u/3634150?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardodovalle","html_url":"https://github.com/ricardodovalle","followers_url":"https://api.github.com/users/ricardodovalle/followers","following_url":"https://api.github.com/users/ricardodovalle/following{/other_user}","gists_url":"https://api.github.com/users/ricardodovalle/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardodovalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardodovalle/subscriptions","organizations_url":"https://api.github.com/users/ricardodovalle/orgs","repos_url":"https://api.github.com/users/ricardodovalle/repos","events_url":"https://api.github.com/users/ricardodovalle/events{/privacy}","received_events_url":"https://api.github.com/users/ricardodovalle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"lirantal","id":316371,"avatar_url":"https://avatars.githubusercontent.com/u/316371?v=3","gravatar_id":"","url":"https://api.github.com/users/lirantal","html_url":"https://github.com/lirantal","followers_url":"https://api.github.com/users/lirantal/followers","following_url":"https://api.github.com/users/lirantal/following{/other_user}","gists_url":"https://api.github.com/users/lirantal/gists{/gist_id}","starred_url":"https://api.github.com/users/lirantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lirantal/subscriptions","organizations_url":"https://api.github.com/users/lirantal/orgs","repos_url":"https://api.github.com/users/lirantal/repos","events_url":"https://api.github.com/users/lirantal/events{/privacy}","received_events_url":"https://api.github.com/users/lirantal/received_events","type":"User","site_admin":false},"milestone":null,"comments":36,"created_at":"2015-02-03T17:30:10Z","updated_at":"2015-03-20T14:08:08Z","closed_at":null,"body":"I would like to use MEAN.js with token authentication, but I am a  Node.js beginner and I am porting a Rails app to learn.\r\n\r\nI created a small project and add some features, the `'api/signin'` route is returning the token (`loginToken`) encoded with json web token (`jwt`), but I need help.\r\n\r\nHow to connect and keep Angular session a live using token?\r\nHow to add `express-jwt` and to protect all `/api` route keeping the project organized?\r\nWhat is the correct way to store the secret? `(users.authentication.server.controller.js and strategies/local-token.js)`?\r\nWhat is the correct way to user `signout`?\r\n\r\n*Working on: https://github.com/ricardodovalle/meanjs-token-auth*\r\n\r\nThank you very much.\r\n"},"comment":{"url":"https://api.github.com/repos/meanjs/mean/issues/comments/84023531","html_url":"https://github.com/meanjs/mean/issues/389#issuecomment-84023531","issue_url":"https://api.github.com/repos/meanjs/mean/issues/389","id":84023531,"user":{"login":"britztopher","id":681690,"avatar_url":"https://avatars.githubusercontent.com/u/681690?v=3","gravatar_id":"","url":"https://api.github.com/users/britztopher","html_url":"https://github.com/britztopher","followers_url":"https://api.github.com/users/britztopher/followers","following_url":"https://api.github.com/users/britztopher/following{/other_user}","gists_url":"https://api.github.com/users/britztopher/gists{/gist_id}","starred_url":"https://api.github.com/users/britztopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britztopher/subscriptions","organizations_url":"https://api.github.com/users/britztopher/orgs","repos_url":"https://api.github.com/users/britztopher/repos","events_url":"https://api.github.com/users/britztopher/events{/privacy}","received_events_url":"https://api.github.com/users/britztopher/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T14:08:07Z","updated_at":"2015-03-20T14:08:07Z","body":"So as an update: after looking at satallizer all yesterday and seeing how it would fit within our application's front and backend. I started yesterday to try to do with @dotch  was saying.  So far I've removed the authentication pieces for passport on the backend and now trying to wire up the frontend to make all the auth calls via satallizer.  I will continue to evolve this, and will post updates to progress.  Implementing satallizer seems pretty straightforward, however, I need to just dig into how we are doing things now to better understand current mean.js structures and concepts.  Once I do that then just creating a couple of my own classes to handle auth in the init section of the backend will go smoothly and cleanly.  First is understanding the current structure as the 0.4.0 branch is somewhat different.  \r\n\r\n@lirantal I guess there is no kind of ticket or agile board for these kind of issues?"}}