SCIM: Fix address handling and work around Entra email changes
This commit is contained in:
@@ -361,7 +361,11 @@ class SnipeSCIMConfig
|
||||
{
|
||||
if ($value) {
|
||||
try {
|
||||
$object->email = $value[0]['value'];
|
||||
if (is_string($value)) {
|
||||
$object->email = $value; // Weird MS-SCIM stuff :/
|
||||
} else {
|
||||
$object->email = $value[0]['value'];
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
\Log::debug($e);
|
||||
throw new SCIMException("Unknown email object: '".print_r($value, true)."'", 422);
|
||||
@@ -470,7 +474,7 @@ class SnipeSCIMConfig
|
||||
$address['primary'] = true;
|
||||
}
|
||||
|
||||
return $address;
|
||||
return [$address];
|
||||
}
|
||||
|
||||
public function doWrite($operation, $subop, $value, Model &$object, ?Path $path = null, $removeIfNotSet = false)
|
||||
|
||||
Reference in New Issue
Block a user