Skip to content

Commit 4e56491

Browse files
committed
CIK token push
1 parent b0600c9 commit 4e56491

File tree

1 file changed

+2
-2
lines changed
  • src/ResourceManager/RecoveryServices.SiteRecovery/Commands.RecoveryServices.SiteRecovery/Common

1 file changed

+2
-2
lines changed

src/ResourceManager/RecoveryServices.SiteRecovery/Commands.RecoveryServices.SiteRecovery/Common/PSAsrClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public string GenerateAgentAuthenticationHeader(
148148
2);
149149
cikTokenDetails.PropertyBag = new Dictionary<string, object>();
150150

151-
var shaInput = JsonConvert.SerializeObject(cikTokenDetails);
151+
var shaInput = new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(cikTokenDetails);
152152

153153
if (null == asrVaultCreds.ChannelIntegrityKey)
154154
{
@@ -160,7 +160,7 @@ public string GenerateAgentAuthenticationHeader(
160160
Convert.ToBase64String(sha.ComputeHash(Encoding.UTF8.GetBytes(shaInput)));
161161
cikTokenDetails.HashFunction = CikSupportedHashFunctions.HMACSHA256.ToString();
162162

163-
return JsonConvert.SerializeObject(cikTokenDetails);
163+
return new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(cikTokenDetails);
164164
}
165165

166166
/// <summary>

0 commit comments

Comments
 (0)