Skip to content

Symfony authenticator's no longer called with anonymous: lazy #34614

@weaverryan

Description

@weaverryan

Symfony version(s) affected: 4.4.0

Description
Until now, if you have a Guard authenticator, its supports() method will be called on every request. However, with anonymous: lazy under your firewall, that no longer happens.

Maybe that's intended? If it is, I think anonymous: lazy can't be used as the default config in the security.yaml recipe, as it creates a very different experience.

How to reproduce
Reproducer: https://github.com/weaverryan/symfony-anonymous-lazy-reproducer

Basically, create an authenticator on a new project and access any URL. It will not be executed (because anonymous: lazy is the default setting in the recipe).

Possible Solution
I'm not sure if this is a bug with anonymous: lazy or if we should revert the recipe back to anonymous: true.

Additional context
Caught by MakerBundle tests :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy