# How Discourse implements Auth w/ Ember

**URL:** https://meta.discourse.org/t/how-discourse-implements-auth-w-ember/69423
**Category:** Development
**Created:** [2017年九月5日 19:35 UTC](https://meta.discourse.org/t/how-discourse-implements-auth-w-ember/69423 "2017-09-05T19:35:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Craig\_Kahle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craig_kahle/32/115539_2.png) [@Craig\_Kahle](https://meta.discourse.org/u/Craig_Kahle)
#### Post date: [2017年九月5日 19:35 UTC](https://meta.discourse.org/t/how-discourse-implements-auth-w-ember/69423/1 "2017-09-05T19:35:35Z")

</div>

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
