protected function getAuthenticator(IContainer $container) : IAuthenticator
    {
        $authenticatorRegistry = new AuthenticatorRegistry();
        $authenticator = new Authenticator($authenticatorRegistry);
        $container->bindInstance(IAuthenticatorRegistry::class, $authenticatorRegistry);

        return $authenticator;
    }