Skip to content
Snippets Groups Projects
Commit 0164d518 authored by Jacob Christiansen's avatar Jacob Christiansen
Browse files

Added support for disabling consent on specifik services for a given IdP.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1977 44740490-163a-0410-bde0-09ae8108e29a
parent 77ae3257
No related branches found
No related tags found
No related merge requests found
...@@ -159,11 +159,16 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt ...@@ -159,11 +159,16 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
} }
if ($this->store !== NULL) { if ($this->store !== NULL) {
// Do not use consent if disabled on source entity
if(isset($state['Source']['consent.disable']) && in_array($state['Destination']['entityid'], $state['Source']['consent.disable'])) {
SimpleSAML_Logger::debug('Consent - Consent disabled for entity ' . $state['Destination']['entityid']);
return;
}
$source = $state['Source']['metadata-set'] . '|' . $state['Source']['entityid']; $source = $state['Source']['metadata-set'] . '|' . $state['Source']['entityid'];
$destination = $state['Destination']['metadata-set'] . '|' . $state['Destination']['entityid']; $destination = $state['Destination']['metadata-set'] . '|' . $state['Destination']['entityid'];
SimpleSAML_Logger::debug('Consent - userid : ' . $state['UserID']); SimpleSAML_Logger::debug('Consent - userid : ' . $state['UserID']);
SimpleSAML_Logger::debug('Consent - source : ' . $source); SimpleSAML_Logger::debug('Consent - source : ' . $source);
SimpleSAML_Logger::debug('Consent - destination : ' . $destination); SimpleSAML_Logger::debug('Consent - destination : ' . $destination);
...@@ -246,4 +251,4 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt ...@@ -246,4 +251,4 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
} }
?> ?>
\ No newline at end of file
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