Skip to content

Commit 2d277c9

Browse files
committed
minor changes
1 parent d75633d commit 2d277c9

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# WixSharp: A .NET library for Starweb.
1+
# WixSharp: A .NET library for Wix.
22

33
WixSharp is a .NET library that enables you to authenticate and make API calls to WixSharp. It's great for
44
building custom WixSharp Apps using C# and .NET. You can quickly and easily get up and running with WixSharp

WixSharp.sln

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
1+
Microsoft Visual Studio Solution File, Format Version 12.00
32
# Visual Studio 15
43
VisualStudioVersion = 15.0.28307.645
54
MinimumVisualStudioVersion = 10.0.40219.1

WixSharp/Services/Authorization/AuthorizationService.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,6 @@ public static bool IsAuthenticRequest(string querystring, string wixAppSecretKey
147147
/// <returns>A boolean indicating whether the request is authentic or not.</returns>
148148
public static bool IsAuthenticRequest(IEnumerable<KeyValuePair<string, StringValues>> querystring, string wixAppSecretKey)
149149
{
150-
// To calculate HMAC signature:
151-
// 1. Cast querystring to KVP pairs.
152-
// 2. Remove `signature` and `hmac` keys.
153-
// 3. Replace & with %26, % with %25 in keys and values.
154-
// 4. Replace = with %3D in keys only.
155-
// 5. Join each key and value with = (key=value).
156-
// 6. Sorty kvps alphabetically.
157-
// 7. Join kvps together with & (key=value&key=value&key=value).
158-
// 8. Compute the kvps with an HMAC-SHA256 using the secret key.
159-
// 9. Request is authentic if the computed string equals the `hash` in query string.
160-
// Reference: https://docs.shopify.com/api/guides/authentication/oauth#making-authenticated-requests
161150
var hmacValues = querystring.FirstOrDefault(kvp => kvp.Key == "hmac").Value;
162151

163152
if (string.IsNullOrEmpty(hmacValues) || hmacValues.Count() < 1)

0 commit comments

Comments
 (0)