Symfony version(s) affected: 5.2.0
5.2-RC2 was not affected
Description
Using the new authenticator-based security,
and a custom authenticator (which extends AbstractAuthenticator),
users get this error after login: Call to a member function getUserLoader() on null

This is caused by PasswordMigratingListener, being triggered automatically since #39213, to assume than every Passport contains an UserBadge. This is nor documented (here) nor enforced by UserPassportInterface, so I believe it should be tested.
How to reproduce
/
Possible Solution
PR coming soon