Skip to content

Deprecate not configuring explicitly a provider for custom_authenticators when there is more than one registered provider #17215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2022

Conversation

mdoutreluingne
Copy link
Contributor

Fixes #16041

@carsonbot carsonbot added this to the 5.4 milestone Aug 21, 2022
@carsonbot carsonbot changed the title [SecurityBundle] Deprecate not configuring explicitly a provider for custom_authenticators when there is more than one registered provider Deprecate not configuring explicitly a provider for custom_authenticators when there is more than one registered provider Aug 21, 2022
@mdoutreluingne mdoutreluingne deleted the fix_16041 branch September 24, 2022 08:33
@mdoutreluingne mdoutreluingne restored the fix_16041 branch September 27, 2022 19:09

Having multiple user providers and a ``custom_authenticator`` and not having specified the user provider
to use has been deprecated in Symfony 5.4. If you have registered multiple user providers, you must set the
``provider`` key to one of the configured providers, even if your custom authenticators don't use it.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would reword this a bit:

If you have registered multiple user providers, you must set the
provider key to one of the configured providers, even if your custom authenticators don't use it. Not doing so is deprecated in Symfony 5.4.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, it's done

@mdoutreluingne mdoutreluingne requested a review from xabbuh October 31, 2022 17:31
…tors when there is more than one registered provider
@xabbuh
Copy link
Member

xabbuh commented Nov 20, 2022

Thank you @mdoutreluingne.

@xabbuh xabbuh merged commit b1e6201 into symfony:5.4 Nov 20, 2022
@mdoutreluingne mdoutreluingne deleted the fix_16041 branch November 20, 2022 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SecurityBundle] Deprecate not configuring explicitly a provider for cu…
3 participants