Re: [OAUTH-WG] RFC 7592 - Client Update Request omitted fields

Filip Skokan <panva.ip@gmail.com> Wed, 04 March 2020 15:42 UTC

Return-Path: <panva.ip@gmail.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4AD073A116B for <oauth@ietfa.amsl.com>; Wed, 4 Mar 2020 07:42:54 -0800 (PST)
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 SYF_3li1WjDQ for <oauth@ietfa.amsl.com>; Wed, 4 Mar 2020 07:42:50 -0800 (PST)
Received: from mail-yw1-xc2f.google.com (mail-yw1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) (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 8A0483A116E for <oauth@ietf.org>; Wed, 4 Mar 2020 07:42:50 -0800 (PST)
Received: by mail-yw1-xc2f.google.com with SMTP id d206so2325726ywa.12 for <oauth@ietf.org>; Wed, 04 Mar 2020 07:42:50 -0800 (PST)
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=4vJx998nHULAeUg91rGODf+GhfuqRyFK6hVX0PtwKF0=; b=sp9hCTIUHhFgEfEvufsA9flWXSNGxEmiKHkzxx3S2hsX8sTiG1jOlCzfa0xsO7GTYu y5tf2Ip2mY/Ikv9NrplPGHCaJSdT9RVVZg72fmp5MZVaTaFeY3NWW4Y9gwe3YoWn/eNi AdBx7VJLWbuH70XzcNP8x8shw7X3n8OKs+a4xC4ej+yiVKFGXI9C5SXWQ1RdFegzLvv3 apO7n41ih6TBlbva8ZQbY9tTNbefZsShQs47I4f4rF/1kVtLmQEWSvRd1fQC2zEIWG3C SlIK6/CuV07RIFLgjw3WOMnollWSBoxsbhH7SXtGlYaX5A9YckYw3YVW3iGsTqg5liVP KwPw==
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=4vJx998nHULAeUg91rGODf+GhfuqRyFK6hVX0PtwKF0=; b=rmPqYtOwoU/gZhGmhWqnmq2sezAGkpaDVsLfb1e+ls6alAyHMOljX59jX6eZpHGkE/ 91ZP0xzAMRGcCtMMDnScmB4P3Ofnh/urT5pLD6LfvyL1bU3is0iFvF/x/AYLNV74d/Li nsQiARtipAfyG2sIAObJv6r6ZghUbHVXcDZRtc3hwy5RelESfGNotJJXJgnM4YLaxqAV M58K2GhJas6nxR1zoeImFbVLF3U189+s3nPPzAN9AIEFokLGyN72bozOlrRozjIawNMf pni8QJ3I1Pxxl5gEq9hVgH7qBntcXKoVyJmkyM+5cZJvKkw/aSDu5QfpEWBgJidPgzeA 3UQQ==
X-Gm-Message-State: ANhLgQ3b0RoEBRaAy0rsdOu1McZubW2Zo3C0xb7KDdFUDORR7pEQsrIY uhEsTP8kZAHsvRb08wpKuqJJnUjHJObaaVOpFgesfixL1A==
X-Google-Smtp-Source: ADFU+vskL1kkmAvvYG4T62Y5r87t6iYbjcB7cd4miAeqG5X+aRsIO3X1e1mCa/MPdRKX6tFh2KH7bjFb2GFgn/MO7nI=
X-Received: by 2002:a81:6a42:: with SMTP id f63mr3485762ywc.481.1583336569603; Wed, 04 Mar 2020 07:42:49 -0800 (PST)
MIME-Version: 1.0
References: <CALAqi_8r8h7+t+c2uDdaVzqCNxh33DS65Edo9ea3vQgm+dVEFA@mail.gmail.com> <84FE0330-B7E3-459A-A8A0-32058FAC4B98@mit.edu>
In-Reply-To: <84FE0330-B7E3-459A-A8A0-32058FAC4B98@mit.edu>
From: Filip Skokan <panva.ip@gmail.com>
Date: Wed, 04 Mar 2020 16:42:13 +0100
Message-ID: <CALAqi_91Xv4QrZsQrU_YY=AKW8H_jX2Kax8gZ0QCxzDGX4DBzg@mail.gmail.com>
To: Justin Richer <jricher@mit.edu>
Cc: oauth <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000ca8c9b05a009459f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/zKp2GdsLUatz34nujxldgf3r3S0>
Subject: Re: [OAUTH-WG] RFC 7592 - Client Update Request omitted fields
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth/>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Mar 2020 15:43:00 -0000

So the following

Omitted fields MUST be treated as null or empty values by the server,
> indicating the client's request to delete them from the client's
> registration.


Does not mean the server needs to accept requests where fields are omitted?
Is that a left over from previous drafts then?

S pozdravem,
*Filip Skokan*


On Wed, 4 Mar 2020 at 16:37, Justin Richer <jricher@mit.edu> wrote:

> Your interpretation was our intent with that. It’s a full replace of the
> object. We had debating having PATCH style semantics, but ultimately
> decided that that was too complex for the most common update actions that a
> client would have.
>
>  — Justin
>
> On Mar 3, 2020, at 8:42 AM, Filip Skokan <panva.ip@gmail.com> wrote:
>
> Hello everyone,
>
> Section 2.2 of RFC 7592 <https://tools.ietf.org/html/rfc7592#section-2.2>
> (Dynamic Client Registration Management Protocol) has the following two
> statements that oppose one another.
>
> This request MUST include all client metadata fields as returned to the
>> client from a previous registration, read, or update operation.
>
>
> Omitted fields MUST be treated as null or empty values by the server,
>> indicating the client's request to delete them from the client's
>> registration.
>
>
> What's the intention here? Should a server be accepting requests that are
> missing client properties it has either on the record or "resolved" or not?
>
> Personally I like to always make sure the client submits everything and to
> remove properties it must pass null or empty string as the values. That way
> the request is 100% intentional about the final state of the record it
> wants to update to.
>
> What do you think?
>
> Best,
> *Filip*
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>
>
>