Skip to content

Commit 14f9bd3

Browse files
[SecurityBundle] Add directive deprecated for custom_authenticators key when there is more than one registered provider
1 parent 29d3c27 commit 14f9bd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

security/custom_authenticator.rst

Lines changed: 6 additions & 0 deletions
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+
Having multiple user providers and a ``custom_authenticator`` and not having specified the user provider
136+
to use has been deprecated in Symfony 5.4. If you have registered multiple user providers, you must set the
137+
``provider`` key to one of the configured providers, even if your custom authenticators don't use it.
138+
133139
.. versionadded:: 5.2
134140

135141
Starting with Symfony 5.2, the custom authenticator is automatically

0 commit comments

Comments
 (0)