Skip to content

[security] There is no user provider for user #35435

Closed
@thewalkingcoder

Description

@thewalkingcoder

Symfony version(s) affected: 4.4.3

Description
After update to 4.4.3 i have a RuntimeException "There is no user provider for user"

How to reproduce
if you have custom provider update to 4.4.3

Sample

security:
    providers:
        custom-security:
            id: custom.user_provider
    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false
        login:
            pattern: ^/login
            security: false
        secured_area:
            pattern: ^/
            guard:
                authenticators:
                    - custom.authentificator
                entry_point: custom.authentificator
            logout:
                path: /logout

Possible Solution
Problem is on the file Symfony/Component/Security/Http/Firewall/ContextListener.php method refreshUser

Follows #35065

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