Issues Integrating My Website’s Login System with NodeBB SSO Plugin
-
Hi NodeBB Community,
I’m trying to integrate my website’s custom login system with NodeBB using the SSO plugin, but I’m running into issues during the authentication process. Users are redirected correctly to the login page, but after entering their credentials, they’re not being logged into NodeBB, and no session is created.
Here’s what I’ve done so far:
Configured the SSO plugin with my website’s API endpoints for login and user verification.
Ensured CORS is properly configured on the website’s backend.
Tested the API endpoints independently and they return the correct user data.
Could this be an issue with the plugin’s callback URL or how the session tokens are being handled? Any tips on troubleshooting SSO integrations with NodeBB would be greatly appreciated!Thanks in advance!
-
Hi @Ben-Stokes can you share which plugin you're using; is it sso-oauth2-multiple?
-
Thanks for getting back to me! I’m using the nodebb-plugin-sso-oauth plugin for this integration. If there’s a better-suited plugin like sso-oauth2-multiple for handling this scenario, I’d be open to switching. Do you think the issue might be related to the callback URL configuration in my current setup? Also, are there any specific logs or debug steps you recommend to pinpoint where the process might be failing? Thanks again for your help!
-
@Ben-Stokes oauth2-multiple is just newer and doesn't require the dev to fork the plugin.
You just install it and configure the information inside the ACP settings page.
Give that a shot instead?