Re: [scim] Common Attribute "schemas" Characteristics

Shelley <randomshelley@gmail.com> Fri, 11 September 2020 15:14 UTC

Return-Path: <randomshelley@gmail.com>
X-Original-To: scim@ietfa.amsl.com
Delivered-To: scim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D61A13A0E50 for <scim@ietfa.amsl.com>; Fri, 11 Sep 2020 08:14:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WxZ7wixgV4Rt for <scim@ietfa.amsl.com>; Fri, 11 Sep 2020 08:14:00 -0700 (PDT)
Received: from mail-ua1-x934.google.com (mail-ua1-x934.google.com [IPv6:2607:f8b0:4864:20::934]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 061763A0E41 for <scim@ietf.org>; Fri, 11 Sep 2020 08:13:59 -0700 (PDT)
Received: by mail-ua1-x934.google.com with SMTP id w23so3079309uam.9 for <scim@ietf.org>; Fri, 11 Sep 2020 08:13:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5ArAWfODws1GW4ptgI5As1+X0Q4NUgjONS2lcRZ2VOk=; b=sL75QEtv4g8loBsLzYDEb87TkOm+FQA7h63ZmRXCk13Rkw/1PZt2apJxHcr8p3PuJc h6qLSV0rMzDmvovXUkvQjMyAmpeba0zF0LJUNom9wiSe9ptbRJd1j7nkmomRvzlaYnp1 Ut8OlKCy/BMUqvb7kGP4LVYaBtkFeQw6XWysRqSuD8cXF3HA1U/KnjnKeeff6MM+XyoJ 7V2Dfk2o9iL87Ol7+ueCw0lHrkunIIKuavrQsmZPPNrnlNnJauyK2K+28XJu0wghRe7o ntMxPZ0nQ0n26mpK2phh5e/45EA0K1k12zFthpimLhAk5wCkR6WICH4Gq40uN2nyW+5Y oGYA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5ArAWfODws1GW4ptgI5As1+X0Q4NUgjONS2lcRZ2VOk=; b=K4v3YLcao+Wh6VOEf78LSeCZ4wQiXCs/orsDCJ7c/dyf2XSamXTR1mwOrS7lEUGyr3 6hD9j7/U09+EuRX7FJIesWShqs1SIlGr4Cpso55d34wJICf56JxXy286b9K7mCQu1mwb OyLPuIRmIQAExWx8KAmBIwpB78Sm5aNEIJF/lUR+r7//svEbyxJAu6yXfZ3NBYecnwPL 5FG2+6qgcVv2WhcuiXTUDThLbVoDSvJfnQ6qM73SMA9IX9Cx1Asl3XdWAwvMiMufNRJ4 R5MOVvWEeK6ntIdreSjmWBES7roLglVDa5JMo+MCIW2rP6dh1OKSVVQq52iRzsVyNLMP PEng==
X-Gm-Message-State: AOAM533moxXRBCmB86fuC1C9QlDHIMDWjh9gHAaD+cmWouHz8ivzpzIG WVmTTZZBWGCl8LFy6WVRnZkpZhFb38dRJpF/mbGpXxEIL6sA+Q==
X-Google-Smtp-Source: ABdhPJzszXK6/Ad5QJqUfFuaec/rMIg/ecHGsAIuaQqa3+tPJVUzEwWBXr0947U1KMPDjTdFCo3yepndT+G5LnUfXwk=
X-Received: by 2002:a9f:36ca:: with SMTP id p68mr1254694uap.96.1599837239056; Fri, 11 Sep 2020 08:13:59 -0700 (PDT)
MIME-Version: 1.0
References: <CAGUsYPweU9TvLHHYEoZ+Djwp1wQiTWYh4nb+ePXXJJwrBMLWEQ@mail.gmail.com> <0BD1BB04-7957-441C-AB72-C4FACA2C9668@independentid.com>
In-Reply-To: <0BD1BB04-7957-441C-AB72-C4FACA2C9668@independentid.com>
From: Shelley <randomshelley@gmail.com>
Date: Fri, 11 Sep 2020 10:13:48 -0500
Message-ID: <CAGUsYPzKO4f7gXdKdomMk7txUp91e-u=itfV0RoHeixpOSWzTA@mail.gmail.com>
To: Phillip Hunt <phil.hunt@independentid.com>
Cc: scim@ietf.org
Content-Type: multipart/alternative; boundary="000000000000551c9905af0b222d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/scim/SFS5HEtrMB76jC-KI0aFhcHw0XU>
Subject: Re: [scim] Common Attribute "schemas" Characteristics
X-BeenThere: scim@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Simple Cloud Identity Management BOF <scim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/scim>, <mailto:scim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/scim/>
List-Post: <mailto:scim@ietf.org>
List-Help: <mailto:scim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/scim>, <mailto:scim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Sep 2020 15:14:02 -0000

Regarding the "*returned*" characteristic for the "*schemas*" attribute...
RFC 7644 includes examples with conflicting behavior for the "schemas"
returned characteristic.

In section 3.4.2 [1], the example query which specifies "attributes" does *not
*return the "schemas" by default:

GET /Users*?attributes=userName*
{
 "schemas":["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
 "totalResults":2,
 "Resources":[







*   {     "id":"2819c223-7f76-453a-919d-413861904646",
 "userName":"bjensen"   },   {
 "id":"c75ad752-64ae-4823-840d-ffa80929976c",     "userName":"jsmith"   }*
 ]
}

However, in section 3.9 [2], "schemas" *is *returned by default in the
response, despite the "attributes" parameter not specifying this attribute:

GET /Users/2819c223-7f76-453a-919d-413861904646*?attributes=userName*
{
 "schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],

* "id":"2819c223-7f76-453a-919d-413861904646",* "userName":"bjensen"
}

RFC 7643 generally indicates throughout that "schemas" MUST be specified;
however, it is not clear as to whether the requirement is referring to
requests and/or responses. Unlike the "id" attribute, which clearly
specifies that it is expected to have a returned characteristic of
"always", the other common attributes don't clearly specify this
characteristic. Is "default" the correct attribute, such that the example
in RFC 7644 Section 3.9 is not correct?

[1] https://tools.ietf.org/html/rfc7644#section-3.4.2
[2] https://tools.ietf.org/html/rfc7644#section-3.9

On Fri, Mar 13, 2020 at 12:10 PM Phillip Hunt <phil.hunt@independentid.com>
wrote:

> Shelley
>
> In practical/pragmatic terms...case insensitive.
>
> I treat as case insensitive since it is unlikely and unwise if two
> separate schemas only differentiated by case.
>
> I would also expect iana process to reject “overlapping” registrations
> differentiated only by case.
>
> Phil
>
> On Mar 13, 2020, at 9:16 AM, Shelley <randomshelley@gmail.com> wrote:
>
> 
> What are the characteristics for the "schemas" [1] attribute?
>
> Here is my attempt at defining these characteristics using the Schema
> definitions:
>
>    - "type" is "reference"
>    - "referenceTypes" is ["uri"]
>    - "required" is "true"
>    - "multiValued" is "true"
>    - "uniqueness" is "none"
>    - "caseExact" as "true" (since this is a "reference" type)
>    - "mutability" of "immutable" (although none of the mutability values
>    seems like a perfect fit)
>    - "returned" characteristic of "default"
>
> Although "schemas" and the "Common Attributes" don't define their own
> schemas, it would be nice to have all of these attributes' characteristics
> clearly defined in the spec using the Schema definition to help provide a
> clear/common definition, particularly, since these characteristics are not
> intended to be modified/defined by SPs..
>
> In particular, in my SCIM implementation, I have been considering whether
> to evaluate "schemas" in resource representations* case-sensitively*
> (exact case as defined in the ResourceType),* case-insensitively* (any
> case allowed), or using *lexical equivalence* (e.g. for URNs,
> case-insensitive schema and NID, case-sensitive NSS, and some components
> ignored). The RFC doesn't seem to clearly prescribe this, but based on the
> fact that the implied type is "reference" which (debatably [2]) has
> "caseExact" as "true" and the fact that the attribute "MUST only contain
> values defined as "schema" and "schemaExtensions"", I'm under the
> assumption that this attribute is *case-sensitive*.
>
> Please confirm. Thanks!
>
> [1] https://tools.ietf.org/html/rfc7643#section-3
> [2]
> https://mailarchive.ietf.org/arch/msg/scim/05_K_y-V26EOfN2F7fuSO3DXoLw/
> _______________________________________________
> scim mailing list
> scim@ietf.org
> https://www.ietf.org/mailman/listinfo/scim
>
>