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

AutoAuthenticate() public method

Auto authenticates the user if there are saved credentials.
public AutoAuthenticate ( bool allowSsoForautoAuthenticate ) : RallyRestApi.AuthenticationResult
allowSsoForautoAuthenticate bool Is SSO authentication allowed for auto-authentication? /// This may open a web browser UI.
return RallyRestApi.AuthenticationResult
		public RallyRestApi.AuthenticationResult AutoAuthenticate(bool allowSsoForautoAuthenticate)
		{
			if (!IsUiSupported)
				throw new NotImplementedException("Auto-Authentication is only supported for UI based authentication mangers.");

			RallyRestApi.AuthenticationResult authenticationResult = Api.AuthenticationState;
			if (authenticationResult != RallyRestApi.AuthenticationResult.Authenticated)
			{
				string errorMessage;
				authenticationResult = PerformAuthenticationCheck(out errorMessage, allowSsoForautoAuthenticate);
			}

			return authenticationResult;
		}
		#endregion