I have created a somewhat makeshift SSO bridge between Discourse and Nextcloud (or Nextcloud SSO) for internal use, after the Nextcloud-Discourse plugin didn’t work for me. Essentially, it’s an adapter that exposes the internal Discourse SSO as an external OAuth2 service. With minor modifications to the PHP source code, you can also differentiate based on groups or trust level who gets what access in Nextcloud. Discourse is the master, but the whole thing should run on a separate Vhost as a login service. I’m happy to provide it if you’re interested.
3 Likes