Does NodeBB provide support for a user database other than the one it builds in mongo? How would I integrate NodeBB with Keycloak?
-
One of the screenshots shows Node.js 16 in use and Node.js 18 or 20 is required.
https://community.nodebb.org/topic/17723/nodebb-3-6-0-minimum-nodejs-version -
hmm.. ok.. ty
-
nodebb build now gives me an options menu
-
do i really need to migrate to node 18 or 20.. it seems that things are working
-
ty.. at some point we will absolutely move to 18 or 20.. but im hoping to make progress with 16 for now.
-
so it seems like i can define a provider now.. Not sure how to set this. I'll consult with some guys internally to see what i can learn about an "OAuth2 endpoint" exposed by Keycloak.
-
Do I need full URL's in the following?
Are fields like the authorization url required? Is the client secret required? We do have a client id that has a secret.
What looks wrong in the following? I get an "invalid data" message when I attempt to confirm.
-
Do I need full URL's in the following?
Are fields like the authorization url required? Is the client secret required? We do have a client id that has a secret.
What looks wrong in the following? I get an "invalid data" message when I attempt to confirm.
Apparently the client secret is required.
-
I was able to get to the Keycloak login prompt:
However the following failure occurs when I login.
Currently using this configuration:
Looking in keycloak, it did create a session for that login
-
The username is "dave1".. the email is a fake email: [email protected]
-
I also have a [email protected] user..
They both should work.
-
With those values, yeah, it should work.
At this point, I'd need some additional debugging info. Can you please go to
library.js
in the plugin and search for the string// New user
?Add this directly below it, but before the
user.create
call:console.log(payload);
Then restart NodeBB. I'd like to see what the profile data is normalized to.
-
on it. do i need to rebuild nodebb when i modifiy the plugin?
-
Hmm.. I dont see a console log.. I modified the library.js in the plugin directory.
Do I need to npm link that again?
Also I do see the following error in the console.. when I login.. This suggests that the callbark URL is not correct.
-
Maybe I misconfigured the redirect URI in the keycloak client:
-
Yet that seemed to be the one to use..
-
@David-Sargrad You're seeing a 500 error, which means it's the right URL but something happened on the backend. If it was the wrong URL it'd be a 404
If you modify a backend file, you have to restart NodeBB (but you don't have to rebuild). The files are cached (by Node.js) so you need to restart NodeBB so the cache is empty.
-
i see.. for some reason the console.log didnt go to the console.. that said.. i'm at the breakpoint where the console.log is ...
This is my payload object: