public function createProvider($class, array $options, $redirectUri, array $redirectParams = [], array $collaborators = [])
    {
        $redirectUri = $this->generator
            ->generate($redirectUri, $redirectParams, UrlGeneratorInterface::ABSOLUTE_URL);

        $options['redirectUri'] = $redirectUri;

        return new $class($options, $collaborators);
    }