From 1191243a69810acf9b84c14413ec420576a17a4d Mon Sep 17 00:00:00 2001 From: Toshi Aoyama Date: Fri, 17 Jan 2020 11:12:54 +0900 Subject: [PATCH] minor fix for auth header sample code signature can be used as it is already computed --- StorageRestApiAuth/AzureStorageAuthenticationHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StorageRestApiAuth/AzureStorageAuthenticationHelper.cs b/StorageRestApiAuth/AzureStorageAuthenticationHelper.cs index 870ac05..03afdb1 100644 --- a/StorageRestApiAuth/AzureStorageAuthenticationHelper.cs +++ b/StorageRestApiAuth/AzureStorageAuthenticationHelper.cs @@ -57,7 +57,7 @@ internal static AuthenticationHeaderValue GetAuthorizationHeader( // This is the actual header that will be added to the list of request headers. // You can stop the code here and look at the value of 'authHV' before it is returned. AuthenticationHeaderValue authHV = new AuthenticationHeaderValue("SharedKey", - storageAccountName + ":" + Convert.ToBase64String(SHA256.ComputeHash(SignatureBytes))); + storageAccountName + ":" + signature)); return authHV; }