Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCIM] Notification payload, add more info #776

Open
gabrielemilan opened this issue Aug 2, 2024 · 3 comments
Open

[SCIM] Notification payload, add more info #776

gabrielemilan opened this issue Aug 2, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@gabrielemilan
Copy link
Contributor

Hello,

is it possibile to add more info about the operation in the message payload?

This is an example of payload:

{ "body": { "messageId": "01000000-c374-4230-e487-08dcb2d718a4", "requestId": null, "correlationId": null, "conversationId": "01000000-c374-4230-53cb-08dcb2d718a5", "initiatorId": null, "sourceAddress": "sb://fame-dev1.servicebus.windows.net/travelmsapisci_ScimApi_bus_yryyyygdqtbdbiwibdqmfiqfrj?autodelete=300", "destinationAddress": "sb://fame-dev1.servicebus.windows.net/SimpleIdServer.Scim.ExternalEvents/RepresentationUpdatedEvent?type=topic", "responseAddress": null, "faultAddress": null, "messageType": [ "urn:message:SimpleIdServer.Scim.ExternalEvents:RepresentationUpdatedEvent", "urn:message:SimpleIdServer.Scim.ExternalEvents:IntegrationEvent" ], "message": { "token": "", "id": "040dc02f-8587-4b39-8690-56af7d93f2de", "version": 1, "resourceType": "ScimGroup", "serializedRepresentation": "{\n \"id\": \"040dc02f-8587-4b39-8690-56af7d93f2de\",\n \"members\": [\n {\n \"value\": \"001c721c-33f6-49b6-b919-61471d4e202f\",\n \"type\": \"User\"\n }\n ],\n \"meta\": {\n \"resourceType\": \"Group\",\n \"created\": \"2024-07-22T15:59:21.358Z\",\n \"lastModified\": \"2024-08-02T09:40:05.2811681Z\",\n \"version\": 1,\n \"location\": \"http://travel-api-scim.dev.enterprise.uefa.com/v2/Groups/040dc02f-8587-4b39-8690-56af7d93f2de\"\n },\n \"schemas\": [\n \"urn:ietf:params:scim:schemas:core:2.0:Group\"\n ]\n}" }, "expirationTime": null, "sentTime": "2024-08-02T09:40:08.0940167Z", "headers": { "Origin": "travel", "OriginType": "SCIM" }, "host": { "machineName": "travel-ms-api-scim-dev--giziqym-5fc69cf49c-xp7qr", "processName": "ScimApi", "processId": 1, "assembly": "ScimApi", "assemblyVersion": "1.0.0.0", "frameworkVersion": "8.0.7", "massTransitVersion": "8.2.3.0", "operatingSystemVersion": "Unix 5.15.158.2" } }, "contentType": "application/vnd.masstransit+json", "correlationId": null, "deadLetterSource": null, "deliveryCount": 1, "enqueuedSequenceNumber": 3214, "enqueuedTimeUtc": "2024-08-02T09:40:08.286Z", "expiresAtUtc": "9999-12-31T23:59:59.9999999", "forcePersistence": false, "isBodyConsumed": false, "label": null, "lockedUntilUtc": "2024-08-02T09:41:08.205Z", "lockToken": "dc0ba5e1-4aa0-41d6-84e5-da017831be80", "messageId": "01000000c3744230e48708dcb2d718a4", "partitionKey": null, "properties": { "Origin": "travel", "OriginType": "SCIM", "Diagnostic-Id": "00-aacd6f8a80bc6e1d21cdd39c67e73d6e-edff4ca3a9a46c63-00" }, "replyTo": null, "replyToSessionId": null, "scheduledEnqueueTimeUtc": "0001-01-01T00:00:00", "sequenceNumber": 3213, "sessionId": null, "size": 2294, "state": 0, "timeToLive": "10675199.02:48:05.4775807", "to": null, "viaPartitionKey": null }

Is it possible to have an operation attribute like "MemberAdded", "MemberRemoved", etc etc.

Thanks.
Gabriele

@simpleidserver simpleidserver self-assigned this Aug 5, 2024
@simpleidserver simpleidserver added the question Further information is requested label Aug 5, 2024
@simpleidserver simpleidserver moved this to In Progress in Release 5.0.1 Aug 5, 2024
@simpleidserver
Copy link
Owner

Hello @gabrielemilan ,

It is possible to return a list of PATCH operations in an external event. Each PATCH operation represents an action executed on a property of the representation. For example: { operation: ADD, path: name.formatted, value: "newvalue" }.

I made some modifications in the Ticket776 branch to return these lists of actions in the external event for the "HTTP PATCH" and "HTTP PUT" actions.

The class RepresentationUpdatedEvent contains a list of PatchAttributeOperation with the following properties:

  • Path
  • Operation
  • Type
  • ValueString
  • ValueBoolean
  • ValueInteger
  • ValueDateTime
  • ValueReference
  • ValueDecimal
  • ValueBinary

Kind regards,

SID

@gabrielemilan
Copy link
Contributor Author

Ok, thanks, let me know when will be delivered in prerelease package. :-)

@simpleidserver
Copy link
Owner

The nuget package version 5.0.1 is published :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants