Skip to content

Commit 58ea7d5

Browse files
committed
Fix Bug 1969426 : [LiveSite] Failback is taking 10 hours 25mins and token is getting expired
1 parent 42c6199 commit 58ea7d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/PSRecoveryServicesClient/PSRecoveryServicesClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public string GenerateAgentAuthenticationHeader(string clientRequestId)
187187
DateTime currentDateTime = DateTime.Now;
188188
currentDateTime = currentDateTime.AddHours(-1);
189189
cikTokenDetails.NotBeforeTimestamp = TimeZoneInfo.ConvertTimeToUtc(currentDateTime);
190-
cikTokenDetails.NotAfterTimestamp = cikTokenDetails.NotBeforeTimestamp.AddHours(6);
190+
cikTokenDetails.NotAfterTimestamp = cikTokenDetails.NotBeforeTimestamp.AddDays(7);
191191
cikTokenDetails.ClientRequestId = clientRequestId;
192192
cikTokenDetails.Version = new Version(1, 2);
193193
cikTokenDetails.PropertyBag = new Dictionary<string, object>();

0 commit comments

Comments
 (0)