From 3f9313c4d009aeb92fcf452ad7fd440dfa3cf8db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez?= <jaime.perez@uninett.no> Date: Wed, 31 Aug 2016 13:40:36 +0200 Subject: [PATCH] Use the new SimpleSAML\Module\saml\Error\ProxyCountExceeded exception. --- 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 468f5f8f4..0e6cdc5ea 100644 --- a/modules/saml/lib/Auth/Source/SP.php +++ b/modules/saml/lib/Auth/Source/SP.php @@ -181,7 +181,10 @@ class sspmod_saml_Auth_Source_SP extends SimpleSAML_Auth_Source { private function startSSO2(SimpleSAML_Configuration $idpMetadata, array $state) { if (isset($state['saml:ProxyCount']) && $state['saml:ProxyCount'] < 0) { - SimpleSAML_Auth_State::throwException($state, new SimpleSAML_Error_ProxyCountExceeded("ProxyCountExceeded")); + SimpleSAML_Auth_State::throwException( + $state, + new \SimpleSAML\Module\saml\Error\ProxyCountExceeded(\SAML2\Constants::STATUS_RESPONDER) + ); } $ar = sspmod_saml_Message::buildAuthnRequest($this->metadata, $idpMetadata); -- GitLab