Skip to content

Commit a8a6750

Browse files
author
Martin Noreke
committed
Fix for saving login details in some edge cases.
1 parent d20341d commit a8a6750

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Rally.RestApi/Auth/ApiAuthManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,6 @@ private void UpdateAuthenticationState()
703703
{
704704
case RallyRestApi.AuthenticationResult.Authenticated:
705705
AuthenticationStateChange.Invoke(Api.AuthenticationState, Api);
706-
LoginDetails.SaveToDisk();
707706
break;
708707
case RallyRestApi.AuthenticationResult.PendingSSO:
709708
case RallyRestApi.AuthenticationResult.NotAuthorized:
@@ -713,6 +712,9 @@ private void UpdateAuthenticationState()
713712
throw new NotImplementedException();
714713
}
715714
}
715+
716+
if (Api.AuthenticationState == RallyRestApi.AuthenticationResult.Authenticated)
717+
LoginDetails.SaveToDisk();
716718
}
717719
#endregion
718720

0 commit comments

Comments
 (0)