@pitaj Nice that was easy! Thank you 🙂
I tried to create a patch:
I no longer have a NodeBB instance, so let me know if it works (I am honestly not sure, as /logout should be allowed as you are logged in.
It would be interesting to check if req.loggedIn is correctly set when using SSO. This could be why the plugin is not working as you need.
NPM link: https://www.npmjs.com/package/nodebb-plugin-private-forum/v/1.3.1
@livey0u It is just a requirejs module so just require it.
Is there a way to implement redirect to previous page after oauth login, like at original login page /login?next=admin I mean something like this /auth/oauth?next=admin