Skip to content
Snippets Groups Projects
Commit 3f9313c4 authored by Jaime Pérez's avatar Jaime Pérez
Browse files

Use the new SimpleSAML\Module\saml\Error\ProxyCountExceeded exception.

parent cf41cd39
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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