|
@@ 229-243 (lines=15) @@
|
| 226 |
|
} |
| 227 |
|
|
| 228 |
|
$loaResolution = $this->get('surfnet_stepup.service.loa_resolution'); |
| 229 |
|
if (!$loaResolution->hasLoa($authnContextClassRef)) { |
| 230 |
|
$logger->info( |
| 231 |
|
sprintf( |
| 232 |
|
'Requested required Loa "%s" does not exist, sending response with status Requester Error', |
| 233 |
|
$authnContextClassRef |
| 234 |
|
) |
| 235 |
|
); |
| 236 |
|
$responseRendering = $this->get( |
| 237 |
|
'gateway.service.saml_response' |
| 238 |
|
); |
| 239 |
|
|
| 240 |
|
return $responseRendering->renderRequesterFailureResponse( |
| 241 |
|
$this->get(self::RESPONSE_CONTEXT_SERVICE_ID) |
| 242 |
|
); |
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
$loa = $loaResolution->getLoa($authnContextClassRef); |
| 246 |
|
$authContextClass = $loa->fetchAuthnContextClassOfType( |
|
@@ 250-264 (lines=15) @@
|
| 247 |
|
AuthnContextClass::TYPE_GATEWAY |
| 248 |
|
); |
| 249 |
|
|
| 250 |
|
if (!$authContextClass->isIdentifiedBy($authnContextClassRef)) { |
| 251 |
|
$logger->info( |
| 252 |
|
sprintf( |
| 253 |
|
'Requested required Loa "%s" is of the wrong type, sending response with status Requester Error', |
| 254 |
|
$authnContextClassRef |
| 255 |
|
) |
| 256 |
|
); |
| 257 |
|
$responseRendering = $this->get( |
| 258 |
|
'gateway.service.saml_response' |
| 259 |
|
); |
| 260 |
|
|
| 261 |
|
return $responseRendering->renderRequesterFailureResponse( |
| 262 |
|
$this->get(self::RESPONSE_CONTEXT_SERVICE_ID) |
| 263 |
|
); |
| 264 |
|
} |
| 265 |
|
|
| 266 |
|
return null; |
| 267 |
|
} |