繁体   English   中英

Wso2 Scim扩展数据类型错误

[英]Wso2 Scim extentinon datatype error

因此,我正在为Wso2扩展Scim Api。 当我使用数据类型string创建扩展名时,所有扩展名都能正常工作。 但是,在我的Ldap中,我还有很多其他自定义属性,并且这些属性仅使用其他数据类型,而不是string例如operationalTelephone 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中使用这些属性? 我需要一些特殊的配置吗?

SCIM支持一组数据类型。 因此,您必须在用户存储中映射这些数据类型。

+-----------+-------------+-----------------------------------------+
| SCIM Data | SCIM Schema | JSON Type                               |
| Type      | "type"      |                                         |
+-----------+-------------+-----------------------------------------+
| String    | "string"    | String per Section 7 of [RFC7159]       |
|           |             |                                         |
| Boolean   | "boolean"   | Value per Section 3 of [RFC7159]        |
|           |             |                                         |
| Decimal   | "decimal"   | Number per Section 6 of [RFC7159]       |
|           |             |                                         |
| Integer   | "integer"   | Number per Section 6 of [RFC7159]       |
|           |             |                                         |
| DateTime  | "dateTime"  | String per Section 7 of [RFC7159]       |
|           |             |                                         |
| Binary    | "binary"    | Binary value base64 encoded per Section |
|           |             | 4 of [RFC4648], or with URL and         |
|           |             | filename safe alphabet URL per Section  |
|           |             | 5 of [RFC4648] that is passed as a JSON |
|           |             | string per Section 7 of [RFC7159]       |
|           |             |                                         |
| Reference | "reference" | String per Section 7 of [RFC7159]       |
|           |             |                                         |
| Complex   | "complex"   | Object per Section 4 of [RFC7159]       |
+-----------+-------------+-----------------------------------------+

参考: https : //tools.ietf.org/html/rfc7643#section-2.3

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM