@@ -65,6 +65,7 @@ public function load_emptyConfig_setDefaultValues(): void
6565 'Symfony\Component\Security\Http\Authenticator\Token\PostAuthenticationToken ' ,
6666 ], 'scheb_two_factor.security_tokens ' );
6767 $ this ->assertHasParameter ([], 'scheb_two_factor.ip_whitelist ' );
68+ $ this ->assertHasParameter (0 , 'scheb_two_factor.authenticator_priority ' );
6869 }
6970
7071 /**
@@ -100,6 +101,7 @@ public function load_fullConfig_setConfigValues(): void
100101 $ this ->assertHasParameter ('/cookie-path ' , 'scheb_two_factor.trusted_device.cookie_path ' );
101102 $ this ->assertHasParameter (['Symfony\Component\Security\Core\Authentication\Token\SomeToken ' ], 'scheb_two_factor.security_tokens ' );
102103 $ this ->assertHasParameter (['127.0.0.1 ' , '10.0.0.0/8 ' , '192.168.0.0/16 ' ], 'scheb_two_factor.ip_whitelist ' );
104+ $ this ->assertHasParameter (-50 , 'scheb_two_factor.authenticator_priority ' );
103105 }
104106
105107 /**
@@ -649,6 +651,7 @@ private function getFullConfig(): array
649651 - 127.0.0.1
650652 - ['10.0.0.0/8', '192.168.0.0/16']
651653ip_whitelist_provider: acme_test.ip_whitelist_provider
654+ authenticator_priority: -50
652655two_factor_token_factory: acme_test.two_factor_token_factory
653656two_factor_provider_decider: acme_test.two_factor_provider_decider
654657two_factor_condition: acme_test.two_factor_condition
0 commit comments