Skip to content

Commit 9e11dec

Browse files
committed
Fix invalid error message when assertion and nameid was encrypted
1 parent c4a7a48 commit 9e11dec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Saml2/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public function isValid($requestId = null)
383383
$encryptedIDNodes = Utils::query($this->decryptedDocument, '/samlp:Response/saml:Assertion/saml:Subject/saml:EncryptedID');
384384
if ($encryptedIDNodes->length > 0) {
385385
throw new ValidationError(
386-
'Unsigned SAML Response that contains a signed and encrypted Assertion with encrypted nameId is not supported.',
386+
'SAML Response that contains an encrypted Assertion with encrypted nameId is not supported.',
387387
ValidationError::NOT_SUPPORTED
388388
);
389389
}

0 commit comments

Comments
 (0)