Can we use fabric-ca to authenticate the user to web application i.e. while enrolling the user we send ID and password, can we use the same password to authenticate the user to web app.
If yes how can share few examples based on Node Js SDK
And also if we have multiple organization and private channels, how do we enroll certain users who can access both private channels.
The straight forward answer is no. The CA server is not meant for authentication. However it does check the password for the first enrollment, so if you never stored the crypto and set enrollment attempts to unlimited it would validate against the static (unchangeable) password set during registration. Probably not the best idea but might be fine for some use case.
I did an implementation storing users and passwords in the blockchain, checked on every web app login, with update rights only for the user. If you want passwords changeable, you have to store them somewhere the user can get to them. LDAP (recommended), database, file system, blockchain, somewhere.
Users belong to an Org. So if a peer and the user are in an Org that has access to multiple channels, all is well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With