tuupola/slim-basic-auth

How to configure path and ignore in below case?

taylorren opened this issue · 1 comments

Hi,

I just installed this middleware and would like to seek your support on configuring path and ignore in such circumstances.

I am using Slim.

  1. http://api/ will direct to my API doc, no authentication
  2. http://api/hello will prompt some explanation, no authentication
  3. All others, in the form of http://api/a/b or http://api/a/b/c, etc are the API invokation, need authentication. a, b, c above will be different for various API calls.

Thanks!

Managed to work around this.

ignore must be working with path. Now my configuration goes like this:

'path'=>"/",
    "ignore"=>['/hello','/doc'],

I sacrificed http://api to be redirected. Still not fully satisfied.