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

Filip Skokan <panva.ip@gmail.com> Tue, 03 March 2020 13:43 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 C944B3A0D35 for <oauth@ietfa.amsl.com>; Tue, 3 Mar 2020 05:43:24 -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 HjbPND29q6Qg for <oauth@ietfa.amsl.com>; Tue, 3 Mar 2020 05:43:23 -0800 (PST)
Received: from mail-yw1-xc2c.google.com (mail-yw1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) (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 73E2A3A0D31 for <oauth@ietf.org>; Tue, 3 Mar 2020 05:43:23 -0800 (PST)
Received: by mail-yw1-xc2c.google.com with SMTP id p69so3290413ywh.10 for <oauth@ietf.org>; Tue, 03 Mar 2020 05:43:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=euvqkai2cCw514q0+30w0s6gK/40uWAJxlETFqyXYjk=; b=FWVzj8M68of69Av11iFdlsI2PEcyY5/4qon3/tcAveV9Ko9bW4sQQzGPNoz/kyR16X Ik4Hx5UoXmz7P/zmir3Z6HYFOx2NhDCXij6t3QuofpNWkr5lpN5yMGOsmTbc1aA3Jjie eDtcmk3/vIFK5+NDdzij1OxP6pXvCociB/HBUEfAsd7mbTNfILDaR0NBK6O0ywNGMmai IUlMvQMftz90iEx5mL5IOY4Ax5kLimrIGec+SAbxZ9qSFp5tFjynP4ifco9fXuEl8pwE F4UKu+6bbLZXIE8CdnwFGCj7F0VrEZl3j66G+gddx8S3lSKQxdlBJfv1ojS46WXWBSj4 cXuA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=euvqkai2cCw514q0+30w0s6gK/40uWAJxlETFqyXYjk=; b=HL1vJcpMFfBfM2XbAg87CW2oDJto88wzvXLWZOTuCxCrWxZz9sT+OK+7BwtU3n17UA bO5yegW4fM4jh5u/QBbRco+ggt/O2AgpW7SeeoMTLv2bRx95rMDkYYsVBrdztw93G8mw 08ChONZDZ8hRbR6LxXthNuwVJDk+iFxzxcAVk2Z6qHN5HN3mtSfuoN/DEGcSPt5wVL2s iYLG29WYdOpPJfJsHholTnRPyIZzJnOW6Ltx8vG+lS6ngsgSLQaKdgTGyARvq6t1vzi0 hDFPgJKyFB0HQ20YGCv3uJ154rAQMMkx6GgoLtir7TPR9SFYh5ZAsTPUjCVKMoRS04hX 2bVA==
X-Gm-Message-State: ANhLgQ374DdHnvzdd7sTUKxSJjo5FOThkPeI2icpeGsytBwsAMQO2EFs gwt0JR0ogq2vlW54zV6ACyC2MDLzrhtVLs/h3s/h71yu1A==
X-Google-Smtp-Source: ADFU+vu9Y0/2QKYbXNNkXNrI6QpMo30aG5Gjr8/B4ZICvNqUlDkjuS4B0T5s8EFit/M5P8tjnhmsfhVxNmjMesFNZGQ=
X-Received: by 2002:a25:eb05:: with SMTP id d5mr3780817ybs.254.1583243002281; Tue, 03 Mar 2020 05:43:22 -0800 (PST)
MIME-Version: 1.0
From: Filip Skokan <panva.ip@gmail.com>
Date: Tue, 03 Mar 2020 14:42:45 +0100
Message-ID: <CALAqi_8r8h7+t+c2uDdaVzqCNxh33DS65Edo9ea3vQgm+dVEFA@mail.gmail.com>
To: oauth <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000be8317059ff37ce8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/bwPxi1HUSdxLrVzty8pAfDDpt8I>
Subject: [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: Tue, 03 Mar 2020 13:43:25 -0000

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*