+xThe InitiateSloAsync sends a SAML logout request. The API handles setting the Destination, Issuer, NameID etc fields correctly. The ExampleServiceProvider project demonstrates supporting SAML logout. When the user clicks the logout button, it calls InitiateSloAsync. The SamlController.SingleLogoutService calls ReceiveSloAsync and SendSLoAsync to complete the SLO sequence. Hi Our question, Is it possible to send InitiateSloAsync with destination, Issuer, NameID etc from IDP log-out. in this case which API need to call to set destination, Issuer, NameID etc below code from SAML for .NET Core\Examples\SSO\ExampleIdentityProvider\Areas\Identity\Pages\Account\Logout.cshtml.cs public async Task<IActionResult> OnPost(string returnUrl = null) { await _signInManager.SignOutAsync(); _logger.LogInformation("User logged out."); var ssoState = await _samlIdentityProvider.GetStatusAsync(); if (await ssoState.CanSloAsync()) { // Request logout at the service provider(s). await _samlIdentityProvider.InitiateSloAsync(relayState: returnUrl); return new EmptyResult(); } if (returnUrl != null) { return LocalRedirect(returnUrl); } else { return Page(); } }
|