Skip to content
Snippets Groups Projects
Commit 44d75c12 authored by Tim van Dijen's avatar Tim van Dijen
Browse files
parent 8f5795f1
No related branches found
No related tags found
No related merge requests found
......@@ -79,10 +79,11 @@ class sspmod_smartattributes_Auth_Process_SmartID extends SimpleSAML_Auth_Proces
}
private function addID($attributes, $request) {
$state = $request['saml:sp:State'];
foreach ($this->_candidates as $idCandidate) {
if (isset($attributes[$idCandidate][0])) {
if(($this->_add_authority) && (isset($request['saml:AuthenticatingAuthority'][0]))) {
return ($this->_add_candidate ? $idCandidate.':' : '').$attributes[$idCandidate][0] . '!' . $request['saml:AuthenticatingAuthority'][0];
if(($this->_add_authority) && (isset($state['saml:AuthenticatingAuthority'][0]))) {
return ($this->_add_candidate ? $idCandidate.':' : '').$attributes[$idCandidate][0] . '!' . $state['saml:AuthenticatingAuthority'][0];
} else {
return ($this->_add_candidate ? $idCandidate.':' : '').$attributes[$idCandidate][0];
}
......
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