Subject: LogoutRequest
Date: 2013-11-01 04:05:48
From: Laszlo Csabi
Source: logoutrequest
----------------------------------------------------------------------

Hi,

I try to create a valid LogoutRequest from the SP side and send it to the iDp Logout Service. The idP will require Session Index passed within the LogoutRequest.
The "SessionIndexes" property is null on the created  LogoutRequest object, and it has only a getter access.

How can I populate the SessionIndexes, and why is it empty? I have done the following so far:

LogoutRequest logoutRequest = new LogoutRequest();
logoutRequest.Issuer = new Issuer("http://mydomain.com");
logoutRequest.NameId = new NameId("whatever");
 
// Send the logout request to the IdP over HTTP redirect.
string logoutUrl = "https://idpdomain.edu/idp/profile/SAML2/REDIR/SLO";
 X509Certificate2 x509Certificate = (X509Certificate2)Application[Global.SpCertKey];
 
// Logout locally.
System.Web.Security.FormsAuthentication.SignOut();
Session.Abandon();
 
logoutRequest.Sign(x509Certificate);
logoutRequest.Redirect(Response, logoutUrl, Guid.NewGuid().ToString(), x509Certificate.PrivateKey);

 

Thanks

Las

---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index