【发布时间】:2017-08-18 14:37:29
【问题描述】:
所以我正在为 Wso2 扩展Scim Api。当我使用数据类型string 创建扩展时,所有扩展都可以正常工作。但是在我的 Ldap 中,我有很多其他自定义属性和属性,它们只使用 string 以外的其他数据类型,例如 operational 或 Telephone Number。
我尝试更改扩展属性之一的数据类型值,但是当通过 Scim Api 请求该属性时,它只会导致 500 错误。
这是一个scim扩展配置的例子
[{
"attributeURI":"urn:scim:schemas:extension:enterprise:1.0:enterprise.homePhone",
"attributeName":"homePhone",
"dataType":"Telephone Number",
"multiValued":"false",
"multiValuedAttributeChildName":"null",
"description":"The User's phone",
"schemaURI":"urn:scim:schemas:extension:enterprise:1.0",
"readOnly":"false",
"required":"false",
"caseExact":"false",
"subAttributes":"null"
},
{
"attributeURI":"urn:scim:schemas:extension:enterprise:1.0:enterprise.shareDirectory",
"attributeName":"shareDirectory",
"dataType":"string",
"multiValued":"false",
"multiValuedAttributeChildName":"null",
"description":"The User's share dir",
"schemaURI":"urn:scim:schemas:extension:enterprise:1.0",
"readOnly":"false",
"required":"false",
"caseExact":"false",
"subAttributes":"null"
},
{
"attributeURI":"urn:scim:schemas:extension:enterprise:1.0",
"attributeName":"enterprise",
"dataType":"null",
"multiValued":"false",
"multiValuedAttributeChildName":"null",
"description":"SCIM wso2 User Schema Extension",
"schemaURI":"urn:scim:schemas:extension:enterprise:1.0",
"readOnly":"false",
"required":"false",
"caseExact":"false",
"subAttributes":"homePhone shareDirectory"
}]
如何在我的 Scim Api 中使用这些属性?我需要一些特殊的配置吗?
【问题讨论】:
-
请显示导致 500 错误的代码。
-
抱歉,我不确定 Wso2 的哪个内部部分会导致此问题