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

In SCIM2 Filtering the attribute names and attribute operators used in filters should be case insensitive #5140

Open
DMHP opened this issue Apr 25, 2019 · 1 comment

Comments

@DMHP
Copy link
Contributor

DMHP commented Apr 25, 2019

Request :curl -v -k --user admin:admin https://localhost:9443/scim2/Users?filter=EMAILS.home+EQ+hasanthi@gmail.com

Response :{"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"scimType":"invalidValue","detail":"Not a valid attribute name/uri","status":"400"}

Request :
curl -v -k --user admin:admin https://localhost:9443/scim2/Users?filter=emails.home+EQ+hasanthi@gmail.com

Response :{"totalResults":1,"startIndex":1,"itemsPerPage":1,"schemas":["urn:ietf:params:scim:api:messages:2.0:ListResponse"],"Resources":[{"emails":[{"type":"work","value":"hasanthi@wso2.com"},{"type":"home","value":"hasanthi@gmail.com"}],"meta":{"created":"2019-04-25T10:14:12.028Z","location":"https://localhost:9443/scim2/Users/a3b249d0-573b-4e96-b2cd-09bcbbe539c4","lastModified":"2019-04-25T11:22:03.278Z","resourceType":"User"},"name":{"givenName":"hasanthi","familyName":"Purnima"},"id":"a3b249d0-573b-4e96-b2cd-09bcbbe539c4","userName":"hasanthi"}]}

Quoted from the spec

"Attribute names and attribute operators used in filters are case
insensitive. For example, the following two expressions will
evaluate to the same logical value:

filter=userName Eq "john"

filter=Username eq "john""

So it should support to use attribute names in an case insensitive manner using wso2 IS

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

No branches or pull requests

3 participants