tuupola/slim-basic-auth

Implementation issues while running on IIS8 (Azure WebApp)

nduijvelshoff opened this issue · 0 comments

Hi There!

I got an internal server error when im using the following components:

  • SlimFramwork 2.6.3
  • HttpBasicAuthentication (latest 2.x)

I'm using the following placement of the files:
index.php
web.config

/Slim:
Environment.php
Log.php
LogWriter.php
Middleware.php
Route.php
Router.php
Slim.php
View.php

/Slim/Exception:
Pass.php
Stop.php

/Slim/Helper:
Set.php

/Slim/Http:
Cookies.php
Headers.php
Request.php
Response.php
Util.php

/Slim/Middleware:
ContentTypes.php
Flash.php
HttpBasicAuthentication.php
MethodOverride.php
PrettyExceptions.php
SessionCookie.php

/Slim/Middleware/HttpBasicAuthentication:
ArrayAuthenticator.php
AuthenticatorInterface.php
PdoAuthenticator.php
RequestMethodRule.php
RequestPathRule.php
RuleInterface.php

And the following lines to add the middleware:

$app = new \Slim\Slim();

$app->add(new \Slim\Middleware\HttpBasicAuthentication([
"path" => "/api",
"realm" => "Protected",
"users" => [
"someone" => "test"
]
]));