public function getAuthenticationUri(?string $state = null, array $options = []): string
    {
        $redirectUri = $this->getRedirectUriWithState($state);
        $query = [
            'openid.ns' => self::OPEN_ID_NS,
            'openid.mode' => 'checkid_setup',
            'openid.identity' => $options['identity'] ?? self::OPEN_ID_IDENTIFIER,
            'openid.claimed_id' => $options['claimed_id'] ?? $options['identity'] ?? self::OPEN_ID_IDENTIFIER,
            'openid.return_to' => $redirectUri,
            'openid.realm' => parse_url($redirectUri, PHP_URL_SCHEME).'://'.parse_url($redirectUri, PHP_URL_HOST),
        ];

        return $this->getAuthEndpoint().'?'.http_build_query($query);
    }
public function getAuthenticationUri(?string $state = null, array $options = []): string
    {
        $redirectUri = $this->getRedirectUriWithState($state);
        $query = [
            'openid.ns' => self::OPEN_ID_NS,
            'openid.mode' => 'checkid_setup',
            'openid.identity' => $options['identity'] ?? self::OPEN_ID_IDENTIFIER,
            'openid.claimed_id' => $options['claimed_id'] ?? $options['identity'] ?? self::OPEN_ID_IDENTIFIER,
            'openid.return_to' => $redirectUri,
            'openid.realm' => parse_url($redirectUri, PHP_URL_SCHEME).'://'.parse_url($redirectUri, PHP_URL_HOST),
        ];

        return $this->getAuthEndpoint().'?'.http_build_query($query);
    }
{@inheritdoc}