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 case-insensitive filter logical operators #402

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

JayaShakthi97
Copy link
Contributor

@JayaShakthi97 JayaShakthi97 commented Jun 7, 2024

Purpose

$subject

For "AND"

  • request
curl --location 'https://localhost:9443/scim2/Users?filter=urn%3Aietf%3Aparams%3Ascim%3Aschemas%3Aextension%3Aenterprise%3A2.0%3AUser%3AaccountLocked%20eq%20%22true%22%20AND%20urn%3Aietf%3Aparams%3Ascim%3Aschemas%3Aextension%3Aenterprise%3A2.0%3AUser%3Adepartment%20eq%20%22123%22' \
--header 'Authorization: Basic *****'
  • response
{"totalResults":2,"startIndex":1,"itemsPerPage":2,"schemas":["urn:ietf:params:scim:api:messages:2.0:ListResponse"],"Resources":[{"emails":["johnn1@gmail.com"],"meta":{"created":"2024-06-07T06:29:18.969585Z","location":"https://localhost:9443/scim2/Users/df9cd10b-22d9-40cb-ad31-076b5e33b1d1","lastModified":"2024-06-07T06:30:32.930753Z","resourceType":"User"},"roles":[{"display":"everyone"}],"name":{"givenName":"John","familyName":"johnn1"},"id":"df9cd10b-22d9-40cb-ad31-076b5e33b1d1","userName":"johnn1","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"accountLocked":true,"department":"123"}},{"emails":["johnn2@gmail.com"],"meta":{"created":"2024-06-07T06:29:30.862182Z","location":"https://localhost:9443/scim2/Users/2f9de4b4-0e1a-48a6-b063-866cbacb651c","lastModified":"2024-06-07T06:30:49.432834Z","resourceType":"User"},"roles":[{"display":"everyone"}],"name":{"givenName":"John","familyName":"johnn2"},"id":"2f9de4b4-0e1a-48a6-b063-866cbacb651c","userName":"johnn2","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"accountLocked":true,"department":"123"}}]}

For "and"

  • request
curl --location 'https://localhost:9443/scim2/Users?filter=urn%3Aietf%3Aparams%3Ascim%3Aschemas%3Aextension%3Aenterprise%3A2.0%3AUser%3AaccountLocked%20eq%20%22true%22%20and%20urn%3Aietf%3Aparams%3Ascim%3Aschemas%3Aextension%3Aenterprise%3A2.0%3AUser%3Adepartment%20eq%20%22123%22' \
--header 'Authorization: Basic YWRtaW46YWRtaW4='
  • response
{"totalResults":2,"startIndex":1,"itemsPerPage":2,"schemas":["urn:ietf:params:scim:api:messages:2.0:ListResponse"],"Resources":[{"emails":["johnn1@gmail.com"],"meta":{"created":"2024-06-07T06:29:18.969585Z","location":"https://localhost:9443/scim2/Users/df9cd10b-22d9-40cb-ad31-076b5e33b1d1","lastModified":"2024-06-07T06:30:32.930753Z","resourceType":"User"},"roles":[{"display":"everyone"}],"name":{"givenName":"John","familyName":"johnn1"},"id":"df9cd10b-22d9-40cb-ad31-076b5e33b1d1","userName":"johnn1","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"accountLocked":true,"department":"123"}},{"emails":["johnn2@gmail.com"],"meta":{"created":"2024-06-07T06:29:30.862182Z","location":"https://localhost:9443/scim2/Users/2f9de4b4-0e1a-48a6-b063-866cbacb651c","lastModified":"2024-06-07T06:30:49.432834Z","resourceType":"User"},"roles":[{"display":"everyone"}],"name":{"givenName":"John","familyName":"johnn2"},"id":"2f9de4b4-0e1a-48a6-b063-866cbacb651c","userName":"johnn2","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{"accountLocked":true,"department":"123"}}]}

Related issue

@jenkins-is-staging
Copy link

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

@JayaShakthi97 JayaShakthi97 changed the title Add support for case-insensitive filter operators Add support for case-insensitive filter logical operators Jun 7, 2024
@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/9414991853
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/9414991853

@JayaShakthi97 JayaShakthi97 merged commit ad4b215 into wso2:master Jul 2, 2024
2 checks passed
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.

3 participants