SSO via external site vs. subfolder setup

mhm, I’m a little bit unsatisfied and confused, but I believe that I have found a reason and a workaround for this:

After playing around heavily with several installations of Discourse in my environment the last days it seems that I hit a cookie related bug.

I’ve found the following cookies doubled each, set for the very same domain and path:

  • _t
  • _forum_session

This occured in two different browsers (Firefox and Chrome). Obviously the browsers or Discourse were not able to handle the duplication of cookies. I have no clue how this can happen.

I have removed all occurancies of _t and _forum_session and was able to log in successfully via SSO.

I’m not sure if anybody is willing to file a bug for this and to reproduce this behavior.

It has taken away two days of my live - hence probably it could be a good idea to consider having a closer look at the Discourse cookie management.