Regarding SCIM Extension

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Regarding SCIM Extension

Supun Madushanka


Hi All,

I am working with WSO2 IS (5.3.0) for one of my projects. I  can successfully register a user using SCIM. But there are some attributes that I need which are not provided by SCIM by default. After a bit of search I found SCIM extension feature provided .So I configured IS according to following instructions.

https://docs.wso2.com/display/IS530/Extensible+SCIM+User+Schemas+With+WSO2+Identity+Server.

When I send the registration request with a custom attribute (in this case "organization" ), in the immediate response I can find that attribute.

request:
curl -v -k --user admin:admin --data '{"schemas":[],"userName":"SureshAtt","password":"Wso2@123","wso2Extension":{"organization":"WSO2Org"}}' --header "Content-Type:application/json" https://localhost:9446/wso2/scim/Users
response:
{"wso2Extension":{"organization":"WSO2Org"},"meta":{"created":"2017-06-05T05:39:17","location":"https://localhost:9443/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a","lastModified":"2017-06-05T05:39:17"},"schemas":["urn:scim:schemas:core:1.0","urn:scim:schemas:extension:wso2:1.0"],"id":"0a034368-abe5-4e36-a20f-21e37eb9935a","userName":"SureshAtt"}


But when I try to get the user details by user Id using a separate request, I do not get the custom attribute in the response. 

request:
curl -v -k --user admin:admin https://localhost:9446/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a
response:
{"meta":{"created":"2017-06-05T05:39:17","location":"https://localhost:9443/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a","lastModified":"2017-06-05T05:39:17"},"schemas":["urn:scim:schemas:core:1.0"],"id":"0a034368-abe5-4e36-a20f-21e37eb9935a","userName":"SureshAtt"}

What could be the possible cause ? please be kind enough to assist.

Thank
-- 
Best Regards,
Supun Madushanka
[Undergraduate]
University of Moratuwa. http://www.mrt.ac.lk
Department of Computer Science and Engineering. http://cse.mrt.ac.lk
Mobile: 
<a href="tel:%2B94%280%29%20711135012" value="+94778509547" target="_blank" style="font-size:12.8px">+94 71 1135012
E-mail: [hidden email]




_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Regarding SCIM Extension

Omindu Rathnaweera
Hi Supun,

Can you have a look at the blog post [1]. The post has explained configuring the scim extension in detail.


Thanks,
Omindu.

On Mon, Jun 5, 2017 at 3:46 PM, Supun Madushanka <[hidden email]> wrote:


Hi All,

I am working with WSO2 IS (5.3.0) for one of my projects. I  can successfully register a user using SCIM. But there are some attributes that I need which are not provided by SCIM by default. After a bit of search I found SCIM extension feature provided .So I configured IS according to following instructions.

https://docs.wso2.com/display/IS530/Extensible+SCIM+User+Schemas+With+WSO2+Identity+Server.

When I send the registration request with a custom attribute (in this case "organization" ), in the immediate response I can find that attribute.

request:
curl -v -k --user admin:admin --data '{"schemas":[],"userName":"SureshAtt","password":"Wso2@123","wso2Extension":{"organization":"WSO2Org"}}' --header "Content-Type:application/json" https://localhost:9446/wso2/scim/Users
response:
{"wso2Extension":{"organization":"WSO2Org"},"meta":{"created":"2017-06-05T05:39:17","location":"https://localhost:9443/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a","lastModified":"2017-06-05T05:39:17"},"schemas":["urn:scim:schemas:core:1.0","urn:scim:schemas:extension:wso2:1.0"],"id":"0a034368-abe5-4e36-a20f-21e37eb9935a","userName":"SureshAtt"}


But when I try to get the user details by user Id using a separate request, I do not get the custom attribute in the response. 

