Skip to content
Snippets Groups Projects
Commit a0583c83 authored by Jaime Perez's avatar Jaime Perez
Browse files

aselect: remove check for nonexistent 'res' index in A-Select server's...

aselect: remove check for nonexistent 'res' index in A-Select server's response. Look for 'uid' and 'organization' directly in the response array.
parent c44ff1ac
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,7 @@ try {
if (array_key_exists('attributes', $creds)) {
$state['Attributes'] = $creds['attributes'];
} else {
$res = $creds['res'];
$state['Attributes'] = array('uid' => array($res['uid']), 'organization' => array($res['organization']));
$state['Attributes'] = array('uid' => array($creds['uid']), 'organization' => array($creds['organization']));
}
} catch (Exception $e) {
SimpleSAML_Auth_State::throwException($state, $e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment