refactor(core): use secrets for connector AuthType in connector integration (#1441)

This commit is contained in:
Shankar Singh C
2023-07-26 17:04:49 +05:30
committed by GitHub
parent e6a5e9fa72
commit d068569f4d
80 changed files with 491 additions and 393 deletions

View File

@ -250,8 +250,8 @@ impl TryFrom<&types::ConnectorAuthType> for PaymeAuthType {
fn try_from(auth_type: &types::ConnectorAuthType) -> Result<Self, Self::Error> {
match auth_type {
types::ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self {
seller_payme_id: Secret::new(api_key.to_string()),
payme_client_key: Secret::new(key1.to_string()),
seller_payme_id: api_key.to_owned(),
payme_client_key: key1.to_owned(),
}),
_ => Err(errors::ConnectorError::FailedToObtainAuthType.into()),
}