How do I log the user in using SSO when redirecting from my application?
-
What I already have:
I've installed NodeBB on premise and finished the basic setup to have it working. I set up the SSO plugin and now I have a button on the login screen that says Login via SSO. When I click this button, it takes me to my Cognito hosted UI login screen where I can use the Cognito username and password to login to NodeBB.What I'm trying to achieve:
I have my web app where I use my own auth endpoint that validates the user from an AWS Cognito User Pool. Now, there's a link in my application which redirects the user to my NodeBB site. I want the user to be logged in automatically without having to go through the Cognito hosted UI login screen when the user is redirected to NodeBB home screen from my application.Is this possible? How would I go about implementing this?
-
This is exactly what the Session Sharing plugin does: https://github.com/julianlam/nodebb-plugin-session-sharing