+xIs the method where you're calling ISamlServiceProvider.InitiateSloAsync returning an EmptyResult? For example: public async Task<IActionResult> InitiateSingleLogout(string returnUrl = null) { // Request logout at the identity provider. await _samlServiceProvider.InitiateSloAsync(relayState: returnUrl);
return new EmptyResult(); }
What page do you end up on in the browser? This should provide a clue as to what's going wrong. Thank you for yor quick response No. Here is my method public async void SendLogoutRequestToIdp() { try { var ssoState = await SamlServiceProvider.GetStatusAsync(); if (await ssoState.CanSloAsync()) { await SamlServiceProvider.InitiateSloAsync(); } } catch (Exception e) { //log error } } This method is called by the sp's logout method. Also I will like to point out that the Idp Servicelogout method which will be receiving the request is not of type Task<IActionResult>
|