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.
BitID Authentication Plugin
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).
Reward: 0.3 BTC