1Password / connect-sdk-python

Python SDK for 1Password Connect
https://developer.1password.com/docs/connect
MIT License
200 stars 31 forks source link

Possiblity to create item share #100

Open jldantas-s1 opened 6 months ago

jldantas-s1 commented 6 months ago

Summary

Allow the SDK/API to create shares of items.

Use cases

The use case is self-explanatory. If it was possible to share the item via API, as in, configuring expiration timers, adding emails, etc. and getting the link you can automate any process that requires sharing credentials/TOTP. This can be useful in many scenarios:

Proposed solution

That is an API design choice. But perhaps extend the /item/ endpoint to include a /item/{itemID}/share where a GET request can recover the share information of the item, a POST allows to creation of the share and a PATCH allows to change of an active share and a DELETE removes the share from the item.

Is there a workaround to accomplish this today?

Not that I'm aware of. If there is I would be interested to know.

References & Prior Work

1Password already has the feature, it isn't accessible via API.