Is it possible to autologin discourse via iframe?

I have a discourse iframe inside my website and i’d like to autologin with specific credentials, is it possible via headers or urls changes?

If you want automatic login, you can implement DiscourseConnect - Official Single-Sign-On for Discourse (sso) and enable the site setting login required.

That said, running the whole Discourse inside an iframe is not a support use case, and will be a bad experience.

We do support some specialized iframes, for both Embedding Discourse Comments via Javascript and Embedding a list of Discourse Topics in another site.

2 Likes