Hello everyone,
I am working on a project that integrates SSO (Single Sign-On) functionality. My goal is to redirect users to another website when they click the "Register" button on my NodeBB forum. The external site will handle user registration.
Hello everyone,
I am working on a project that integrates SSO (Single Sign-On) functionality. My goal is to redirect users to another website when they click the "Register" button on my NodeBB forum. The external site will handle user registration.
I am working on integrating NodeBB with Keycloak to ensure seamless user authentication and registration. Specifically, I want:
Login Requirement: When a user logs in, the system should validate their credentials against both NodeBB's MongoDB database and Keycloak.
Registration Requirement: When a user registers, their information needs to be stored in both NodeBB's MongoDB database and Keycloak.
Could someone guide me on which files or configurations need to be modified to implement this functionality? Any pointers or examples would be greatly appreciated!
hi, guys when I am trying to integrate the keycloak with the nodebb I am facing the following errors:
although the session are getting created at the keycloak:
I am using the following thing to do the integration(nodebb-plugin-sso-oauth2-multiple).
hi, @David-Sargrad have you completed authentication using keycloak because I am also facing the same issues for the integration
Yes, I have tried the sso-oauth2-multiple plugin, and I am currently working on it. However, I am facing some issues. While the user credentials for login and registration are being stored in Keycloak, I am encountering the following errors:
Refresh Token Error:
2024-11-21 18:49:12,101 WARN [org.keycloak.events] (executor-thread-17) type="REFRESH_TOKEN_ERROR", realmId="REDACTED", realmName="REDACTED", clientId="REDACTED", userId="null", ipAddress="0:0:0:0:0:0:0:1", error="invalid_token", reason="Token is not active", grant_type="refresh_token", client_auth_method="client-secret"
Login Error:
2024-11-21 18:49:40,492 WARN [org.keycloak.events] (executor-thread-18) type="LOGIN_ERROR", realmId="REDACTED", realmName="REDACTED", clientId="REDACTED", userId="REDACTED", ipAddress="0:0:0:0:0:0:0:1", error="invalid_user_credentials", auth_method="openid-connect", auth_type="code", redirect_uri="http://localhost/REDACTED", code_id="REDACTED", username="REDACTED"
also seeing the following errors in the console.
These errors seem to suggest issues with either the refresh token being inactive or invalid user credentials during login. Do you have any suggestions on resolving these?
It would be highly beneficial to integrate Keycloak as an authentication option in NodeBB, as it aligns with the authentication system used by my primary website. This integration would enable seamless Single Sign-On (SSO) for users, eliminating the need to manage separate sign-ups for the main application and the forum. By leveraging Keycloak, which offers robust authentication and authorization features, the forum can inherit the security and scalability of the existing setup. This not only simplifies the user experience but also ensures consistency in user management across both platforms, enhancing overall efficiency and usability.