protected void ReportSsoResults(bool success, string rallyServer, string zSessionID)
{
if (SsoAuthenticationComplete != null)
{
if (success)
{
RallyRestApi.AuthenticationResult authResult =
Api.AuthenticateWithZSessionID(Api.ConnectionInfo.UserName, zSessionID, rallyServer: rallyServer);
if (authResult == RallyRestApi.AuthenticationResult.Authenticated)
{
LoginDetails.SaveToDisk();
NotifyLoginWindowSsoComplete(authResult, Api);
SsoAuthenticationComplete.Invoke(authResult, Api);
return;
}
}
LoginDetails.MarkUserAsLoggedOut();
Api.Logout();
NotifyLoginWindowSsoComplete(RallyRestApi.AuthenticationResult.NotAuthorized, null);
SsoAuthenticationComplete.Invoke(RallyRestApi.AuthenticationResult.NotAuthorized, null);
}
}
/// <summary>