diff --git a/lib/SimpleSAML/Bindings/Shib13/HTTPPost.php b/lib/SimpleSAML/Bindings/Shib13/HTTPPost.php index 21409b26d24d7b392d5cec34fa6bf3421b7bf97d..ec7c202d873b61b5e9132c57a1880f1733b4eb2d 100644 --- a/lib/SimpleSAML/Bindings/Shib13/HTTPPost.php +++ b/lib/SimpleSAML/Bindings/Shib13/HTTPPost.php @@ -135,6 +135,16 @@ class SimpleSAML_Bindings_Shib13_HTTPPost { # openssl req -new -key server.key -out server.csr # openssl x509 -req -days 60 -in server.csr -signkey server.key -out server.crt + $p = new SimpleSAML_XHTML_Template($this->configuration, 'post.php'); + + $p->data['RelayStateName'] = 'TARGET'; + $p->data['RelayState'] = $relayState; + $p->data['destination'] = $destination; + $p->data['response'] = base64_encode($response); + + $p->show(); + /* + echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" @@ -165,6 +175,7 @@ class SimpleSAML_Bindings_Shib13_HTTPPost { </body> </html>'; + */ }