Currently I am developing Symfony application where I have multiple login form. For the login form I created the firewall and also created custom authenticator. New created custom authenticator added into the services.yaml file as well.
Authenticator working perfectly when added to the main firewall but it is not working with the oauth_login firewall.
New authenticator file is manually created.
When ever I try to login with oauth_login form, I am not able to login and also OLoginFormAuthenticator is not called.
Edit:
Following changes worked for me
A few approaches and ideas:
Rename
custom_authenticator
Try to name the property
custom_authenticators:
(with an trailings
) See How to Write a Custom Authenticator for more information.Check
entry_point
targetAlso your
entry_point
could be wrong! Does your Authenticator implementsAuthenticationEntryPointInterface
? You maybe want a separate class for this.See The Entry Point for more information.
Show all possible configurations of
security.yaml
Type this in your terminal to see all possible configurations of
security.yaml