nvm. Ended up ditching the plugin and just extending NodeBB, which works a lot better for my needs
Jessica Wise
Posts
-
Question about Nodebb-plugin-sso-oauth callback functionality -
Question about Nodebb-plugin-sso-oauth callback functionalityHi! I have been working on this for a few days, and could use some insight.
I am working on setting up the Oauth SSO plugin for Nodebb, and have gotten pretty far- I am able to exchange a hash of my client secret and ID for a token, and then redirect the user to the login page. The callback URL is as specified- a relative URL pointing to /auth/<name>/callback, and it looks like my SSO service (custom in house auth system) is making the callback. However, it looks like I am stuck in a loop where the callback just sends a new auth request!
Where is this callback behavior handled? I've been reading through the libraries and tracing the route the application takes, and I am able to get all the way up to the point I send the redirect, but loose the trail after that.
Any advice would be greatly appreciated. Thanks!