File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/bundle/DependencyInjection/Factory/Security Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,14 @@ Upgrading
33
44Here's an overview if you have to do any work when upgrading.
55
6+ 7.x to 8.x
7+ ----------
8+
9+ Priority of the two-factor authenticator has changed from ` 0 ` to ` -100 ` . Please make sure your authentication system
10+ is still working fine, especially when you're using custom (non-official) authenticators. You might need to adjust
11+ the priority of your custom authenticator.
12+
13+
6146.x to 7.x
715----------
816
Original file line number Diff line number Diff line change 1818 */
1919class TwoFactorFactory implements FirewallListenerFactoryInterface, AuthenticatorFactoryInterface
2020{
21+ public const AUTHENTICATOR_PRIORITY = -100 ;
2122 public const AUTHENTICATION_PROVIDER_KEY = 'two_factor ' ;
2223
2324 public const DEFAULT_CHECK_PATH = '/2fa_check ' ;
@@ -172,6 +173,7 @@ public function getKey(): string
172173
173174 public function getPriority (): int
174175 {
175- return 0 ;
176+ // Lower than the lowest "official" authenticator HttpBasicFactory (-50)
177+ return self ::AUTHENTICATOR_PRIORITY ;
176178 }
177179}
You can’t perform that action at this time.
0 commit comments