From 002f182a1cf9ff764f6e2d93c3bc32c2b5f1885f Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Fri, 29 Dec 2017 12:38:44 +0100 Subject: [PATCH] Remove deprecated call to SimpleSAML_Error_NoPassive --- modules/saml/lib/Auth/Source/SP.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/saml/lib/Auth/Source/SP.php b/modules/saml/lib/Auth/Source/SP.php index 9c633cc49..100776bf4 100644 --- a/modules/saml/lib/Auth/Source/SP.php +++ b/modules/saml/lib/Auth/Source/SP.php @@ -522,7 +522,10 @@ class sspmod_saml_Auth_Source_SP extends SimpleSAML_Auth_Source { if (isset($state['isPassive']) && (bool)$state['isPassive']) { // passive request, we cannot authenticate the user - throw new SimpleSAML_Error_NoPassive('Reauthentication required'); + throw new SimpleSAML\Module\saml\Error\NoPassive( + \SAML2\Constants::STATUS_REQUESTER, + 'Reauthentication required' + ); } // save the state WITHOUT a restart URL, so that we don't try an IdP-initiated login if something goes wrong -- GitLab