How Much Customization Required for the SSO Plugin?



  • I'm trying to activate the SSO-OAUTH plugin and running into errors. One of them occurs because of this line in the plugin source, library.js:

    var authenticationController = module.parent.require('./controllers/authentication');
    

    The ./controllers/authentication file is being referenced in library.js, which is in ~/mysite/public/node_modules/nodebb-plugin-sso-oauth, so... NOT at that path! It's actually at ~/mysite/public/src/.

    So, do I need to modify any and all references to files/folders in the plugin? I expected most of them to be relatively accurate.

    Thank you!


  • Global Moderator

    @c.k.-lester module.parent.require('./controllers/authentication') is importing the NodeBB authentication controllers API, not the one in your plugin. What is the actual error message?

    So, do I need to modify any and all references to files/folders in the plugin? I expected most of them to be relatively accurate.

    You shouldn't need to as long as the plugin is installed in the right place, and NodeBB is run with the correct cwd.


  • Admin

    @PitaJ said in How Much Customization Required for the SSO Plugin?:

    NodeBB is run with the correct cwd.

    This is likely OP's issue... incorrect cwd...


Log in to reply
 

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.