wso2/charon

`ResourceTypes` response is invalid

alexey-anufriev opened this issue · 0 comments

Description:
/ResourceTypes return wrong content:

  • every resource must on the top level of the response, e.g:
[
  {
    "schemas": ["urn:ietf:params:scim:schemas:core:2.0:ResourceType"],
    "id": "User",
    ...
  },
  {
    "schemas": ["urn:ietf:params:scim:schemas:core:2.0:ResourceType"],
    "id": "Group",
    ...
  }
]

but currently it looks like this:

{
    "Resources": [ // this is wrong parent object
        {
            "schema": "urn:ietf:params:scim:schemas:core:2.0:User",
            "endpoint": "/Users",
        },
        {
            "schema": "urn:ietf:params:scim:schemas:core:2.0:Group",
            "endpoint": "/Groups",
        }
    ]
}

Specification
https://datatracker.ietf.org/doc/html/rfc7643#section-6

Affected Product Version:
3.4.10