From 58ea7d5779ee7b03ef5448d688afbf35634228a5 Mon Sep 17 00:00:00 2001 From: rijethma Date: Thu, 19 Mar 2015 21:04:02 +0530 Subject: [PATCH] Fix Bug 1969426 : [LiveSite] Failback is taking 10 hours 25mins and token is getting expired --- .../PSRecoveryServicesClient/PSRecoveryServicesClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/PSRecoveryServicesClient/PSRecoveryServicesClient.cs b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/PSRecoveryServicesClient/PSRecoveryServicesClient.cs index 1b501e597d46..2c796ca575df 100644 --- a/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/PSRecoveryServicesClient/PSRecoveryServicesClient.cs +++ b/src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/PSRecoveryServicesClient/PSRecoveryServicesClient.cs @@ -187,7 +187,7 @@ public string GenerateAgentAuthenticationHeader(string clientRequestId) DateTime currentDateTime = DateTime.Now; currentDateTime = currentDateTime.AddHours(-1); cikTokenDetails.NotBeforeTimestamp = TimeZoneInfo.ConvertTimeToUtc(currentDateTime); - cikTokenDetails.NotAfterTimestamp = cikTokenDetails.NotBeforeTimestamp.AddHours(6); + cikTokenDetails.NotAfterTimestamp = cikTokenDetails.NotBeforeTimestamp.AddDays(7); cikTokenDetails.ClientRequestId = clientRequestId; cikTokenDetails.Version = new Version(1, 2); cikTokenDetails.PropertyBag = new Dictionary();