| @@ 28-34 (lines=7) @@ | ||
| 25 | { |
|
| 26 | public function metadataAction() |
|
| 27 | { |
|
| 28 | if (!$this->get('service_container')->getParameter('second_factor_only')) { |
|
| 29 | $this->get('logger')->notice(sprintf( |
|
| 30 | 'Access to %s denied, second_factor_only parameter set to false.', |
|
| 31 | __METHOD__ |
|
| 32 | )); |
|
| 33 | throw $this->createAccessDeniedException('Second Factor Only feature disabled'); |
|
| 34 | } |
|
| 35 | ||
| 36 | /** @var \Surfnet\SamlBundle\Metadata\MetadataFactory $metadataFactory */ |
|
| 37 | $metadataFactory = $this->get('second_factor_only.metadata_factory'); |
|
| @@ 44-50 (lines=7) @@ | ||
| 41 | { |
|
| 42 | $logger = $this->get('logger'); |
|
| 43 | ||
| 44 | if (!$this->get('service_container')->getParameter('second_factor_only')) { |
|
| 45 | $logger->notice(sprintf( |
|
| 46 | 'Access to %s denied, second_factor_only parameter set to false.', |
|
| 47 | __METHOD__ |
|
| 48 | )); |
|
| 49 | throw $this->createAccessDeniedException('Second Factor Only feature disabled'); |
|
| 50 | } |
|
| 51 | ||
| 52 | $logger->notice( |
|
| 53 | 'Received AuthnRequest on second-factor-only endpoint, started processing' |
|
| @@ 198-204 (lines=7) @@ | ||
| 195 | ||
| 196 | $logger = $this->get('surfnet_saml.logger')->forAuthentication($originalRequestId); |
|
| 197 | ||
| 198 | if (!$this->get('service_container')->getParameter('second_factor_only')) { |
|
| 199 | $logger->notice(sprintf( |
|
| 200 | 'Access to %s denied, second_factor_only parameter set to false.', |
|
| 201 | __METHOD__ |
|
| 202 | )); |
|
| 203 | throw $this->createAccessDeniedException('Second Factor Only feature disabled'); |
|
| 204 | } |
|
| 205 | ||
| 206 | $logger->notice('Creating second-factor-only Response'); |
|
| 207 | ||