-
Notifications
You must be signed in to change notification settings - Fork 164
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
Add support for bulkID in SCIM2 #393
Add support for bulkID in SCIM2 #393
Conversation
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/encoder/JSONDecoder.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
modules/charon-core/src/main/java/org/wso2/charon3/core/protocol/BulkRequestProcessor.java
Outdated
Show resolved
Hide resolved
PR builder started |
PR builder completed |
PR builder started |
PR builder completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6589471554
|
||
switch (bulkRequestContent.getMethod()) { | ||
case SCIMConstants.OperationalConstants.POST: | ||
if (bulkRequestContent.getPath().contains(SCIMConstants.ROLE_ENDPOINT)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bulkRequestContent.getPath()
could this be null?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Before coming to the BulkRequestProcessor
these bulkRequestContent
objects are created in JSONDecoder
. The requestType
is set as the path of bulkRequestContent
here. Therefore, path can only be null if requestType
is null, but this check is done here and if the requestType
is null an error is thrown.
Related Issue - wso2/product-is#3300
Per the SCIM2 specification, a client can perform multiple actions within a single bulk operation, such as creating a new user, forming a new group, and subsequently adding the recently created user to this group. To achieve this, the client must utilize the surrogate ID attribute, bulkId, to reference the user. Our system currently lacks support for this functionality. This implementation introduces support for the aforementioned feature.