Skip to content

[Security] JSON login is not working as expected #27124

Closed
@javiereguiluz

Description

@javiereguiluz
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.0.8

This was originally reported by @Guikingone in symfony/symfony-docs#9611.


With a code like this, the Security Layer should intercept the request and return a dedicated response along with the credentials:

Code

But with this response, I see the following exception:

insomnia

If I add return new JsonResponse(); to the method, the exception is gone.

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