Skip to content
Snippets Groups Projects
Commit 4abc73be authored by Olav Morken's avatar Olav Morken
Browse files

saml/logout: Support encrypted NameID.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2503 44740490-163a-0410-bde0-09ae8108e29a
parent fbd8a787
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,15 @@ if ($message instanceof SAML2_LogoutResponse) { ...@@ -57,6 +57,15 @@ if ($message instanceof SAML2_LogoutResponse) {
SimpleSAML_Logger::debug('module/saml2/sp/logout: Request from ' . $idpEntityId); SimpleSAML_Logger::debug('module/saml2/sp/logout: Request from ' . $idpEntityId);
SimpleSAML_Logger::stats('saml20-idp-SLO idpinit ' . $spEntityId . ' ' . $idpEntityId); SimpleSAML_Logger::stats('saml20-idp-SLO idpinit ' . $spEntityId . ' ' . $idpEntityId);
if ($message->isNameIdEncrypted()) {
try {
$key = self::getDecryptionKey($idpMetadata, $spMetadata);
} catch (Exception $e) {
throw new SimpleSAML_Error_Exception('Error decrypting NameID: ' . $e->getMessage());
}
$message->decryptNameId($key);
}
$nameId = $message->getNameId(); $nameId = $message->getNameId();
$sessionIndexes = $message->getSessionIndexes(); $sessionIndexes = $message->getSessionIndexes();
......
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