File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ final class ServiceProvider
5454 protected SignatureAlgorithmFactory $ signatureAlgorithmFactory ;
5555 protected EncryptionAlgorithmFactory $ encryptionAlgorithmFactory ;
5656 protected KeyTransportAlgorithmFactory $ keyTransportAlgorithmFactory ;
57-
57+ protected bool $ responseWasSigned ;
5858
5959 /**
6060 * @param bool $encryptedAssertions Whether assertions must be encrypted
@@ -160,7 +160,8 @@ public function receiveResponse(ServerRequestInterface $request): Response
160160 }
161161
162162 // Verify the signature (if any)
163- $ verifiedResponse = $ rawResponse ->isSigned () ? $ this ->verifyElementSignature ($ rawResponse ) : $ rawResponse ;
163+ $ this ->responseWasSigned = $ rawResponse ->isSigned ();
164+ $ verifiedResponse = $ this ->responseWasSigned ? $ this ->verifyElementSignature ($ rawResponse ) : $ rawResponse ;
164165
165166 $ state = null ;
166167 $ stateId = $ verifiedResponse ->getInResponseTo ();
You can’t perform that action at this time.
0 commit comments