From ef07ce8d9edb9c9de7127f7650ea43a4313be5a6 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Mon, 13 Jul 2009 06:18:56 +0000 Subject: [PATCH] consent: Give a more informative error message on a passive request. Since the exception message is now passed back to the SP, the error should be more informative. This patch change the error message to indicate that we are unable to give consent on a passive request. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1576 44740490-163a-0410-bde0-09ae8108e29a --- modules/consent/lib/Auth/Process/Consent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/consent/lib/Auth/Process/Consent.php b/modules/consent/lib/Auth/Process/Consent.php index a09aea579..820b78fb8 100644 --- a/modules/consent/lib/Auth/Process/Consent.php +++ b/modules/consent/lib/Auth/Process/Consent.php @@ -182,7 +182,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt /* User interaction nessesary. Throw exception on isPassive request */ if (isset($state['isPassive']) && $state['isPassive'] == TRUE) { - throw new SimpleSAML_Error_NoPassive('noPassive'); + throw new SimpleSAML_Error_NoPassive('Unable to give consent on passive request.'); } /* Save state and redirect. */ -- GitLab