Re: [Dev] Filter user REST url -SCIM
On Sat, Jan 31, 2015 at 8:04 AM, Ajith Vitharana aji...@wso2.com wrote: On Fri, Jan 30, 2015 at 8:59 PM, Isura Karunaratne is...@wso2.com wrote: Hi Ajith, On Sat, Jan 31, 2015 at 2:05 AM, Ajith Vitharana aji...@wso2.com wrote: Hi All The following REST invocation should be change to acceptable format. Why do we pass the username (adam) along with the userNameEq constant.? Eq is the operator to check equal according to SCIM spec. See the 3.2.2.1 in [1] If so fine, but then do we need to append the value to that ? We have to go bit further step to make it spec compliance. Please refer [a]. [a] https://wso2.org/jira/browse/IDENTITY-2754 -Ajith curl -v -k --user admin:admin https: //localhost:9443/wso2/scim/Users?filter=userNameEq*adam* Eg: curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter?userName=value OR curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter/username/value [1] https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev [1] http://www.simplecloud.info/specs/draft-scim-api-01.html Thanks Isura -- Isura Dilhara Karunaratne Software Engineer Mob +94 772 254 810 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Gayan Gunawardana Software Engineer; WSO2 Inc.; http://wso2.com/ Email: ga...@wso2.com Mobile: +94 (71) 8020933 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Filter user REST url -SCIM
Hi All The following REST invocation should be change to acceptable format. Why do we pass the username (adam) along with the userNameEq constant.? curl -v -k --user admin:admin https: //localhost:9443/wso2/scim/Users?filter=userNameEq*adam* Eg: curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter?userName=value OR curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter/username/value [1] https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Filter user REST url -SCIM
Hi Ajith, On Sat, Jan 31, 2015 at 2:05 AM, Ajith Vitharana aji...@wso2.com wrote: Hi All The following REST invocation should be change to acceptable format. Why do we pass the username (adam) along with the userNameEq constant.? Eq is the operator to check equal according to SCIM spec. See the 3.2.2.1 in [1] curl -v -k --user admin:admin https: //localhost:9443/wso2/scim/Users?filter=userNameEq*adam* Eg: curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter?userName=value OR curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter/username/value [1] https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev [1] http://www.simplecloud.info/specs/draft-scim-api-01.html Thanks Isura -- Isura Dilhara Karunaratne Software Engineer Mob +94 772 254 810 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Filter user REST url -SCIM
On Fri, Jan 30, 2015 at 8:59 PM, Isura Karunaratne is...@wso2.com wrote: Hi Ajith, On Sat, Jan 31, 2015 at 2:05 AM, Ajith Vitharana aji...@wso2.com wrote: Hi All The following REST invocation should be change to acceptable format. Why do we pass the username (adam) along with the userNameEq constant.? Eq is the operator to check equal according to SCIM spec. See the 3.2.2.1 in [1] If so fine, but then do we need to append the value to that ? -Ajith curl -v -k --user admin:admin https: //localhost:9443/wso2/scim/Users?filter=userNameEq*adam* Eg: curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter?userName=value OR curl -v -k --user admin:admin https://localhost:9443/wso2/scim/Users/filter/username/value [1] https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider -Ajith -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev [1] http://www.simplecloud.info/specs/draft-scim-api-01.html Thanks Isura -- Isura Dilhara Karunaratne Software Engineer Mob +94 772 254 810 -- Ajith Vitharana. WSO2 Inc. - http://wso2.org Email : aji...@wso2.com Mobile : +1-812-360-5335 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev