Release 2.0.32 (#4256)
This commit is contained in:
@@ -130,10 +130,14 @@ final class SamlProvider
|
||||
}
|
||||
if ($part[0] === '$') {
|
||||
$key = substr($part, 1);
|
||||
if (!isset($attributes[$key])) {
|
||||
if (!\array_key_exists($key, $attributes)) {
|
||||
throw new \RuntimeException('Missing user attribute: ' . $key);
|
||||
}
|
||||
|
||||
if (!\array_key_exists(0, $attributes[$key])) {
|
||||
throw new \RuntimeException('Missing user attribute value: ' . $key);
|
||||
}
|
||||
|
||||
$results[] = $attributes[$key][0];
|
||||
} else {
|
||||
$results[] = $part;
|
||||
|
||||
Reference in New Issue
Block a user