2017-08-18 9 views
0

したがって、私はWso2用にScim Apiを拡張しています。データ型stringを使って拡張を作成すると、すべての拡張が正しく機能します。しかし、私のLdapには、他のデータ型を使用する他の多くのカスタム属性や属性が(operationalまたはTelephone Numberなど)よりも多くあります。Wso2 Scim extentinonデータ型エラー

拡張属性の1つのデータ型値を変更しようとしましたが、Scim Apiでその属性を要求すると、500エラーになります。

これはSCIM拡張構成の例私は私のSCIM APIでこれらの属性を使用するにはどうすればよい

[{ 
"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" 
}] 

のですか?特別な設定が必要ですか?

+1

500エラーにつながるそのコードをご提示ください。 – MarkusEgle

+0

申し訳ありませんが、私はこの問題を引き起こすWso2の内部部分がわかりません – nickGR

答えて

0

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