Skip to content

It accepts anything as username/password request #9

@robinvdvleuten

Description

@robinvdvleuten

I found an issue in the UsernamePasswordAuthenticator. When I send a request with the following body;

{
    "test": "johndoe@example.com",
    "fault": "johndoe"
}

It returns a valid token because of this line;

list($username, $password) = array_values($body + ['username' => null, 'password' => null]);

Is it possible to add some (configurable) validation on the JSON request?

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