oscarotero / psr7-middlewares

[DEPRECATED] Collection of PSR-7 middlewares
MIT License
668 stars 56 forks source link

Slim v3 and DigestAuth middleware is endlessly looping the password dialog. #67

Closed martisj closed 7 years ago

martisj commented 7 years ago

I am using it like this

use Psr7Middlewares\Middleware;

$app->group('/api', function () use ($app) {
    $app->get('/ping', function () {...});
})->add(
    Middleware::DigestAuthentication(['me' => 'andYou'])
);
padjon commented 7 years ago

adding this to my .htaccess did the trick for me: SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

oscarotero commented 7 years ago

It seems to be an issue with the Http library. I don't have this problem with diactoros.

martisj commented 7 years ago

@padjon Seems like that works, I don't have a clue why though 😕