Skip to content

[SecurityBundle] Can not use decorated service for success/failure handler #49457

Open
@astronom

Description

@astronom

Symfony version(s) affected

5.4.19+, 6.2.5+

Description

The PR #48937 breaks the opportunity to use decorated success/failure handler services. If you check DI using debug:container lexik_jwt_authentication.handler.authentication_success it will show that the service is decorated.

How to reproduce

    services:
        App\Security\Http\Authentication\AuthenticationSuccessHandlerDecorator:
           decorates: lexik_jwt_authentication.handler.authentication_success
           arguments:
                $decoratedSuccessHandler: '@.inner'

    firewalls:
        auth:
            pattern: ^/auth/
            json_login:
                check_path: auth_check
                success_handler: lexik_jwt_authentication.handler.authentication_success
                failure_handler: lexik_jwt_authentication.handler.authentication_failure

Possible Solution

No response

Additional Context

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