@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.
I desperately need a NodeBB plugin which supports BitID authentication.
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&">login with bitID
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).
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