Skip to content
Snippets Groups Projects
Commit 11e3e43b authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Process logout Extensions

parent d78a7223
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,10 @@ All these parameters override the equivalent option from the configuration.
: The samlp:Extensions that will be sent in the login request.
`saml:logout:Extensions`
: The samlp:Extensions that will be sent in the logout request.
`saml:NameID`
: Add a Subject element with a NameID to the SAML AuthnRequest for the IdP.
This must be a \SAML2\XML\saml\NameID object.
......
......@@ -977,6 +977,12 @@ class SP extends \SimpleSAML\Auth\Source
$lr->setRelayState($id);
$lr->setDestination($endpoint['Location']);
if (isset($state['saml:logout:Extensions']) && count($state['saml:logout:Extensions']) > 0) {
$lr->setExtensions($state['saml:logout:Extensions']);
} elseif ($this->metadata->getArray('saml:logout:Extensions', null) !== null) {
$lr->setExtensions($this->metadata->getArray('saml:logout:Extensions'));
}
$encryptNameId = $idpMetadata->getBoolean('nameid.encryption', null);
if ($encryptNameId === null) {
$encryptNameId = $this->metadata->getBoolean('nameid.encryption', false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment