NodeBB + Ghost



  • I'm trying to have NodeBB running inside a web of Ghost, to do this I need to integrate the session and login/logout and be able to embed NodeBB without the upper toolbar.

    To integrate the login I'm thinking of using:

    https://github.com/julianlam/nodebb-plugin-sso-oauth

    And as Oauth2 server: node-oauth2-server-2.2.1

    Any hints on this? Anybody has done it before?

    Also what about embedding the forum, I just need to edit the theme and that's it?



  • The way to embeded NodeBB in another website is to use iframely?


  • Admin

    The recommended method of sharing sessions between two separate and distinct applications is through OAuth2. We recommend this approach because NodeBB maintains its own user records, so that we can keep track of user-related metrics and other data. Relying on another database would be tricky, prone to breaking, and quite possibly dangerous.

    Luckily, it's quite straightforward to get things working with OAuth2!

    The first step is getting your application to expose an OAuth2 endpoint. If you're running a Node.js based app, you can use a module called OAuth2orize.

    Once that is set up, you'll want to take a look at the SSO plugin skeleton for customised OAuth deployments -- nodebb-plugin-sso-oauth. You'll take this plugin, fork it, and modify it to communicate with your OAuth endpoint.

    Once everything is working properly, you should be able to register and log in/out via your web app.


Log in to reply
 

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.