Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security][Framework] Use Firewall Settings to get UserProvider Service for Request #54713

Closed as not planned
@Hanmac

Description

@Hanmac

Description

#46066 Allows to get the Firewall Config for a given Request, but the UserProvider is a string and doesn't give me the Service instance.

What I want, is to get the UserProvider (if able) for the current Firewall.
Either via a Service, or via RequestResolver.

Example:

  • I have a Controller like ForgetPassword.
  • I also have multiple Firewalls with different kind of Users, each should have their own ForgetPasswordAction
  • Instead of Writing multiple Controller Classes, I can just use Routing and have the same Controller under Multiple Routes
  • Now inside the Controller, I would like to access the UserProvider to give me the User I want to do my actions.
  • Depending on the Route, I'm in a different Firewall, so I get a different UserProvider with a different User type.

Example

No response

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