diff options
author | Clément OUDOT <clement.oudot@worteks.com> | 2019-12-16 17:04:20 +0300 |
---|---|---|
committer | Clément OUDOT <clement.oudot@worteks.com> | 2019-12-16 18:59:48 +0300 |
commit | 04fcb5387bd2b23f9032d7f86552f41e82b443ef (patch) | |
tree | b6dc9ae59efa54d4e6ca2a2bc1a7e0c595bd79ff /lib | |
parent | 87ab9cf1d020b98c8ddd102614189f33e93c7059 (diff) |
use NameId format, name qualifier and name SP qualifier in SAML logout request
Signed-off-by: Clément OUDOT <clement.oudot@worteks.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/SAMLController.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php index c0dffab3..7badc3d7 100644 --- a/lib/Controller/SAMLController.php +++ b/lib/Controller/SAMLController.php @@ -279,6 +279,9 @@ class SAMLController extends Controller { $this->session->set('user_saml.samlUserData', $auth->getAttributes()); $this->session->set('user_saml.samlNameId', $auth->getNameId()); + $this->session->set('user_saml.samlNameIdFormat', $auth->getNameIdFormat()); + $this->session->set('user_saml.samlNameIdNameQualifier', $auth->getNameIdNameQualifier()); + $this->session->set('user_saml.samlNameIdNameSPQualifier', $auth->getNameIdNameSPQualifier()); $this->session->set('user_saml.samlSessionIndex', $auth->getSessionIndex()); $this->session->set('user_saml.samlSessionExpiration', $auth->getSessionExpiration()); try { @@ -355,8 +358,11 @@ class SAMLController extends Controller { // If request is not from IDP, we must send him the logout request $parameters = array(); $nameId = $this->session->get('user_saml.samlNameId'); + $nameIdFormat = $this->session->get('user_saml.samlNameIdFormat'); + $nameIdNameQualifier = $this->session->get('user_saml.samlNameIdNameQualifier'); + $nameIdNameSPQualifier = $this->session->get('user_saml.samlNameIdNameSPQualifier'); $sessionIndex = $this->session->get('user_saml.samlSessionIndex'); - $targetUrl = $auth->logout(null, [], $nameId, $sessionIndex, $stay); + $targetUrl = $auth->logout(null, [], $nameId, $sessionIndex, $stay, $nameIdFormat, $nameIdNameQualifier, $nameIdNameSPQualifier); } if(!empty($targetUrl) && !$auth->getLastErrorReason()){ $this->userSession->logout(); |