Rally.RestApi.Auth.ApiAuthManager.ReportSsoResults C# (CSharp) Method

ReportSsoResults() protected method

Reports the results of an SSO action.
protected ReportSsoResults ( bool success, string rallyServer, string zSessionID ) : void
success bool Was SSO authentication completed successfully?
rallyServer string The server that the ZSessionID is for.
zSessionID string The zSessionID that was returned from Rally.
return void
		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>