Skip to content

Commit e581b20

Browse files
Gaelik-gitBaptiste LE MORLEC
andauthored
(fix)Signing key for TopicClient not correctly encoded (#1638)
Co-authored-by: Baptiste LE MORLEC <[email protected]>
1 parent b910142 commit e581b20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sdk/messaging_servicebus/src/service_bus/topic_client.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ impl TopicClient {
4747
P: Into<String>,
4848
K: Into<Secret>,
4949
{
50+
// NOTE: This is to account for the azure_core::auth::hmac_sha256 assumption
51+
// that the key needs to be base64 decoded.
52+
let signing_key = azure_core::base64::encode(signing_key.into().secret());
5053
Ok(Self {
5154
http_client,
5255
namespace: namespace.into(),

0 commit comments

Comments
 (0)