Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Tags
    3. plugindevelopment
    Log in to post
    • All categories
    • C

      Authorizing another socket's session
      NodeBB Development • login unsuccessful plugindevelopment sso plugins • • chiguireitor

      6
      0
      Votes
      6
      Posts
      843
      Views

      C

      It seems require('socket.io').reqFromSocket(socket) doesn't returns a valid req for AuthController.doLogin.... i want to authenticate via websocket but maybe i will have to do it the old POST way, am i correct?

    • Giggiux

      SOLVED extends nodebb write-api?
      NodeBB Plugins • plugindevelopment write-api • • Giggiux

      7
      0
      Votes
      7
      Posts
      2847
      Views

      Giggiux

      To anyone searching the same thing, I resolved the problem using the custom write-api hooks, I wasn't aware of:

      https://github.com/NodeBB/nodebb-plugin-write-api/blob/master/routes/v1/index.js#L45

      filter:plugin.write-api.routes

      that gives you data, I used it in this way:

      function(data, callback) { var app = data.router; var apiMiddleware = data.apiMiddleware; var middleware = data.middleware; var errorHandler = data.errorHandler; app.post('/route', apiMiddleware.requireUser, function(req, res) { // do stuff }); callback(null, { router: app }); };

      Obviously you should have nodebb-plugin-write-api installed.

    • D

      Plugin Development Workflow
      Plugin Development • plugindevelopment workflow • • devmattrick

      7
      2
      Votes
      7
      Posts
      2348
      Views

      jarey

      @Tomas-Pavlacky seems that we will have to submit a PR to update those dependencies. Did you managed to make it work?

    • boomzilla

      Plugin Integration Test
      NodeBB Development • integration plugindevelopment • • boomzilla

      4
      0
      Votes
      4
      Posts
      1575
      Views

      boomzilla

      @julian It means that I can test my plugin with nodebb actually firing hooks for it.

    • I

      Need a plugin developer who can do badges plugin
      NodeBB Plugins • developers plugin plugin request plugindevelopment • • inhuman

      2
      0
      Votes
      2
      Posts
      1340
      Views

      julian

      @inhuman We could build one out for you, possibly 😄 Reach out to us at sales@nodebb.org

    • Jesse Pulfer

      Anyone familiar with Xenforo's Resource Manger ?
      General Discussion • communitydevelopers plugindevelopment • • Jesse Pulfer

      3
      2
      Votes
      3
      Posts
      1321
      Views

      yariplus

      Has this been started yet?

      I am interested in helping with this, as I'm a XenForo convert.