# Detecting user already logged in when using SSO

**URL:** <https://meta.discourse.org/t/detecting-user-already-logged-in-when-using-sso/26968>\
**Category:** Feature\
**Tags:** sso, discourseconnect\
**Created:** [2015 年 3 月 30 日午前 12:21 UTC](https://meta.discourse.org/t/detecting-user-already-logged-in-when-using-sso/26968 "2015-03-30T00:21:02Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![tomdcc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomdcc/32/115890_2.png) [@tomdcc](https://meta.discourse.org/u/tomdcc)\
**Post date:** [2015 年 3 月 30 日午前 1:31 UTC](https://meta.discourse.org/t/detecting-user-already-logged-in-when-using-sso/26968/8 "2015-03-30T01:31:56Z")

</div>

OK, so there might be a flash of un-logged-in content, but there’s not much that we can do about that at this time.

So we’re talking about getting the current logged-in status via one of:

- IFRAME + redirect
- JSON get requiring CORS headers etc
- JSONP script

Last seems like the simplest for both Discourse and the SSO provider to implement.

---

_[View the full topic](https://meta.discourse.org/t/detecting-user-already-logged-in-when-using-sso/26968)._
