sdk
sdk copied to clipboard
SDK `Secrets.list()` requires a `organizationId` while `bws secrets list` doesn't
Steps To Reproduce
cli run bws secrets list
-> get secrets
sdk run Secrets.list()
-> need organizationId
https://github.com/bitwarden/sdk/blob/b8a024f837a65338e9b6a1f0103a0dfe4ba85632/crates/bitwarden-json/src/command.rs#L112
https://github.com/bitwarden/sdk/blob/b8a024f837a65338e9b6a1f0103a0dfe4ba85632/crates/bitwarden-sm/src/secrets/list.rs#L15-L18
bws gets the org_id from the token, why cant the sdk do the same?
https://github.com/bitwarden/sdk/blob/b8a024f837a65338e9b6a1f0103a0dfe4ba85632/crates/bws/src/main.rs#L103-L109
Issue Tracking Info
- [X] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.