Метод | Описание | |
---|---|---|
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | Execute the middleware. | |
getUsername ( Psr\Http\Message\ServerRequestInterface $request ) : string | null | Returns the username. | |
nonce ( string $nonce ) : self | Set the nonce value. |
Метод | Описание | |
---|---|---|
checkAuthentication ( array $authorization, string $method, string $password ) : boolean | Validates the user authentication. | |
login ( Psr\Http\Message\ServerRequestInterface $request, string | null &$username ) : boolean | Login or check the user credentials. | |
parseAuthorizationHeader ( string $header ) : false | array | Parses the authorization header for a basic authentication. |
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface | ||
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
$next | callable | |
Результат | Psr\Http\Message\ResponseInterface |
public static getUsername ( Psr\Http\Message\ServerRequestInterface $request ) : string | null | ||
$request | Psr\Http\Message\ServerRequestInterface | |
Результат | string | null |