• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

I want to use nodeBB in my Website. Please help me.

Scheduled Pinned Locked Moved NodeBB Development
5 Posts 2 Posters 1.1k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yami
    wrote on last edited by
    #1

    hello, I'm student.
    I want to use nodeBB in my website.

    but, My website using session login, so I want,
    when I register in website, I also register to nodeBB.

    Can I do this? or Do you have anything solution?
    (I have to use session login..T__T)

    1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    wrote on last edited by
    #2

    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.


    Alternative would be using nodebb-plugin-session-sharing, the instructions for that are in the readme.

    Y 1 Reply Last reply
    0
  • Y Offline
    Y Offline
    yami
    replied to julian on last edited by
    #3

    @julian Thank you for reply,
    Can you explain to me about “oAuth2 end point”?

    1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    wrote on last edited by
    #4

    Unfortunately explaining the theory behind OAuth is beyond the scope of this forum, so I would recommend you do some additional research into why OAuth is used, and how it is implemented 😄

    Y 1 Reply Last reply
    0
  • Y Offline
    Y Offline
    yami
    replied to julian on last edited by
    #5

    @julian Thanks!

    umm.. I did insert data menually in database.
    like this,
    db.objects.insert({
    ... "_key" : "user:6",
    ... "username" : "test2",
    ... "userslug" : "test2",
    ... "email" : "[email protected]",
    ... "joindate" : 1525421227139.0,
    ... "lastonline" : 1525421227139.0,
    ... "picture" : "",
    ... "fullname" : "",
    ... "location" : "",
    ... "birthday" : "",
    ... "website" : "",
    ... "signature" : "",
    ... "uploadedpicture" : "",
    ... "profileviews" : 0,
    ... "reputation" : 0,
    ... "postcount" : 0,
    ... "topiccount" : 0,
    ... "lastposttime" : 0,
    ... "banned" : 0,
    ... "status" : "online",
    ... "uid" : 6,
    ... "password" : "$2a$12$buM7xOHIJdy.RK.eTmBph.EzPAIirzTjjDsLHjG/Y7Ogs0CvQlZES",
    ... "passwordExpiry" : 0
    ... })

    but I can't login to my nodebb project. That appear 403 error.
    Do you know why?

    sorry, I can't speak english well.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development