Skip to content

Event dispatch payloads for WebAuthn failure cases (#675) #96

Event dispatch payloads for WebAuthn failure cases (#675)

Event dispatch payloads for WebAuthn failure cases (#675) #96

Triggered via push January 18, 2025 15:33
Status Success
Total duration 5m 59s
Artifacts

infection.yml

on: push
5️⃣ Mutation Testing
5m 50s
5️⃣ Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
5️⃣ Mutation Testing
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
5️⃣ Mutation Testing: src/stimulus/src/WebauthnStimulusBundle.php#L16
Escaped Mutant for Mutator "LogicalNot": @@ @@ { public function prependExtension(ContainerConfigurator $container, ContainerBuilder $builder): void { - if (!$this->isAssetMapperAvailable($builder)) { + if ($this->isAssetMapperAvailable($builder)) { return; } $builder->prependExtensionConfig('framework', ['asset_mapper' => ['paths' => [__DIR__ . '/../assets/dist' => '@web-auth/webauthn-stimulus']]]);
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L390
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ } private function createAttestationRequestControllerAndRoute(ContainerBuilder $container, string $firewallName, string $method, string $path, ?string $host, string $optionsBuilderId, string $optionsStorageId, string $optionsHandlerId, string $failureHandlerId): void { - $controller = (new Definition(AttestationRequestController::class))->setFactory([new Reference(AttestationControllerFactory::class), 'createRequestController'])->setArguments([new Reference($optionsBuilderId), new Reference(RequestBodyUserEntityGuesser::class), new Reference($optionsStorageId), new Reference($optionsHandlerId), new Reference($failureHandlerId), true]); + $controller = (new Definition(AttestationRequestController::class))->setFactory([new Reference(AttestationControllerFactory::class), 'createRequestController'])->setArguments([new Reference(RequestBodyUserEntityGuesser::class), new Reference($optionsStorageId), new Reference($optionsHandlerId), new Reference($failureHandlerId), true]); $this->createControllerAndRoute($container, $controller, 'creation', 'options', $firewallName, $method, $path, $host); } private function createResponseControllerAndRoute(ContainerBuilder $container, string $firewallName, string $action, string $method, string $path, ?string $host): void
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L396
Escaped Mutant for Mutator "TrueValue": @@ @@ } private function createAttestationRequestControllerAndRoute(ContainerBuilder $container, string $firewallName, string $method, string $path, ?string $host, string $optionsBuilderId, string $optionsStorageId, string $optionsHandlerId, string $failureHandlerId): void { - $controller = (new Definition(AttestationRequestController::class))->setFactory([new Reference(AttestationControllerFactory::class), 'createRequestController'])->setArguments([new Reference($optionsBuilderId), new Reference(RequestBodyUserEntityGuesser::class), new Reference($optionsStorageId), new Reference($optionsHandlerId), new Reference($failureHandlerId), true]); + $controller = (new Definition(AttestationRequestController::class))->setFactory([new Reference(AttestationControllerFactory::class), 'createRequestController'])->setArguments([new Reference($optionsBuilderId), new Reference(RequestBodyUserEntityGuesser::class), new Reference($optionsStorageId), new Reference($optionsHandlerId), new Reference($failureHandlerId), false]); $this->createControllerAndRoute($container, $controller, 'creation', 'options', $firewallName, $method, $path, $host); } private function createResponseControllerAndRoute(ContainerBuilder $container, string $firewallName, string $action, string $method, string $path, ?string $host): void
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L398
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ private function createAttestationRequestControllerAndRoute(ContainerBuilder $container, string $firewallName, string $method, string $path, ?string $host, string $optionsBuilderId, string $optionsStorageId, string $optionsHandlerId, string $failureHandlerId): void { $controller = (new Definition(AttestationRequestController::class))->setFactory([new Reference(AttestationControllerFactory::class), 'createRequestController'])->setArguments([new Reference($optionsBuilderId), new Reference(RequestBodyUserEntityGuesser::class), new Reference($optionsStorageId), new Reference($optionsHandlerId), new Reference($failureHandlerId), true]); - $this->createControllerAndRoute($container, $controller, 'creation', 'options', $firewallName, $method, $path, $host); + } private function createResponseControllerAndRoute(ContainerBuilder $container, string $firewallName, string $action, string $method, string $path, ?string $host): void {
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L419
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ } private function createResponseControllerAndRoute(ContainerBuilder $container, string $firewallName, string $action, string $method, string $path, ?string $host): void { - $controller = (new Definition(DummyController::class))->setFactory([new Reference(DummyControllerFactory::class), 'create']); + $controller = (new Definition(DummyController::class))->setFactory(['create']); $this->createControllerAndRoute($container, $controller, $action, 'result', $firewallName, $method, $path, $host); } private function createControllerAndRoute(ContainerBuilder $container, Definition $controller, string $name, string $operation, string $firewallName, string $method, string $path, ?string $host): void
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L420
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ private function createResponseControllerAndRoute(ContainerBuilder $container, string $firewallName, string $action, string $method, string $path, ?string $host): void { $controller = (new Definition(DummyController::class))->setFactory([new Reference(DummyControllerFactory::class), 'create']); - $this->createControllerAndRoute($container, $controller, $action, 'result', $firewallName, $method, $path, $host); + } private function createControllerAndRoute(ContainerBuilder $container, Definition $controller, string $name, string $operation, string $firewallName, string $method, string $path, ?string $host): void {
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L442
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ } private function createControllerAndRoute(ContainerBuilder $container, Definition $controller, string $name, string $operation, string $firewallName, string $method, string $path, ?string $host): void { - $controller->addTag('controller.service_arguments')->addTag(DynamicRouteCompilerPass::TAG, ['method' => $method, 'path' => $path, 'host' => $host])->setPublic(true); + $controllerId = sprintf('webauthn.controller.security.%s.%s.%s', $firewallName, $name, $operation); $container->setDefinition($controllerId, $controller); }
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L444
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ } private function createControllerAndRoute(ContainerBuilder $container, Definition $controller, string $name, string $operation, string $firewallName, string $method, string $path, ?string $host): void { - $controller->addTag('controller.service_arguments')->addTag(DynamicRouteCompilerPass::TAG, ['method' => $method, 'path' => $path, 'host' => $host])->setPublic(true); + $controller->addTag('controller.service_arguments')->addTag(DynamicRouteCompilerPass::TAG, ['path' => $path, 'host' => $host])->setPublic(true); $controllerId = sprintf('webauthn.controller.security.%s.%s.%s', $firewallName, $name, $operation); $container->setDefinition($controllerId, $controller); }
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L449
Escaped Mutant for Mutator "TrueValue": @@ @@ } private function createControllerAndRoute(ContainerBuilder $container, Definition $controller, string $name, string $operation, string $firewallName, string $method, string $path, ?string $host): void { - $controller->addTag('controller.service_arguments')->addTag(DynamicRouteCompilerPass::TAG, ['method' => $method, 'path' => $path, 'host' => $host])->setPublic(true); + $controller->addTag('controller.service_arguments')->addTag(DynamicRouteCompilerPass::TAG, ['method' => $method, 'path' => $path, 'host' => $host])->setPublic(false); $controllerId = sprintf('webauthn.controller.security.%s.%s.%s', $firewallName, $name, $operation); $container->setDefinition($controllerId, $controller); }
5️⃣ Mutation Testing: src/symfony/src/DependencyInjection/Factory/Security/WebauthnFactory.php#L453
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ { $controller->addTag('controller.service_arguments')->addTag(DynamicRouteCompilerPass::TAG, ['method' => $method, 'path' => $path, 'host' => $host])->setPublic(true); $controllerId = sprintf('webauthn.controller.security.%s.%s.%s', $firewallName, $name, $operation); - $container->setDefinition($controllerId, $controller); + } /** * @param array<array-key, mixed> $config