File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1010use Psr \Http \Message \ServerRequestInterface ;
1111use SimpleSAML \Assert \Assert ;
1212use SimpleSAML \SAML2 \Binding ;
13+ use SimpleSAML \SAML2 \Exception \ProtocolViolationException ;
1314use SimpleSAML \SAML2 \Utils ;
1415use SimpleSAML \SAML2 \XML \samlp \AbstractMessage ;
1516use SimpleSAML \SAML2 \XML \samlp \AbstractRequest ;
@@ -106,7 +107,8 @@ public function receive(ServerRequestInterface $request): AbstractMessage
106107 * message.
107108 */
108109 if ($ msg ->isSigned ()) {
109- 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
110112 }
111113
112114 if (array_key_exists ('RelayState ' , $ query )) {
You can’t perform that action at this time.
0 commit comments