Skip to content

Commit 2bd4d58

Browse files
committed
Fixed: Okta SCIM PUT for an existing user would not overwrite Enterprise attributes
1 parent 2c7ecc4 commit 2bd4d58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Controllers/ResourceController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ public function replace(Request $request, PolicyDecisionPoint $pdp, ResourceType
246246
/* we have to pass $that (which will be the value of $this) because scimlog takes a *function* not a method,
247247
so we don't have $this available */
248248
$originalRaw = Helper::objectToSCIMArray($resourceObject, $resourceType);
249-
$original = Helper::flatten($originalRaw, $resourceType->getSchema());
249+
$original = Helper::flatten($originalRaw, $request->input()['schemas']);
250250

251251
//TODO: get flattend from $resourceObject
252-
$flattened = Helper::flatten($request->input(), $resourceType->getSchema());
252+
$flattened = Helper::flatten($request->input(), $request->input()['schemas']);
253253
$flattened = $that->validateScim($resourceType, $flattened, $resourceObject);
254254

255255
$updated = [];

0 commit comments

Comments
 (0)