Skip to content
Snippets Groups Projects
Commit 4b184650 authored by Olav Morken's avatar Olav Morken
Browse files

consent: Also allow disabling of consent when datastore has failed.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3042 44740490-163a-0410-bde0-09ae8108e29a
parent 80554f54
No related branches found
No related tags found
No related merge requests found
......@@ -166,12 +166,13 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
$state['Source'] = $idpmeta;
}
// Do not use consent if disabled on source entity
if ( isset($state['Source']['consent.disable']) && in_array($spEntityId, $state['Source']['consent.disable'])) {
SimpleSAML_Logger::debug('Consent: Consent disabled for entity ' . $spEntityId);
return;
}
if ($this->_store !== null) {
// Do not use consent if disabled on source entity
if ( isset($state['Source']['consent.disable']) && in_array($spEntityId, $state['Source']['consent.disable'])) {
SimpleSAML_Logger::debug('Consent: Consent disabled for entity ' . $spEntityId);
return;
}
$source = $state['Source']['metadata-set'] . '|' . $idpEntityId;
$destination = $state['Destination']['metadata-set'] . '|' . $spEntityId;
......
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