Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tip for multiple authentication mechanisms #5004

Closed
Labels
@chapay

Description

@chapay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp