Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Description
In theForm login
chapter of theCookbook
there is an example ofsecurity.yml
configuration:
# app/config/security.ymlsecurity:# ...firewalls:default:anonymous:~http_basic:~form_login:login_path:/logincheck_path:/login_check
In this example two different authentication methods are used in the same firewall. There was a small section inbook/security/authentication.rst with the following explanation:
When the user is not authenticated and if there is more than one authentication mechanisms, Symfony2 automatically defines a default entry point (in the example above, the login form; but if the user send an Authorization HTTP header with wrong credentials, Symfony2 will use the HTTP basic entry point).
But inthis commit it was deleted and now I can't find anything about the behavior of such configuration inSymfony
documentation. This example is a bit confusing for novices, so it will be great to restore a small tip about how it works.