ah okay... how does it come that this version is installed?... anyway, is there a way to check, which version is used by nodebb by myself?
How I can Integrate NodeBB into my website
Probably a spam user...
@hek well, that's quite targeted of spam, then!!
I've removed the url.
@julian could you then maybe help me with the log in issues I am having. I used ns-log in and also tried to log in without an api.
With the ns-log in, I successfully log but nothing happens afterwards. Logging in without an api gives me 403 forbidden error.
I am totally stumped.
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.
This post is deleted!
@julian I've successfully integrated the SSO oauth plugin with my website using OAuth2orize. I can log in but i don't know how to log out. Any idea?
@smendez-hi You'll want to call
app.logout()from NodeBB and send the user to the associated logout route from your app.
@julian I have that already. I want it the other way: if the user logs out from my website, log him out from NodeBB. Is it possible?
I found out that if i remove the cookie
express.sidthen i'm logged out... But i don't like that workaround. Any other ideas to log out from the outside?
That is an acceptable solution