Release 2.0.32 (#4256)

This commit is contained in:
Kevin Papst
2023-08-31 15:33:53 +02:00
committed by GitHub
parent 452de88e18
commit 31348da4c0
42 changed files with 412 additions and 130 deletions

View File

@@ -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;