SimpleIdServer icon indicating copy to clipboard operation
SimpleIdServer copied to clipboard

[SCIM] added\removed reference event

Open danflomin opened this issue 3 years ago • 1 comments

Hello,

I am trying to utilize the User representation found on top of the published MassTransit events.

I noticed that if a user is added or removed from a group, then the representation that is attached to the event is not updated. Meaning, if I remove a user from a group, then the user representation will still have the group that he is not longer a member of.

Can we fix this so that the representations attached to these events will be updated?

Kind regards, Dan

danflomin avatar Sep 11 '22 14:09 danflomin

Hello,

I used the latest version "2.0.17" and I couldn't reproduce the issue on my local machine.

Following scenarios have been executed without error.

  1. Add a user to a group:

HTTP REQUEST

{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ],
  "Operations": [
    {
      "op": "add",
      "path": "members",
      "value": {
            "value": "{{userId}}"
        }
      
    }
  ]
}

Event received by MassTransit :

AssignUserToGruop

The group attribute is present.

  1. Remove a user from one group
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:PatchOp"
  ],
  "Operations": [
    {
      "op": "remove",
      "path": "members",
      "value": {
            "value": "{{userId}}"
        }
      
    }
  ]
}

Event received by MassTransit :

RemoveUserFromGroup

The group attribute is removed.

simpleidserver avatar Sep 12 '22 10:09 simpleidserver