src/Authenticator/HttpBasicAuthenticator.php
public function authenticate(ServerRequestInterface $request, ResponseInterface $response)
    {
        $user = $this->getUser($request);

        if (empty($user)) {
            return new Result(null, Result::FAILURE_CREDENTIALS_MISSING);
        }

        return new Result($user, Result::SUCCESS);
    }
public function authenticate(ServerRequestInterface $request, ResponseInterface $response)
    {
        $user = $this->getUser($request);

        if (empty($user)) {
            return new Result(null, Result::FAILURE_CREDENTIALS_MISSING);
        }

        return new Result($user, Result::SUCCESS);
    }
public function authenticate ( ServerRequestInterface $ request , ResponseInterface $ response ) { $ user = $ this -> getUser ( $ request ) ; if ( empty ( $ user ) ) { return new Result ( null , Result :: FAILURE_CREDENTIALS_MISSING ) ; } return new Result ( $ user , Result :: SUCCESS ) ; }
Authenticate a user using HTTP auth. Will use the configured User model and attempt a
login using HTTP auth.

@param \Psr\Http\Message\ServerRequestInterface $request The request to authenticate with.
@param \Psr\Http\Message\ResponseInterface $response The response to add headers to.
@return \Authentication\Authenticator\ResultInterface
Authenticate a user using HTTP auth . Will use the configured User model and attempt a login using HTTP auth .