mirror of
https://github.com/flarum/core.git
synced 2025-10-12 07:24:27 +02:00
Add a middleware for authentication with CGI wrap
If the authorization header is stripped by CGI wrap, the server can be configured to send the value along in an environment variable. If the server admin sticks to this convention, Flarum can now use this variable. This is supposed to take care of #384.
This commit is contained in:
@@ -33,6 +33,7 @@ class Server extends AbstractServer
|
||||
$pipe->pipe($path, $app->make('Flarum\Api\Middleware\FakeHttpMethods'));
|
||||
$pipe->pipe($path, $app->make('Flarum\Http\Middleware\StartSession'));
|
||||
$pipe->pipe($path, $app->make('Flarum\Http\Middleware\RememberFromCookie'));
|
||||
$pipe->pipe($path, $app->make('Flarum\Http\Middleware\SharedHosts'));
|
||||
$pipe->pipe($path, $app->make('Flarum\Http\Middleware\AuthenticateWithSession'));
|
||||
$pipe->pipe($path, $app->make('Flarum\Http\Middleware\AuthenticateWithHeader'));
|
||||
$pipe->pipe($path, $app->make('Flarum\Http\Middleware\SetLocale'));
|
||||
|
Reference in New Issue
Block a user