Detecting user already logged in when using SSO

to do this cleanly and transparently we would need to add a special query param that you understand like say ?checkonly that forces you to always redirect back and then do some iframe magic, either that or:

  1. have your main site allow XHR from the discourse site and simply do a json call.
  2. you add a jsonp endpoint and use that for the test

regardless pulling this off is technically a bit tricky, not that I am against it.

إعجاب واحد (1)