How does spring security do login authentication in the case of federated primary keys?

for example, it takes two fields to uniquely determine the login person, but the verification method loadUserByUsername has only one parameter of userName, so it is impossible to pass two parameters. How can login verification be realized?

Feb.26,2021
Menu