What is the best way to handle user authentication with ember?


#1

I have a boiler with Express and Passport on the server and Ember on the client:

Currently, I’m handling auth server side and then strapping the logged in user to my server index template, from there ember picks it up from the global namespace.

It seems like this is not the proper way to do this with ember and is limiting me in a variety of ways. I also suspect it’s not that secure. What is a good solution that is also a proven secure way for single page ember apps?


#2

Were you ever able to solve this?


#3

Yes, I’ve now integrated ember-simple-auth into my project, check this out:

the last several commits are all about auth


#4

Does that plugin do json web tokens?


#5

that’s its out of the box functionality