Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function validate(SerializableElementInterface $response): void |
||
32 | { |
||
33 | // Validate that the destination matches the appropriate endpoint from the SP-metadata |
||
34 | foreach ($this->spMetadata->getAssertionConsumerService() as $assertionConsumerService) { |
||
35 | if ($assertionConsumerService->getLocation() === $response->getDestination()) { |
||
|
|||
36 | if (Binding::getBinding($assertionConsumerService->getBinding()) instanceof $this->binding) { |
||
37 | return; |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 | throw new ResourceNotRecognizedException(); |
||
42 | } |
||
44 |