Skip to content

Ignore is not working as expected #106

@seth100

Description

@seth100

Hi,

the following configuration:

$app->add(new Tuupola\Middleware\HttpBasicAuthentication([
    "path" => ["/"],
    "ignore" => ["/api/unauthorized"],
    // ...
]));

does not work as expected, the requests to mydomain.com/api.php/api/unauthorized/... are still protected (as all those to mydomain.com/api.php/api/...).
While, if I change that to something like:

$app->add(new Tuupola\Middleware\HttpBasicAuthentication([
    "path" => ["/api"],
    "ignore" => ["/api/unauthorized"],
    // ...
]));

all my requests containing mydomain.com/api.php/api/... are not protected.

What am I doing wrong?
Is that a know issue (e.g. tuupola/slim-jwt-auth#140)?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions