src/Saml.php
public function validateNameId(LogoutRequest $request, User $user)
    {
        if ($request->getNameID()->getValue() != $user->getUserName()) {
            throw new SamlException('urn:oasis:names:tc:SAML:2.0:status:RequestDenied');
        }
    }
public function validateNameId(LogoutRequest $request, User $user)
    {
        if ($request->getNameID()->getValue() != $user->getUserName()) {
            throw new SamlException('urn:oasis:names:tc:SAML:2.0:status:RequestDenied');
        }
    }
public function validateNameId ( LogoutRequest $ request , User $ user ) { if ( $ request -> getNameID ( ) -> getValue ( ) != $ user -> getUserName ( ) ) { throw new SamlException ( 'urn:oasis:names:tc:SAML:2.0:status:RequestDenied' ) ; } }
Validate a LogoutRequest NameId

@param LogoutRequest $request
@param User          $user

@throws SamlException
Validate a LogoutRequest NameId