Skip to content

[Security] RememberMeAuthenticationProvider is broken #33472

Closed
@umpirsky

Description

@umpirsky

Symfony version(s) affected: 4.2 - 4.4

Description
Similar to #26775, In https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Security/Core/Authentication/Provider/RememberMeAuthenticationProvider.php#L50-L52.
TokenInterface::getUser() returns string|object, UserCheckerInterface::checkPreAuth() allows a UserInterface instance only.

I get Argument 1 passed to checkPreAuth() must implement interface Symfony\Component\Security\Core\User\UserInterface, null given, and can't reproduce it, but the code looks wrong.

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