using nodebb to login to another site

General Discussion
  • hey there!

    i'm making a chat app for my users, and i was wondering if i could make it so people login to my chat app using their nodebb usernames and passwords.

    i've done some googling and i can find how to make it so people can login to nodebb from another site (like facebook), but i want to make it so people login to my site using their nodebb accounts.

    is this possible? my chat app is being written in nodejs and it will be hosted at the same place as the nodebb blog and the database.

    thanks!

  • HI @jeffalo -- not easily...

    The long and the short of it is that NodeBB can easily act as an OAuth client, that's what it's doing when you let users log in via Facebook/Google/etc.

    To act as an OAuth server requires quite a bit of extra work and isn't exactly something we support at the moment.

    We did have a plugin for it years ago, but it did not work properly and so for the time being we do not have anything like this.

  • @julian aw that's unfortunate but thanks for the response though!

    what about if my chat app made a direct connection to the database would that be possible?

    the only issue i think then would be hashing the passwords the same way when checking if it's correct, but i dont know much about how databases work yet.

  • @jeffalo yes you can connect to NodeBB more directly and use session-sharing instead.


Suggested Topics


  • 0 Votes
    2 Posts
    551 Views

    We currently don't have an NSFW filter plugin, but I don't see why one cannot be made 😄

  • 0 Votes
    1 Posts
    3k Views

    Anyone had experience using Opbeat (https://opbeat.com/) with nodebb?
    Opbeat is a good logging and debugging tool. They have plugin for nodejs. I'm wondering do we have to modify nodebb code(app.js?) or we can do it through a nodebb plugin?

    Thanks!

    Here is their instructions for nodejs app:
    0_1507658427102_opbeat_nodejs.jpg

  • -1 Votes
    1 Posts
    1k Views

    Hey there,
    

    I recently announced a URL shortener focused on shortening Minecraft: PE server voting pages. Our aim is to offer you a simple, modern and fast service to shorten voting links.
    

    Although we put a small "About Us" section on the right side of any shortened URL, you have to understand that we have just started and want to earn few sales with our premium subscription. This includes advertising services on the site, however we never put other servers in a shortened URL, we just do it on the home page.
    

    Check out our homepage, know more about us, and if you want, check out the premium section. For a subscription of $5 per month you get a lot of features and a dedicated control panel to be an expert handling your URLs. More active subscriptions: we can cover the cost of the service and offer you new features.
    

    Visit mc-pe.us right now and help grow this project. The domain was very difficult to find and the few who are active with such number of characters!
    

    / Kevin Andrews
    
https://kenygamer.com

  • 0 Votes
    2 Posts
    2k Views

    ./nodebb start is a replacement for forever - if one node goes down it will attempt to restart, and of course, clustering would work

  • Mybb to Nodebb migration

    General Discussion
    14
    0 Votes
    14 Posts
    6k Views

    @Areks, open up a ticket here https://github.com/akhoury/nodebb-plugin-import/issues

    please share all the info you have, meaning
    Node version,
    Nodebb version
    redis version, although i recommend mongodb

    also, if you want, send me a copy of the dump, and I give it a shot.