Skip to content

Commit

Permalink
SM-1275: Update AccessTokenLogin to LoginAccessToken for SM items
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonhurst committed Aug 12, 2024
1 parent 1a36b3b commit 4a05e60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/bitwarden-json/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl Client {
#[cfg(feature = "internal")]
Command::PasswordLogin(req) => client.auth().login_password(&req).await.into_string(),
#[cfg(feature = "secrets")]
Command::AccessTokenLogin(req) => {
Command::LoginAccessToken(req) => {

Check warning on line 57 in crates/bitwarden-json/src/client.rs

View check run for this annotation

Codecov / codecov/patch

crates/bitwarden-json/src/client.rs#L57

Added line #L57 was not covered by tests
client.auth().login_access_token(&req).await.into_string()
}
#[cfg(feature = "internal")]
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-json/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub enum Command {
/// This command is for initiating an authentication handshake with Bitwarden.
///
/// Returns: [ApiKeyLoginResponse](bitwarden::auth::login::ApiKeyLoginResponse)
AccessTokenLogin(AccessTokenLoginRequest),
LoginAccessToken(AccessTokenLoginRequest),

#[cfg(feature = "internal")]
/// > Requires Authentication
Expand Down
2 changes: 1 addition & 1 deletion crates/sdk-schemas/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct SchemaTypes {
// Output types for Client::run_command
api_key_login: Response<bitwarden::auth::login::ApiKeyLoginResponse>,
password_login: Response<bitwarden::auth::login::PasswordLoginResponse>,
access_token_login: Response<bitwarden::auth::login::AccessTokenLoginResponse>,
login_access_token: Response<bitwarden::auth::login::AccessTokenLoginResponse>,
secret_identifiers: Response<bitwarden::secrets_manager::secrets::SecretIdentifiersResponse>,
secret: Response<bitwarden::secrets_manager::secrets::SecretResponse>,
secrets: Response<bitwarden::secrets_manager::secrets::SecretsResponse>,
Expand Down

0 comments on commit 4a05e60

Please sign in to comment.