public function getAuthenticator(HTTPRequest $request)
    {
        // Get list of default authenticators
        $authenticators = $this->config()->get('authenticators');
        if (empty($authenticators)) {
            return null;
        }

        // Build authenticator from first class
        $this->prioritiseAuthenticators($authenticators);
        foreach ($authenticators as $authenticatorConfig) {
            $authenticator = $this->buildAuthenticator($authenticatorConfig['class']);
            if ($authenticator->isApplicable($request)) {
                return $authenticator;
            }
        }
        return null;
    }