Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share passwords #3

Open
lbdroid opened this issue Jul 5, 2022 · 4 comments
Open

Share passwords #3

lbdroid opened this issue Jul 5, 2022 · 4 comments

Comments

@lbdroid
Copy link

lbdroid commented Jul 5, 2022

Something I've noticed missing from other nextcloud password manager mobile applications is the ability to share passwords with other nextcloud users. This is something that can be easily done through the web interface. So at the moment, if I need someone who uses only/mainly mobile to share a password with me, they end up having to screenshot the password and use Talk to send it. This is obviously not properly secure, since the screenshot is saved to the device. For devices with google services installed, it ends up meaning that the password is actually shared with google, which is really unacceptable.

@hegocre
Copy link
Owner

hegocre commented Aug 5, 2022

Hi @lbdroid , thank you for you suggestion.

I'll keep it in mind when I implement the password editing functionality (as of now, the app is more like a password viewer).

@TtuxX
Copy link

TtuxX commented Jan 22, 2024

Hi there @hegocre :)
Sorry to bump this thread but do you think this could possibly be implemented ? It would be awesome !
Ideally, the share option would either (i) share to a user on the same instance, or (ii) in plaintext to another app in order to send it to a friend.
Unfortunately, sharing a password via an e-mail that would get clicked to reveal the password on the Nextcloud instance is not implemented in the Passwords app, and sadly it does not seems it will anytime soon (marius-wieschollek/passwords#27).
Many thanks in advance

@hegocre
Copy link
Owner

hegocre commented Jan 22, 2024

Hello @TtuxX

I researched this before publishing the app, and found the Sharing APIs to be a little confusing. I have this issue in mind, since I find the feature would be really useful, but these days I'm quite busy, so I can't focus on new or "big" developments, but rather on bug fixes and little enhancements. As soon as I have more time, I'll look into this again and see what I can do.

Cheers!

@jhaan1979
Copy link

The bare minimum seems to be fairly straight-forward:

`
POST:/index.php/apps/passwords/api/1.0/settings/get', json=['server.sharing.enabled']
=> {'server.sharing.enabled': True}

  • get usernames to whom can be shared
    GET:/index.php/apps/passwords/api/1.0/share/partners
    => {'bob': 'Bob', }

  • get shared items (both incoming and outgoing)
    GET:/index.php/apps/passwords/api/1.0/share/list
    => [{'id': <share_id>, 'receiver': {'id': 'bob', 'name': 'Bob'}, 'owner': {'id': 'alice', 'name': 'Alice'}, 'password': <password_id>}, ]

  • new share (note: is async, can take a while)
    POST:/index.php/apps/passwords/api/1.0/share/create json={'password': <passwd_id>, 'receiver': 'bob'}
    => {'id': <share_id>}

  • Remove share (note: also async)
    DELETE:/index.php/apps/passwords/api/1.0/share/delete?id=<share_id>
    => {'id': <share_id>}
    `

I've never used Kotlin and am not really versed in mobile app development, but if anyone is up for the task...

This is by far the best client for Nextcloud passwords, and I've been researching free and opensource self-hosted password managers on the market, but a lot of them are lacking proper apps and the one that has it all leaves me with a sour taste (stuff like phone-home, and paid plans).

So even having basic password sharing on the app-side would be very nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants