Skip to content

[Security] providers become mandatory without any warning when using new authenticator system #38429

@tyx

Description

@tyx

Symfony version(s) affected: 5.2.0-beta1

Description

I just try to update to latest beta and it seems that providers config in security.yaml became mandatory when enabling new authenticator manager.

Without any providers i get the following error :
image

But in Symfony 5.1.7, it was not a big deal to not having a user provider.

How to reproduce

Remove any providers and using enable_authenticator_manager: true

Possible Solution

I would check if we have really one provider here:

If not throw an exception saying, you must provide a user_provider.

I'm ready to make a PR you are fine with this solution.

Additional context

I don't have any provider as I use aws cognito JWT system where user identity is in the token.

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