I would like to add facebook login option to my website. I try to follow this tutorial. But if I add the knpu_guard
part under the main section, I get this error:
Unrecognized option "knpu_guard" under "security.firewalls.main"
My firewalls
section in the security.yml
looks like this:
firewalls:
main:
anonymous: ~
#pattern: ^/
provider: our_db_provider
form_login:
login_path: login
check_path: login
logout:
path: /logout
target: /
knpu_guard:
authenticators:
- app.form_login_authenticator
- app.api_token_authenticator
- app.facebook_authenticator
# by default, use the start() function from FormLoginAuthenticator
entry_point: app.form_login_authenticator
I just added the knpu_guard
section, nothing else changed under the firewalls
section