+xRemove the calls to SAMLIdentityProvider.ReceiveSLO and SAMLIdentityProvider.SendSLO as this isn't a SAML logout message exchange. Google will redirect to your page (ie an HTTP Get) rather than sending a SAML logout request. Your code will be something like the following: SignoutManager.SignoutIdentityProvider(); return RedirectToAction("Index", "Home");
It's really whatever makes sense for your application. You probably want to logout the user locally and then redirect somewhere within your application. Hi Team, Thanks for the relpay Have modified the code like below
public override ActionResult SLOService() { SignoutManager.SignoutSolusIdentityProvider(); if (SAMLIdentityProvider.IsSSO()) { // Request logout at the service providers. SAMLIdentityProvider.InitiateSLO(Response, null); return new EmptyResult(); } return RedirectToAction("Index", "Home"); }
But I have a new problem now. I have another SSO configured for Office 365 which has another endpoint for SSOService (saml/office356/SSOService) and SLOServive (saml/office365/SLOService) For google I have another endpoint SSOService (saml/google/SSOService) and SLOServive (saml/google/SLOService) When I log out from google (SP initiated log out) I am not getting logged out from Office 365. But when I log out from Office 365 I logged out from goggle. What could be the issue? Let me know if you want my code snippets or saml configs
|