public function validateLogoutRequest(LogoutRequest $request, User $user)
    {
        $this->validateIssuer($request);
        $this->validateNameId($request, $user);

        if ($this->hasSignature($request)) {
            $this->validateSignature(
                $request,
                KeyHelper::createPublicKey(
                    $this->getMetadata()->getFirstIdpSsoDescriptor()
                        ->getFirstKeyDescriptor(KeyDescriptor::USE_SIGNING)
                        ->getCertificate()
                )
            );
        }
    }