Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Authentication #69

Closed
m00nwtchr opened this issue Sep 28, 2018 · 1 comment
Closed

Authentication #69

m00nwtchr opened this issue Sep 28, 2018 · 1 comment

Comments

@m00nwtchr
Copy link

I am developing a chat app based on OrbitDB and IPFS.
One issue I have encountered is authentication because I want for the users to be able to just use their login and password instead of copying over public and private keys between machines. One solution I came up with was include the user's orbit db key pair (encrypted using symmetric crypto) together with other info in the user's database that's read-only for everyone except the creator. Then when logging in my API would attempt to decrypt the key and if that succeeds I'd just use the key pair to get full access to the database (somehow replace OrbitDB's key pair with the one form the database). But I don't know if this won't create issues (like multiple clients having the same key pair) or if it's even possible

@aphelionz
Copy link
Collaborator

Short answer: you want to create a custom Access Controller using https://github.com/orbitdb/orbit-db-access-controllers

Moving this to the Field Manual for the long answer :)

@aphelionz aphelionz transferred this issue from orbitdb/orbitdb Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants