src/Saml.php
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()
                )
            );
        }
    }
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()
                )
            );
        }
    }
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 ( ) ) ) ; } }
Validate a LogoutRequest

@param LogoutRequest $request
@param User          $user
Validate a LogoutRequest