8000 Allow credentials to be sent as JSON · Issue #123 · lexik/LexikJWTAuthenticationBundle · GitHub
[go: up one dir, main page]

Skip to content

Allow credentials to be sent as JSON #123

@flo-sch

Description

@flo-sch

Hi,

Thanks for this bundle, it works great so far :)

I was just wondering, would it be possible to allow credentials to be sent both a a JSON object or application/x-www-form-urlencoded data?

It just makes more sense, as the response is sent in the JSON format anyway.
Basically, in addition to this request:

POST /api/login HTTP/1.1
Host: https://whatever.domain.org

_username="any-name"&_password="any-password"

Allow this one also:

POST /api/login HTTP/1.1
Host: https://whatever.domain.org
Content-Type: "application/json"

{
    "_username": "any-name",
    "_password": "any-password"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0