Skip to content

Commit 4284ba1

Browse files
authored
AppConfig: Fix HMAC auth for Germany West Central (#17493)
* AppConfig: Fix HMAC auth for Germany West Central * Update changelog Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
1 parent 25a4619 commit 4284ba1

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

sdk/appconfig/azappconfig/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
### Breaking Changes
88

99
### Bugs Fixed
10+
* Fixed authentication in Germany West Central using connection string (#17424).
1011

1112
### Other Changes
1213

sdk/appconfig/azappconfig/policy_hmac_auth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ func (policy *hmacAuthenticationPolicy) Do(request *policy.Request) (*http.Respo
6969
}
7070

7171
req.Header.Set("x-ms-content-sha256", contentHash)
72-
req.Header.Set("x-ms-date", timestamp)
73-
req.Header.Set("Authorization", "HMAC-SHA256 Credential="+id+", SignedHeaders=x-ms-date;host;x-ms-content-sha256, Signature="+signature)
72+
req.Header.Set("Date", timestamp)
73+
req.Header.Set("Authorization", "HMAC-SHA256 Credential="+id+", SignedHeaders=date;host;x-ms-content-sha256, Signature="+signature)
7474

7575
return request.Next()
7676
}

0 commit comments

Comments
 (0)