How Discourse implements Auth w/ Ember


(cpk) #1

I am wondering, on a high level, how Discourse handles authentication in Ember. In the Discourse github repo, it looks like a Rails session cookie is being used to manage user state. I am not sure where the object that is being returned from Discourse.User.current() is being set on each request.

I am interested in implementing Ember in existing rails apps where a somewhat incremental approach would be ideal. Any insight on best practices would be greatly appreciated. Thanks!

-C