[Dev] Hesitating OAuth2 grant type
Hi all, I 've been working a bit with the SCIM API which I think more or less everything is right. Now I have some hesitation about the grant type which fits better in our side. Currently we thought that Resource Owner Password Credential Grant was the good one but there is something we need to workaround. We have a main application and some services which are communicating with the application. These services interact with the main application using a specific system credentials, therefore some of them share the credentials. The problem arises when one of these services call the revoke endpoint, after this call all the other services are revoked and they need to login again. My wish would be a different token for every service, therefore any service can login or logout without affecting the others. Is there some method/config to allow wso2 to deal with this particular scenario? Regards, Xavi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] SCIM PUT/PATCH group with members in order to add a new member
Hi again, first, thanks a lot for your previous answers. This time I had some problem updating a group when it has already some member. My steps are shown below: *1) Create a first user* curl -k --user admin:admin --data "{"schemas":[],"name":{"familyName":"John","givenName":"Doe"},"userName":'groupUSR001',"password":"testPwd123"}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Users {"id":"9b0585d0-646e-4eee-9d8a-342203540510","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"John","givenName":"Doe"},"userName":"groupUSR001","meta": {"lastModified":"2016-01-25T08:50:55","location":"https://localhost:9443/wso2/scim/Users/9b0585d0-646e-4eee-9d8a-342203540510","created":"2016-01-25T08:50:55"}} *2) Create a group with a member* curl -k --user admin:admin --data "{"displayName": 'ngioletGR', "members": [{"value": "9b0585d0-646e-4eee-9d8a-342203540510", "display": "groupUSR001"}]}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Groups {"id":"1b97b894-5cbe-4b39-b6ce-9606debc5a28","schemas":["urn:scim:schemas:core:1.0"],"displayName":"PRIMARY/ngioletGR","members":[{"value":"9b0585d0-646e-4eee-9d8a-342203540510","display":"groupUSR001"}],"meta":{"lastModified":"2016-01-25T08:59:49","created":"2016-01-25T08:59:49","location":"https://localhost:9443/wso2/scim/Groups/1b97b894-5cbe-4b39-b6ce-9606debc5a28"}} *3) Create a second user* curl -k --user admin:admin --data "{"displayName": 'ngioletGR2', "members": [{"value": "9b0585d0-646e-4eee-9d8a-342203540510", "display": "groupUSR001"}]}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Groups {"id":"1b97b894-5cbe-4b39-b6ce-9606debc5a28","schemas":["urn:scim:schemas:core:1.0"],"displayName":"PRIMARY/ngioletGR2","members":[{"value":"9b0585d0-646e-4eee-9d8a-342203540510","display":"groupUSR001"}],"meta":{"lastModified":"2016-01-25T08:59:49","created":"2016-01-25T08:59:49","location":"https://localhost:9443/wso2/scim/Groups/1b97b894-5cbe-4b39-b6ce-9606debc5a28"}} *3a) PATCH group to add the last user* curl -k -X PATCH --user admin:admin --data "{"displayName": 'ngioletGR', "members": [{"value": "9b0585d0-646e-4eee-9d8a-342203540510", "display": "groupUSR001"}, {"value": "1b97b894-5cbe-4b39-b6ce-9606debc5a28", "display": "groupUSR002"}]}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Groups/1b97b894-5cbe-4b39-b6ce-9606debc5a28 _{"Errors":[{"description":"User: 1b97b894-5cbe-4b39-b6ce-9606debc5a28 doesn't exist in the user store. Hence, can not update the group: ngioletGR","code":"500"}]}_ *3b) PUT group **to add the last user* curl -k -X PUT --user admin:admin --data "{"displayName": 'ngioletGR', "members": [{"value": "9b0585d0-646e-4eee-9d8a-342203540510", "display": "groupUSR001"}, {"value": "1b97b894-5cbe-4b39-b6ce-9606debc5a28", "display": "groupUSR002"}]}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Groups/1b97b894-5cbe-4b39-b6ce-9606debc5a28 _{"Errors":[{"description":"Error occurred while updating old group : PRIMARY/ngioletGR","code":"500"}]}_ Am I wrong in some step?, I am using IS 5.1 Best regards, Xavi ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] SCIM missing members when list groups
Hi all, I've been trying to follow the SCIM documentation [1] to manage user and groups but apparently the groups members are not visualized after the group creation phase. These are my steps: 1) Create user |curl -v -k --user admin:admin --data ||"{"||schemas||":[],"||name||":{"||familyName||":"||gunasinghe||","||givenName||":"||hasinitg||"},"||userName||":"||hasinitg||","||password||":"||hasinitg||","||emails||":[{"||primary||":true,"||value||":"||hasini_home.com||","||type||":"||home||"},{"||value||":"||hasini_work.com||","||type||":"||work||"}]}"||--header ||"Content-Type:application/json"||https:||//localhost:9443/wso2/scim/Users OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location": "https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370;, "lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home", "value": "hasini_home.com" }, { "type": "work", "value": "hasini_work.com" } ], "userName": "hasinitg", "name": { "givenName": "hasinitg", "familyName": "gunasinghe" }, "schemas": [ "urn:scim:schemas:core:1.0" ], "id": "c3561007-5174-4b7d-9d6f-db523164a370" } 2) Create group adding the user |curl -k --user admin:admin --data "{"displayName": "engineer","members": [{"value":"c3561007-5174-4b7d-9d6f-db523164a370","display": "hasinitg"}]}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Groups OUTPUT { "meta": { "location": "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a;, "created": "2016-01-20T13:47:20", "lastModified": "2016-01-20T13:47:20" }, "members": [ { "display": "hasinitg", "value": "c3561007-5174-4b7d-9d6f-db523164a370" } ], "displayName": "PRIMARY/engineer", "schemas": [ "urn:scim:schemas:core:1.0" ], "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a" } As you can notice, in member the hasinitg user is shown. 3) List groups (missing the members field) curl -k --user admin:admin --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Groups OUTPUT { "Resources": [ { "meta": { "location": "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a;, "created": "2016-01-20T13:47:20", "lastModified": "2016-01-20T13:47:20" }, "displayName": "PRIMARY/engineer", "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a" } ], "totalResults": 1, "schemas": [ "urn:scim:schemas:core:1.0" ] } Any one of you have any similar experience?, as it is stated in the documentation [1], this output should show the members field. Thanks & Regards, [1] - https://docs.wso2.com/display/IS510/SCIM+APIs ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev