When logging out the sessionIndex and nameID is not passed to the IdP
-
I’m using the built in OneLogin library to connect to an external SimpleSAMLPHP service provider. I am able to successfully log in, however when logging out, I receive the following status: status:Requester
My IDP provided the following information from their logs.
ERROR: IDPSingleLogout.processLogoutRequest: session index are null in logout request
In the OneLogin LogoutRequest.php file provided with the WP SAML Auth plugin, I see the constructor function accepts NameID and Session Index. Is there a setting I can configure that will set the NameID and Session Index, and pass those along to the logoutrequest constructor?
public function __construct(\OneLogin\Saml2\Settings $settings, $request = null, $nameId = null, $sessionIndex = null, $nameIdFormat = null, $nameIdNameQualifier = null, $nameIdSPNameQualifier = null)
Currently the OneLogin logout request looks similar to this:
<samlp:LogoutRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="ONELOGIN_dc79fc4f387e8ab780859930499a2aa3825f4197" Version="2.0" IssueInstant="2021-08-12T21:04:43Z" Destination="https://myidp.com:443/openam/IDPSloRedirect/metaAlias/my-online-idp"> <saml:Issuer>https://myserviceprovider.com/simplesaml/module.php/saml/sp/metadata.php/default-sp</saml:Issuer> <saml:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">my-online-idp</saml:NameID> </samlp:LogoutRequest>
What actually works if I used a local SimpleSAMLphp install instead of Internal OneLogin:
<samlp:LogoutRequest xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_b425c20bdff89aa28644dca50d79072b22bcce499a" Version="2.0" IssueInstant="2021-08-12T21:31:10Z" Destination="https://myidp.com:443/openam/IDPSloRedirect/metaAlias/my-online-idp"> <saml:Issuer>https://myserviceprovider.com/simplesaml/module.php/saml/sp/metadata.php/default-sp</saml:Issuer> <saml:NameID NameQualifier="my-online-idp" SPNameQualifier="https://myserviceprovider.com/simplesaml/module.php/saml/sp/metadata.php/default-sp" Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">[email protected]</saml:NameID> <samlp:SessionIndex>s2651e48d54629131e4dd32e1bae5e8059295b6706</samlp:SessionIndex> </samlp:LogoutRequest>
What options are available to get the Session Index and the user email in the OneLogin logout request?
- The topic ‘When logging out the sessionIndex and nameID is not passed to the IdP’ is closed to new replies.