public async Task <IActionResult> Logout() { await _signInManager.SignOutAsync(); _logger.LogInformation("User logged out."); var ssoState = await _samlIdentityProvider.GetStatusAsync(); if (await ssoState.CanSloAsync()) { // Request logout at the service providers. await _samlIdentityProvider.InitiateSloAsync(); return(new EmptyResult()); } return(RedirectToPage("/Index")); }
public async Task <string> GetPendingPartner() { var status = await samlIdentityProvider.GetStatusAsync(); return(status.GetPartnerPendingResponse()); }