Skip to content

[Security] Security::login does not take into account custom user_checker #57706

@oleg-andreyev

Description

@oleg-andreyev

Symfony version(s) affected

6.4.3

Description

We have custom user_checker for main firewall and we have automatically called Security::login which does not take into account customuser_checker and calling InMemoryUserChecker

How to reproduce

security.yaml

    main:
      lazy: true
      provider: app_user_provider
      user_checker: App\User\UserChecker

after that just call Security::login() and UserChecker won't be called.

Possible Solution

since already fetch getFirewallConfig we need to fetch userChecker and fetch it from container.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions