[nodebb-plugin-sso-nextcloud] Nextcloud OAuth2

NodeBB Plugins
  • This is my first "plugin" based entirely on SSO OAUTH from @julianlam

    I only tweaked for use with Nextcloud as OAuth provider.

    Regards

  • Hi,
    any hint about that error? I'm new with oauth...

    2019-12-28T16:22:30.805Z [4567/58] - error: [authentication] TypeError: Cannot read property 'useAuthorizationHeaderforGET' of undefined
        at Object.OAuth.getStrategy [as method] (/usr/src/app/node_modules/nodebb-plugin-sso-nextcloud/library.js:115:22)
        at /usr/src/app/src/plugins/hooks.js:121:29
        at /usr/src/app/node_modules/async/dist/async.js:1635:13
        at replenish (/usr/src/app/node_modules/async/dist/async.js:444:21)
        at /usr/src/app/node_modules/async/dist/async.js:449:13
        at eachOfLimit$1 (/usr/src/app/node_modules/async/dist/async.js:475:34)
        at awaitable(eachOfLimit$1) (/usr/src/app/node_modules/async/dist/async.js:208:32)
        at eachOfSeries (/usr/src/app/node_modules/async/dist/async.js:662:16)
        at awaitable(eachOfSeries) (/usr/src/app/node_modules/async/dist/async.js:208:32)
        at Object.reduce (/usr/src/app/node_modules/async/dist/async.js:1634:16)
    
  • Hi @pwFoo

    This error seams you need oauth package in your installation. Are you restarted nodeBB? In any case do npm install oauth passport-oauth in your nodebb root folder and restart again.

  • Hi @Normando ,
    still the same error.

    2019-12-30T14:17:45.061Z [4567/92] - error: [authentication] TypeError: Cannot read property 'useAuthorizationHeaderforGET' of undefined
        at Object.OAuth.getStrategy [as method] (/usr/src/app/node_modules/nodebb-plugin-sso-nextcloud/library.js:115:22)
        at /usr/src/app/src/plugins/hooks.js:121:29
        at /usr/src/app/node_modules/async/dist/async.js:1635:13
        at replenish (/usr/src/app/node_modules/async/dist/async.js:444:21)
        at /usr/src/app/node_modules/async/dist/async.js:449:13
        at eachOfLimit$1 (/usr/src/app/node_modules/async/dist/async.js:475:34)
        at awaitable(eachOfLimit$1) (/usr/src/app/node_modules/async/dist/async.js:208:32)
        at eachOfSeries (/usr/src/app/node_modules/async/dist/async.js:662:16)
        at awaitable(eachOfSeries) (/usr/src/app/node_modules/async/dist/async.js:208:32)
        at Object.reduce (/usr/src/app/node_modules/async/dist/async.js:1634:16)
    
  • hmmmm... let me check

  • @pwFoo there was a bug in a code.

    Please, update plugin to the last version (0.3.6), change again the lines 60, 61 and 65 of library.js, reload, restart and test again. Sorry for the inconvenience


Suggested Topics


  • 0 Votes
    3 Posts
    718 Views
  • 0 Votes
    2 Posts
    838 Views
  • 8 Votes
    4 Posts
    1783 Views
  • 1 Votes
    8 Posts
    2946 Views
  • How to update plugins?

    NodeBB Plugins
    0 Votes
    8 Posts
    3316 Views