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

Appearance settings

[Security] RememberMeAuthenticationProvider is broken #33472

Copy link
Copy link
Closed
@umpirsky

Description

@umpirsky
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.