Skip to content
  • 0 Votes
    3 Posts
    825 Views
    GeferonG

    I think I managed to find the solution to your issue @gorgiselkov
    I'm guessing you're using IIS but if not it might help as well.
    Here: https://community.nodebb.org/post/72229

  • 3 Votes
    13 Posts
    7k Views
    V

    @nicolas i has a external website, when access website i use ajax make request login 'api/ns/login'... i received object user . but i do not received notification at external website.
    socket.uid at serve = 0.
    can you help me ?
    sorry if i write less english.

  • 0 Votes
    2 Posts
    3k Views
    N

    Ok, question is closed 😉
    I have created plugin for my needs

  • 0 Votes
    1 Posts
    2k Views
    v4V

    I desperately need a NodeBB plugin which supports BitID authentication.
    OR
    A bitID oAuth-Server which integrates with a NodeBB-SSO-plugin.

    After installation of the plugin there has to show up a 'log-in with BitID' button like following example.

    <a href="bitid://bitid-js-demo.herokuapp.com/callback?x=d34c307a642266e4&amp">login with bitID
    </a>

    After the correctly signed message is posted to the server he needs to login the user (his username is the address) if he already exists in the NodeBB database OR to create his account and then to log him in. Login in into NodeBB probably means setting a cookie.

    Further for each user a nounce needs be tracked in the DB to prevent attacks.

    To prevent spaming there should be a check whether his address exists (ever had a transaction) in the blockchain (call to insight.bitpay.com/blockchain.info is best).

    Ressources:
    https://github.com/bitid/bitid
    https://nodebb.org/ https://github.com/porkchop/bitid-js
    Related: https://www.npmjs.com/package/passport-bitauth

    Reward: 0.3 BTC

  • 0 Votes
    1 Posts
    2k Views
    M

    Hi,
    I need some advice in connecting small sails.js app with nodeBB. In my sails.js application I need to get current logged user. I set sails.js session id key to express.sid (as in nodeBB), and configured it to use nodeBB collection as session storage. Then I can query for user id by session id (also from nodeBB storage). It is almost what I need to, but I can't get through some problems

    nodebb and sails app have to be on same domain when user visits sails app first, then nodeBB sets another session id and sessions are different on both apps when user logs in nodeBB, gets new session id and also, sessions are different on both apps

    Maybe OAuth is best way to go?
    Thanks

    PS. Thanks for nodeBB, great work!

  • 3 Votes
    5 Posts
    4k Views
    blueshuB

    @pichalite I am still confused that. it need update after install. But our node_module files always in ignore... so I don't thinks it's a good way to put plugs into node_module....