We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0727a2 commit 7177b3fCopy full SHA for 7177b3f
1 file changed
src/Binding/HTTPPost.php
@@ -10,6 +10,7 @@
10
use Psr\Http\Message\ServerRequestInterface;
11
use SimpleSAML\Assert\Assert;
12
use SimpleSAML\SAML2\Binding;
13
+use SimpleSAML\SAML2\Exception\ProtocolViolationException;
14
use SimpleSAML\SAML2\Utils;
15
use SimpleSAML\SAML2\XML\samlp\AbstractMessage;
16
use SimpleSAML\SAML2\XML\samlp\AbstractRequest;
@@ -106,7 +107,8 @@ public function receive(ServerRequestInterface $request): AbstractMessage
106
107
* message.
108
*/
109
if ($msg->isSigned()) {
- Assert::notNull($msg->getDestination()); // Validation of the value must be done upstream
110
+ Assert::notNull($msg->getDestination(), ProtocolViolationException::class);
111
+ // Validation of the Destination must be done upstream
112
}
113
114
if (array_key_exists('RelayState', $query)) {
0 commit comments