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

Add support for bulkID in SCIM2 #393

Merged
merged 6 commits into from
Oct 20, 2023

Conversation

PasinduYeshan
Copy link
Contributor

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.

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6586163746

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6586163746
Status: failure

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6589471554

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6589471554
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a 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

@AnuradhaSK AnuradhaSK merged commit 24da135 into wso2:master Oct 20, 2023
2 checks passed

switch (bulkRequestContent.getMethod()) {
case SCIMConstants.OperationalConstants.POST:
if (bulkRequestContent.getPath().contains(SCIMConstants.ROLE_ENDPOINT)) {
Copy link
Contributor

@lashinijay lashinijay May 15, 2024

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?

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants