From a189bf93f283fb908d0416f8e769318ed6a09aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Sat, 13 Sep 2008 02:57:17 +0000 Subject: [PATCH] Started fixing openid. changed to use new error handling one place to debug some more. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@867 44740490-163a-0410-bde0-09ae8108e29a --- www/openid/provider/server.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/www/openid/provider/server.php b/www/openid/provider/server.php index 70c5b07fc..4c6a2c31d 100644 --- a/www/openid/provider/server.php +++ b/www/openid/provider/server.php @@ -565,9 +565,15 @@ function doAuth($info, $trusted=null, $fail_cancels=false) setRequestInfo($info); if ($req_url != $user) { - error_log('simpleSAMLphp doauth():' . 'Your identity ' . $user . - ' does not match the requested identity from the OpenID consumer, which was: ' . $req_url); + $config = SimpleSAML_Configuration::getInstance(); + $session = SimpleSAML_Session::getInstance(); + + SimpleSAML_Utilities::fatalError($session->getTrackID(), 'OPENID', + new Exception('OpenID: simpleSAMLphp doauth():' . 'Your identity [' . $user . + '] does not match the requested identity from the OpenID consumer, which was: [' . $req_url . ']')); + + /* $t = new SimpleSAML_XHTML_Template($config, 'error.php'); $t->data['header'] = 'OpenID identity mismatch'; @@ -577,7 +583,7 @@ function doAuth($info, $trusted=null, $fail_cancels=false) $t->show(); exit(0); - + */ } $sites = getSessionSites(); -- GitLab