request:
curl -v -k --user admin:admin https://localhost:9446/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a
response:
{"meta":{"created":"2017-06-05T05:39:17","location":"https://localhost:9443/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a","lastModified":"2017-06-05T05:39:17"},"schemas":["urn:scim:schemas:core:1.0"],"id":"0a034368-abe5-4e36-a20f-21e37eb9935a","userName":"SureshAtt"}

What could be the possible cause ? please be kind enough to assist.

Thank
-- 
Best Regards,
Supun Madushanka
[Undergraduate]
University of Moratuwa. http://www.mrt.ac.lk
Department of Computer Science and Engineering. http://cse.mrt.ac.lk
Mobile: 
<a href="tel:%2B94%280%29%20711135012" value="+94778509547" style="font-size:12.8px" target="_blank">+94 71 1135012
E-mail: [hidden email]




_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Omindu Rathnaweera
Senior Software Engineer, WSO2 Inc.
Mobile: +94 771 197 211

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Regarding SCIM Extension

Indunil Upeksha Rathnayake
Hi Supun,

This can be reproducible in default IS 5.3.0 pack. I have created a public JIRA for this in [1] and will be targeting to get it fixed in the next release.

[1] https://wso2.org/jira/browse/IDENTITY-6079

Thanks and Regards

On Wed, Jun 7, 2017 at 8:21 AM, Omindu Rathnaweera <[hidden email]> wrote:
Hi Supun,

Can you have a look at the blog post [1]. The post has explained configuring the scim extension in detail.


Thanks,
Omindu.

On Mon, Jun 5, 2017 at 3:46 PM, Supun Madushanka <[hidden email]> wrote:


Hi All,

I am working with WSO2 IS (5.3.0) for one of my projects. I  can successfully register a user using SCIM. But there are some attributes that I need which are not provided by SCIM by default. After a bit of search I found SCIM extension feature provided .So I configured IS according to following instructions.

https://docs.wso2.com/display/IS530/Extensible+SCIM+User+Schemas+With+WSO2+Identity+Server.

When I send the registration request with a custom attribute (in this case "organization" ), in the immediate response I can find that attribute.

request:
curl -v -k --user admin:admin --data '{"schemas":[],"userName":"SureshAtt","password":"Wso2@123","wso2Extension":{"organization":"WSO2Org"}}' --header "Content-Type:application/json" https://localhost:9446/wso2/scim/Users
response:
{"wso2Extension":{"organization":"WSO2Org"},"meta":{"created":"2017-06-05T05:39:17","location":"https://localhost:9443/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a","lastModified":"2017-06-05T05:39:17"},"schemas":["urn:scim:schemas:core:1.0","urn:scim:schemas:extension:wso2:1.0"],"id":"0a034368-abe5-4e36-a20f-21e37eb9935a","userName":"SureshAtt"}


But when I try to get the user details by user Id using a separate request, I do not get the custom attribute in the response. 

request:
curl -v -k --user admin:admin https://localhost:9446/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a
response:
{"meta":{"created":"2017-06-05T05:39:17","location":"https://localhost:9443/wso2/scim/Users/0a034368-abe5-4e36-a20f-21e37eb9935a","lastModified":"2017-06-05T05:39:17"},"schemas":["urn:scim:schemas:core:1.0"],"id":"0a034368-abe5-4e36-a20f-21e37eb9935a","userName":"SureshAtt"}

What could be the possible cause ? please be kind enough to assist.

Thank
-- 
Best Regards,
Supun Madushanka
[Undergraduate]
University of Moratuwa. http://www.mrt.ac.lk
Department of Computer Science and Engineering. http://cse.mrt.ac.lk
Mobile: 
<a href="tel:%2B94%280%29%20711135012" value="+94778509547" style="font-size:12.8px" target="_blank">+94 71 1135012
E-mail: [hidden email]




_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Omindu Rathnaweera
Senior Software Engineer, WSO2 Inc.
Mobile: <a href="tel:+94%2077%20119%207211" value="+94771197211" target="_blank">+94 771 197 211

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev




--
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Email    [hidden email]
Mobile   0772182255

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Loading...