コード例 #1
0
ファイル: HTTPRedirectTest.php プロジェクト: SysBind/saml2
 /**
  * Construct an authnresponse and send it.
  * Also test setting a relaystate and destination for the response.
  */
 public function testSendAuthnResponse()
 {
     $response = new Response();
     $response->setIssuer('testIssuer');
     $response->setRelayState('http://example.org');
     $response->setDestination('http://example.org/login?success=yes');
     $hr = new HTTPRedirect();
     $hr->send($response);
 }
コード例 #2
0
ファイル: HTTPRedirectTest.php プロジェクト: NIIF/saml2
 /**
  * Construct an authnresponse and send it.
  * Also test setting a relaystate and destination for the response.
  */
 public function testSendAuthnResponse()
 {
     $response = new Response();
     $response->setIssuer('testIssuer');
     $response->setRelayState('http://example.org');
     $response->setDestination('http://example.org/login?success=yes');
     $response->setSignatureKey(CertificatesMock::getPrivateKey());
     $hr = new HTTPRedirect();
     $hr->send($response);
 }