Mysql WSO2身份服务器:电话字段使用SCIM don';我不接受数字

Mysql WSO2身份服务器:电话字段使用SCIM don';我不接受数字,mysql,wso2,wso2is,scim,Mysql,Wso2,Wso2is,Scim,我使用的是wso2 identity server 5.0.0版,用户存储在mysql上。 当我尝试用电话号码插入用户时,电话号码不会被存储 curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName":"Rossi","givenName":"Mario"},"userName":"rossiusr","password":"rossipsw","emails":"rossim@aaaa.it" ,"phone

我使用的是wso2 identity server 5.0.0版,用户存储在mysql上。 当我尝试用电话号码插入用户时,电话号码不会被存储

curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName":"Rossi","givenName":"Mario"},"userName":"rossiusr","password":"rossipsw","emails":"rossim@aaaa.it" ,"phoneNumbers":[{"value":"8811","type":"work"},{"value":"3473344555","type":"mobile"}]}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
结果是:

Connection #0 to host localhost left intact
{"id":"f6ce5310-a2ee-4976-9579-0299029183bb","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"Rossi","givenName":"Mario"},"userName":"rossiusr","phoneNumbers":[{"type":"work"},{"type":"mobile"}],"emails":"rossim@aaaa.it","meta":{"lastModified":"2015-08-19T16:09:50","location":"https://192.168.3.43:9443/wso2/scim/Users/f6ce5310-a2ee-4976-9579-0299029183bb","created":"2015-08-19T16:09:50"}}
Connection #0 to host localhost left intact
{"id":"3ce83aca-6f70-4274-a2c3-5429132d6001","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"Rossi","givenName":"Mario"},"userName":"rossiusr","phoneNumbers":[{"value":"_8811","type":"work"},{"value":"_3473344555","type":"mobile"}],"emails":"rossim@aaaa.it","meta":{"lastModified":"2015-08-19T16:12:50","location":"https://192.168.3.43:9443/wso2/scim/Users/3ce83aca-6f70-4274-a2c3-5429132d6001","created":"2015-08-19T16:12:50"}}
如果我在电话号码中添加字符,则效果良好:

curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName":"Rossi","givenName":"Mario"},"userName":"rossiusr","password":"rossipsw","emails":"rossim@aaaa.it" ,"phoneNumbers":[{"value":"_8811","type":"work"},{"value":"_3473344555","type":"mobile"}]}" --header "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
结果是:

Connection #0 to host localhost left intact
{"id":"f6ce5310-a2ee-4976-9579-0299029183bb","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"Rossi","givenName":"Mario"},"userName":"rossiusr","phoneNumbers":[{"type":"work"},{"type":"mobile"}],"emails":"rossim@aaaa.it","meta":{"lastModified":"2015-08-19T16:09:50","location":"https://192.168.3.43:9443/wso2/scim/Users/f6ce5310-a2ee-4976-9579-0299029183bb","created":"2015-08-19T16:09:50"}}
Connection #0 to host localhost left intact
{"id":"3ce83aca-6f70-4274-a2c3-5429132d6001","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"Rossi","givenName":"Mario"},"userName":"rossiusr","phoneNumbers":[{"value":"_8811","type":"work"},{"value":"_3473344555","type":"mobile"}],"emails":"rossim@aaaa.it","meta":{"lastModified":"2015-08-19T16:12:50","location":"https://192.168.3.43:9443/wso2/scim/Users/3ce83aca-6f70-4274-a2c3-5429132d6001","created":"2015-08-19T16:12:50"}}

为什么??电话号码。。。这是一个数字

在后斜杠中输入电话号码时,可以存储电话号码。示例:“3473344555”

请找到工作正常的修改过的curl命令。 curl-v-k--用户admin:admin--数据“{”模式“:[]”,“名称“:{”家庭名称“:“Rossi”,“givenName:“Mario”},“用户名“:“rossiusr”,“密码“:“rossipsw”,“电子邮件”:”rossim@aaaa.it“,”电话号码“:[{”值“:\”8811\”,”类型“:”工作“},{”值“:”3473344555\,”类型“:”移动“}]}”--标题“内容类型:应用程序/json”

结果: {“id”:“a5520dfc-aa7c-4B4B4B-aba2-57df7b87e2e4”,“模式”:[“urn:scim:schemas:core:1.0”],“名称”:{“familyName”:“Rossi”,“givenName”:“Mario”},“用户名”: “rossiusr”、“电话号码”:[{“值”:“8811”、“类型”:“工作”}、{“值”:“3473344555”、“类型”:“手机”}]、“电子邮件”:rossim@aaaa.it,“meta”:{“lastModified” :“2016-01-19T11:04:32”,“位置”:“创建”:“2016-01-19T11:04:32”}*
0到主机localhost的连接保持不变

这是一个将批量用户添加到WSO2身份服务器的CURL POST请求示例,

curl --location --request POST 'https://localhost:9443/scim2/Bulk' \
--header 'Content-Type: application/scim+json' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data-raw '{
    emphasized text"failOnErrors":1,
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:BulkRequest"],
    "Operations": [
        {
            "method": "POST",
            "path": "/Users",
            "bulkId": "bulkId01",
            "data": {
                "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
                "userName": "Test",
                "password":"Mohsen123",
                "name": {
                    "givenName": "Test01",
                    "familyName": "Tes01t"
                },
                 "emails": [
                    {
                        "type": "home",
                        "value": "home@test.com",
                        "primary": true
                    },
                    {
                        "type": "work",
                        "value": "work@test.com"
                    },
                    {
                        "type": "other",
                        "value": "other@test.com"
                    }
                ]
            }
        },
        {
            "method": "POST",
            "path": "/Users",
            "bulkId": "bulkId02",
            "data": {
                "schemas": [
                    "urn:ietf:params:scim:schemas:core:2.0:User",
                    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
                    ],
                "name": {
                    "givenName": "Test02",
                    "familyName": "Test02"
                },
                "userName": "Test02",
                "password": "Mohsen123",
                "emails": [
                    {
                        "type": "home",
                        "value": "home@test.com",
                        "primary": true
                    },
                    {
                        "type": "work",
                        "value": "work@test.com"
                    },
                    {
                        "type": "other",
                        "value": "other@test.com"
                    }
                ],
                "phoneNumbers":[
                  {
                    "value":"8811",
                    "type":"work"
                  },
                  {
                    "value":"3473344555",
                    "type":"mobile"
                  }
                ],
                "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
                    "employeeNumber": "1234A",
                    "costCenter": "hello",
                    "country": "country",
                    "dob":"dateOfBirth",
                    "manager": {
                        "value": "Admin"
                    }
                }
            }
        }
    ]
}