File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212use SimpleSAML \SAML2 \Binding ;
1313use SimpleSAML \SAML2 \Compat \ContainerSingleton ;
1414use SimpleSAML \SAML2 \Constants as C ;
15+ use SimpleSAML \SAML2 \Exception \ProtocolViolationException ;
1516use SimpleSAML \SAML2 \Utils ;
1617use SimpleSAML \SAML2 \XML \samlp \AbstractMessage ;
1718use SimpleSAML \SAML2 \XML \samlp \AbstractRequest ;
@@ -168,7 +169,8 @@ public function receive(ServerRequestInterface $request): AbstractMessage
168169 * message MUST contain the URL to which the sender has instructed the user agent to deliver the
169170 * message.
170171 */
171- Assert::notNull ($ message ->getDestination ()); // Validation of the value must be done upstream
172+ Assert::notNull ($ message ->getDestination (), ProtocolViolationException::class);
173+ // Validation of the Destination must be done upstream
172174
173175 if (!array_key_exists ('SigAlg ' , $ query )) {
174176 throw new Exception ('Missing signature algorithm. ' );
You can’t perform that action at this time.
0 commit comments