Can I require a Discourse login to view things on a different site?

Imagine i have ths

site.com/stuff
discourse.site.com

How can i make it so in orfder for someone to view the content inside “/stuff” be logged in?

There are two types of Discourse SSO (Single Sign On), you want the one where Discourse is the provider:

2 Likes

Does this also work when users authenticate using a third party eg google or facebook?

See also

https://github.com/discourse/discourse-auth-proxy

We use it extensively and allows very seamless integration even with sites that do not implement auth properly.

Other option is SSO as @DeanMarkTaylor pointed out. (technically auth proxy uses SSO its just much easier to configure in certain cases)

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.