Skip to content

Commit

Permalink
(fix)Signing key for TopicClient not correctly encoded (#1638)
Browse files Browse the repository at this point in the history
Co-authored-by: Baptiste LE MORLEC <[email protected]>
  • Loading branch information
Gaelik-git and Baptiste LE MORLEC authored Apr 23, 2024
1 parent b910142 commit e581b20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/messaging_servicebus/src/service_bus/topic_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ impl TopicClient {
P: Into<String>,
K: Into<Secret>,
{
// NOTE: This is to account for the azure_core::auth::hmac_sha256 assumption
// that the key needs to be base64 decoded.
let signing_key = azure_core::base64::encode(signing_key.into().secret());
Ok(Self {
http_client,
namespace: namespace.into(),
Expand Down

0 comments on commit e581b20

Please sign in to comment.