8000 minor #17215 Deprecate not configuring explicitly a provider for cust… · symfony/symfony-docs@b1e6201 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1e6201

Browse files
committed
minor #17215 Deprecate not configuring explicitly a provider for custom_authenticators when there is more than one registered provider (mdoutreluingne)
This PR was squa 10000 shed before being merged into the 5.4 branch. Discussion ---------- Deprecate not configuring explicitly a provider for custom_authenticators when there is more than one registered provider Fixes #16041 Commits ------- 728d75b Deprecate not configuring explicitly a provider for custom_authenticators when there is more than one registered provider
2 parents c880bab + 728d75b commit b1e6201

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

security/custom_authenticator.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ The authenticator can be enabled using the ``custom_authenticators`` setting:
130130
;
131131
};
132132
133+
.. deprecated:: 5.4
134+
135+
If you have registered multiple user providers, you must set the
136+
``provider`` key to one of the configured providers, even if your
137+
custom authenticators don't use it. Not doing so is deprecated in Symfony 5.4.
138+
133139
.. versionadded:: 5.2
134140

135141
Starting with Symfony 5.2, the custom authenticator is automatically
@@ -185,7 +191,7 @@ can define what happens in these cases:
185191
If your login method is interactive, which means that the user actively
186192
logged into your application, you may want your authenticator to implement the
187193
:class:`Symfony\\Component\\Security\\Http\\Authenticator\\InteractiveAuthenticatorInterface`
188-
so that it dispatches an
194+
so that it dispatches an
189195
:class:`Symfony\\Component\\Security\\Http\\Event\\InteractiveLoginEvent`
190196

191197
.. _security-passport:

0 commit comments

Comments
 (0)
0