Merge pull request #12913 from uberbrady/fix_scim_id_string
Change from a standard Eloquent mapping for ID to a custom setRead
This commit is contained in:
commit
0e73923c24
1 changed files with 5 additions and 2 deletions
|
@ -70,7 +70,11 @@ class SnipeSCIMConfig extends \ArieTimmerman\Laravel\SCIMServer\SCIMConfig
|
||||||
// Map a SCIM attribute to an attribute of the object.
|
// Map a SCIM attribute to an attribute of the object.
|
||||||
'mapping' => [
|
'mapping' => [
|
||||||
|
|
||||||
'id' => AttributeMapping::eloquent("id")->disableWrite(),
|
'id' => (new AttributeMapping())->setRead(
|
||||||
|
function (&$object) {
|
||||||
|
return (string)$object->id;
|
||||||
|
}
|
||||||
|
)->disableWrite(),
|
||||||
|
|
||||||
'externalId' => AttributeMapping::eloquent('scim_externalid'), // FIXME - I have a PR that changes a lot of this.
|
'externalId' => AttributeMapping::eloquent('scim_externalid'), // FIXME - I have a PR that changes a lot of this.
|
||||||
|
|
||||||
|
@ -174,7 +178,6 @@ class SnipeSCIMConfig extends \ArieTimmerman\Laravel\SCIMServer\SCIMConfig
|
||||||
'$ref' => null,
|
'$ref' => null,
|
||||||
'display' => null,
|
'display' => null,
|
||||||
'type' => null,
|
'type' => null,
|
||||||
'type' => null
|
|
||||||
]],
|
]],
|
||||||
|
|
||||||
'entitlements' => null,
|
'entitlements' => null,
|
||||||
|
|
Loading…
Add table
Reference in a new issue