Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore is not working as expected #106

Open
seth100 opened this issue Mar 7, 2021 · 0 comments
Open

Ignore is not working as expected #106

seth100 opened this issue Mar 7, 2021 · 0 comments

Comments

@seth100
Copy link

seth100 commented Mar 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant