Ejemplo n.º 1
0
 public function test_logout_request_with_xsd()
 {
     $logoutRequest = new LogoutRequest();
     $logoutRequest->setNameID(new NameID('*****@*****.**', SamlConstants::NAME_ID_FORMAT_EMAIL))->setSessionIndex(Helper::generateID())->setNotOnOrAfter(new \DateTime('+2 minute'))->setID(Helper::generateID())->setIssueInstant(new \DateTime())->setDestination('https://destination.com')->setIssuer(new Issuer('https://issuer.com'));
     $this->sign($logoutRequest);
     $this->validateProtocol($logoutRequest);
 }
 public function test_logout_request()
 {
     $logoutRequest = new LogoutRequest();
     $logoutRequest->setNameID(new NameID('*****@*****.**', SamlConstants::NAME_ID_FORMAT_EMAIL));
     $this->verify($logoutRequest);
 }