amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

Authentication and authorization with Gun.js the tradicional way? #1197

Closed edardev closed 2 years ago

edardev commented 2 years ago

How to authenticate and RBAC with Gun.js the tradicional way with Social logins(Google, LinkedIn) or AWS cognito, Auth0, OAuth2.0, or or my own RBAC server, etc?

edardev commented 2 years ago

All I want is a decentralize database but I want control over the users and permissions models to restrict user's malicious behaviors.

amark commented 2 years ago

Ah! I saw you asked on StackOverflow... I haven't had time much to answer Qs there, but:

https://stackoverflow.com/questions/70921211/authentication-and-authorization-with-gun-js-the-tradicional-way-with-social-log/70962196#70962196

Having "control over users" but wanting to be "decentralized" is not something we plan on supporting, but you could build it yourself if you want. May be hard to find others in the community tho.

edardev commented 2 years ago

I am creating an app for a private family farm and the agricultural sector, in fact it is not intended for the general public. I like the idea that the data is distributed within the white list of allowed of peers, clients(employees). At least for real-time messages feature, so we can save space and bandwidth.

I am not sure if I should go from scratch WebRTC implementation or take advantage of the Graph database provided by the Gun.js library.

Thank you so much @amark you are helpful, talented, gifted programmer and mathematician. I wish could understand more, working hard over the documentation, hopefully I will figure it out 🙏