A year and a half ago the Discourse on Ghost integration was announced, allowing Ghost members to seamlessly access the site’s forum with the same permissions they have on the publication. One “downside” of the integration is that it requires installation on a VPS, a task that many users of Ghost and/or Discourse may find a bit too daunting (as has been discussed on Ghost’s forum over the past few days).
Here on Discourse’s forum, the following was stated a few days ago about the integration of the two platforms:
While this would be great, another option might be the creation of a “ready-to-use” version that could be set up with Cloudflare Workers. While this would remove some of the friction for neophytes, an even better option might be the creation of a Discourse plugin, supposing such a thing is even possible. Seeing how there’s already a Sign in with Apple plugin, might this suggest that a Sign in with Ghost plugin might also technically be possible?
It’s doable, yes. Are there any docs somewhere for configuring Ghost as an identity provider? If yes and if oAuth is supported, you can likely use existing tooling to set this up without the need for a dedicated plugin.
So the current Discourse-on-Ghost integration would only need the D-o-G functionality to be self-hosted and not necessarily Ghost. Since that integration uses DiscourseConnect, it will work fine with any Discourse install out of the box, regardless on how it’s hosted.
Which would require self-hosting Discourse. So what problem would it solve? The burden would shift from self hosting a relatively simple Ghost-add on, to self-hosting Discourse.
Darn, alright, I hadn’t realised that unofficial & custom plugins were only available for Enterprise plans. I see what you mean then when you say that “The burden would shift from self hosting a relatively simple Ghost-add on, to self-hosting Discourse.” Problem is, while self-hosting the “simple add-on” may be too troublesome for the tech-challenged, some may want the reassurance that nothing is in their hands and that all operations are safe in the hands of the more competent.
That all being so @pmusaraj, seeing how custom plugins are available only for Enterprise plans, is it effectively the case that plugin-wise the only options are on the “extremes” – either self-hosting or Enterprise? I totally understand why custom plugins wouldn’t be available for Starter plans as Discourse needs to make some money to maintain itself, but might there be some middle-path here? Or alternatively, might there still be some other route besides a plugin or “configuring Ghost as an identity provider” that hasn’t been addressed?
If only there were a companycough that offered both official and non-official plugins on affordable hosted plans
But seriously, I think that such a solution should be widely available and not depend on a specific service.
It seems that D-o-G uses JWT integration towards Ghost. There is a JWT plugin for Discourse (official but only on enterprise plan?). That might be a direction worth investigating.
Given these plugins above, I don’t think a specific Ghost auth plugin for Discourse is warranted. Ghost would need to support one of these standards, and once they do, you don’t need a specific Ghost plugin. We’re open to collaborating here, but my gut feeling is that Ghost would need to do the heavy lifting of adding some IDP features to their offering.
The JWT route is also an option, as @RGJ noted, the plugin exists and it can likely be configured to do the same thing as the D-o-G intermediary. It’s a bit of an outdated standard though and we generally recommend OAuth, OpenID, SAML or DiscourseConnect.