Subject: [scim] Auto discovery of supported resource schemas

From: Kiran Ayyagari <[email-masked]>
Date: Fri, 4 Oct 2013 11:55:08 +0530

I would like a SCIM client to auto discover the types of resources
and the extensions supported by a Service Provider and I believe
the intention of introducing ResourceType[1] schema is to make this
possible.

But the schema of ResourceType in its current format can only represent
the details of a single resource's schema as shown in the example[2].

IMO the ResourceType schema should hold a complex multi-valued
attribute (like for e.x. 'supportedResources' ) which will contain an
array of objects each containing the single-valued attributes of
ResourceType schema

this will look like

{
     "schemas": ["urn:scim:schemas:core:2.0:ResourceType"],
     "supportedResources":[
     {
       "name": "User",
       "endpoint": "/Users",
       "description": "Core User",
       "schema": "urn:scim:schemas:core:2.0:User",
       "schemaExtensions": [
         {
           "schema":
"urn:scim:schemas:extension:enterprise:2.0:EnterpriseUser",
           "required": true
         }
        ]
     },
     {
       "name": "Group",
       "endpoint": "/Groups",
       "description": "Core Group",
       "schema": "urn:scim:schemas:core:2.0:Group",
     }
     ],
     "meta": {
       "resourceType": "ResourceType",
       "created": "2010-01-23T04:56:22Z",
       "lastModified": "2011-05-13T04:42:34Z",
       "version": "W\/\"3694e05e9dff595\""
     }
   }

with this kind of structure a SCIM client can access schema for all
resources dynamically

[1] https://tools.ietf.org/html/draft-ietf-scim-core-schema-02#section-10
[2] https://tools.ietf.org/html/draft-ietf-scim-core-schema-02#section-12.6

-- 
Kiran Ayyagari
http://keydap.com