Skip to content
Snippets Groups Projects
Commit b81bcd91 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Adding debug mode for Shibboleth AuthnResponse. If you turn on the debug...

Adding debug mode for Shibboleth AuthnResponse. If you turn on the debug option in config.php you will now get the web page showing the authnresponse, as it earlier did with SAML 2.0

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@169 44740490-163a-0410-bde0-09ae8108e29a
parent 0a0c1a1b
No related branches found
No related tags found
No related merge requests found
......@@ -146,14 +146,39 @@ 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');
if ($this->configuration->getValue('debug')) {
$p->data['RelayStateName'] = 'TARGET';
$p->data['RelayState'] = $relayState;
$p->data['destination'] = $destination;
$p->data['response'] = base64_encode($response);
$p = new SimpleSAML_XHTML_Template($this->configuration, 'post-debug.php');
$p->data['header'] = 'SAML (Shibboleth 1.3) Response Debug-mode';
$p->data['RelayStateName'] = 'TARGET';
$p->data['RelayState'] = $relayState;
$p->data['destination'] = $destination;
$p->data['response'] = str_replace("\n", "", base64_encode($response));
$p->data['responseHTML'] = htmlentities($responsedom->saveHTML());
$p->show();
} else {
$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();
}
$p->show();
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment