# Shared cookie SSO: Notifying frontend

**URL:** <https://meta.discourse.org/t/shared-cookie-sso-notifying-frontend/120012>\
**Category:** Development\
**Created:** [11.Июнь.2019 11:12:00 UTC](https://meta.discourse.org/t/shared-cookie-sso-notifying-frontend/120012 "2019-06-11T11:12:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![edL](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/edl/32/139152_2.png) [@edL](https://meta.discourse.org/u/edL)\
**Post date:** [11.Июнь.2019 11:12:00 UTC](https://meta.discourse.org/t/shared-cookie-sso-notifying-frontend/120012/1 "2019-06-11T11:12:00Z")

</div>

I’m writing a plugin to enable shared cookie SSO with a bespoke system, but I’m not sure how to let the Ember fronted know that a user has ‘logged in’ in this way.

I’ve subclassed `Auth::DefaultCurrentUserProvider` and extended `current_user` to check for our shared cookie if the super method hasn’t found a user. This all works fine if I log in to the external service and _then_ visit the forums, but if I’m already on the forums I have to do a manual refresh before Ember realises that I’m now logged in.

Is there a way to tell ember to do a login from the CurrentUserProvider/plugin?

---

_[View the full topic](https://meta.discourse.org/t/shared-cookie-sso-notifying-frontend/120012)._
