Skip to content
Snippets Groups Projects
Unverified Commit 141c28ed authored by Tim van Dijen's avatar Tim van Dijen Committed by GitHub
Browse files

Remove deprecated call to SimpleSAML_Error_NoPassive

parent 008d2de8
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt ...@@ -36,7 +36,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
/** /**
* Consent backend storage configuration * Consent backend storage configuration
* *
* @var array * @var sspmod_consent_Store|null
*/ */
private $_store = null; private $_store = null;
...@@ -320,7 +320,10 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt ...@@ -320,7 +320,10 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
// user interaction necessary. Throw exception on isPassive request // user interaction necessary. Throw exception on isPassive request
if (isset($state['isPassive']) && $state['isPassive'] === true) { if (isset($state['isPassive']) && $state['isPassive'] === true) {
SimpleSAML_Stats::log('consent:nopassive', $statsData); SimpleSAML_Stats::log('consent:nopassive', $statsData);
throw new SimpleSAML_Error_NoPassive('Unable to give consent on passive request.'); throw new SimpleSAML\Module\saml\Error\NoPassive(
\SAML2\Constants::STATUS_REQUESTER,
'Unable to give consent on passive request.'
);
} }
// Save state and redirect // Save state and redirect
......
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