php - Unrecognized option "knpu_guard" under "security.firewalls.main" (Symfony) -


i add facebook login option website. try follow this tutorial. if add knpu_guard part under main section, error:

unrecognized option "knpu_guard" under "security.firewalls.main" 

my firewalls section in security.yml looks 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             # default, use start() function formloginauthenticator             entry_point: app.form_login_authenticator 

i added knpu_guard section, nothing else changed under firewalls section

i think tutorial little bit obsolete because knpu_guard no longer accepted.

you can use guard instead key in security.yml file

discussion

try use this

form_login:    login_path: login    check_path: login    provider: user_provider #where provider? shouldn't fos_userbundle example? anonymous: true 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -