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

[SM-1275] Update AccessTokenLogin to LoginAccessToken for SM #953

Merged
merged 2 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
#[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
Loading