| 1 | <?php |
||
| 12 | class BasicAuth implements MiddlewareInterface |
||
| 13 | { |
||
| 14 | /** @var string */ |
||
| 15 | private $expectedAuthHeader; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | private $realm; |
||
| 19 | |||
| 20 | 4 | public function __construct(string $userName, string $password, string $realm) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritDoc |
||
| 28 | */ |
||
| 29 | 3 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 41 | } |
||
| 42 |