From 4540c76f951d1df89090e099388c6aed4056247e Mon Sep 17 00:00:00 2001 From: "David R. Williamson" Date: Tue, 10 Jan 2023 14:04:18 -0800 Subject: [PATCH] CR feedback --- provisioning/transport/http/src/SymmetricKeyCredentials.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/provisioning/transport/http/src/SymmetricKeyCredentials.cs b/provisioning/transport/http/src/SymmetricKeyCredentials.cs index f33ec20b9f..3deccdd462 100644 --- a/provisioning/transport/http/src/SymmetricKeyCredentials.cs +++ b/provisioning/transport/http/src/SymmetricKeyCredentials.cs @@ -32,6 +32,7 @@ public override Task ProcessHttpRequestAsync(HttpRequestMessage request, Cancell string sasToken = ProvisioningSasBuilder.BuildSasSignature( Registration, _symmetricKey, + // These values may come in encoded, so decode them for the SAS token $"{WebUtility.UrlDecode(segments[0])}/{WebUtility.UrlDecode(segments[1])}/{WebUtility.UrlDecode(segments[2])}", TimeSpan.FromDays(1)); SetAuthorizationHeader(request, sasToken);