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

SDK Secrets.list() requires a organizationId while bws secrets list doesn't #944

Open
1 task done
Araxeus opened this issue Aug 7, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@Araxeus
Copy link

Araxeus commented Aug 7, 2024

Steps To Reproduce

cli run bws secrets list -> get secrets
sdk run Secrets.list() -> need organizationId

List(SecretIdentifiersRequest),

pub struct SecretIdentifiersRequest {
/// Organization to retrieve all the secrets from
pub organization_id: Uuid,
}

bws gets the org_id from the token, why cant the sdk do the same?

sdk/crates/bws/src/main.rs

Lines 103 to 109 in b8a024f

let organization_id = match client.internal.get_access_token_organization() {
Some(id) => id,
None => {
error!("Access token isn't associated to an organization.");
return Ok(());
}
};

Issue Tracking Info

  • 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.
@Araxeus Araxeus added the bug Something isn't working label Aug 7, 2024
@Araxeus Araxeus changed the title SDK Secrets.list() requires a project/org id while bws secrets list doesn't SDK Secrets.list() requires a organizationId while bws secrets list doesn't Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant