I recently started making an app in Emberjs. It is my first app and I am much impressed with how easy Ember makes making front-end apps.

However, things were going fine until I had to implement authentication in my app (using 2.0 btw). Prior to this, I only have experience working with Rails and I am not clear with how to go about with authentication here. I will be using Rails as a backend for the same. Also, the content on the web has only managed to overwhelm me And even though, I have been successful in making something to work out, things only look magic to me!

Right now I have only dabbled with implementations using the ember-simple-auth - [link] (https://github.com/simplabs/ember-simple-auth/tree/jj-abrams/tests/dummy/app/adapters). So, I will speak in its context.

Firstly, does the authentication occur only on the front-end with it? Like I said, I intend to have a Rails backend to my app and was wondering about this, since I only intend to provide authentication via Facebook and Google (both OAuth 2.0) right now.

In case, it is possible, I won’t be able to refer/map the logged in user with a ‘Person’ in the backend, right?

What about torii - [link] (https://github.com/Vestorly/torii)? Is it necessary to use it with ember-simple-auth? What advantage does it provide in case I use it?

Will this make my life easier? - http://github.com/simplabs/rails_api_auth

Also, I once came across a post which briefly described the working of the ember-simple-auth library, I mean not the integration code but can’t find it back. Please post it here, in case you get hold of it.

Thanks!