[OAUTH-WG] Questions about error cases on RFC 7523

nov matake <nov@matake.jp> Thu, 29 July 2021 01:09 UTC

Return-Path: <nov@matake.jp>
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 186C93A08C5 for <oauth@ietfa.amsl.com>; Wed, 28 Jul 2021 18:09:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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=matake-jp.20150623.gappssmtp.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 ULoXlCPFbbs0 for <oauth@ietfa.amsl.com>; Wed, 28 Jul 2021 18:08:57 -0700 (PDT)
Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) (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 AACFC3A08C2 for <oauth@ietf.org>; Wed, 28 Jul 2021 18:08:57 -0700 (PDT)
Received: by mail-pj1-x1036.google.com with SMTP id ca5so7782987pjb.5 for <oauth@ietf.org>; Wed, 28 Jul 2021 18:08:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=matake-jp.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:message-id:date:to; bh=hrHdasClB0aHE3bcLJM0TGyM2xg8SxHsOiLtP1EstSk=; b=YSdcHPPlJOgTrQejY26zsGNDA1lkV1sCsE6c0nPLysIOFYQcBnWvQK3pN6E3ELDQuT sExCfvZMkGGOdnffGka5456v46DmmpbgYb1cS/mrgB60J8Co9f1cTHhmNszDM97qKwYK HnzWj3a8ib3holVewGeQXw8shBcOeRikxUVMOQOZ6v2VopRi2HUoz1Xja8OEtKMdeP1h CptRgOuq3sCPBztarTPYtVenZrBEU7FvrlUbmeB8ExNC9W3TcCDrtS8xJX5O4KyhEuE5 NJsajynZneWu4hcdCWoZnUhFFaJV1KpLff1zdh+LIZUMkdg92KfHSz18kl5cnj1ZDegx 8SHw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=hrHdasClB0aHE3bcLJM0TGyM2xg8SxHsOiLtP1EstSk=; b=YK658gSYaz+vOZAt+4819Za4pRerVV9tiNwcgZ8JHfKyvo296U5jKFdJdSiFpnZKob AoKrDycbqJzRog5rPRW/7BuooPBNjl3uw26q1/okTbJc+2M/ymB2drDb9LxCy3uZzRPW XWKXOUZyDb3getH1DW31p9VTMgN0El/LEdzzqoDREV6IaF0D71lXGCdTjOonOeiylOyr IXiaoTvESUc1OmgMkzkS1EUiAHKInbIemY0Uc++qiFjDYiBejt2COrbjCq9ZnO876cGv X7V9/oP+xqM8ThXixY8oE7PRtziBvBk5cfkwp6DTJVZEteU8R0U3h5LJljoZrnc3Z0jm hfoA==
X-Gm-Message-State: AOAM531FbLZ17/08fixgLopQZxi8akvheoYx/zMMdqzEe8Z6VLopEpNr pg6728etfL+r7tExq2S+jnmzZl1uaASReA==
X-Google-Smtp-Source: ABdhPJy6L62Ux4CV4yjykUWkQRPEhNwKQRpZvh8SplNwBKMGtN8BNye7+6Qv8efzqAly53OE0SZNGQ==
X-Received: by 2002:a05:6a00:704:b029:39e:3043:ec64 with SMTP id 4-20020a056a000704b029039e3043ec64mr2535248pfl.68.1627520935871; Wed, 28 Jul 2021 18:08:55 -0700 (PDT)
Received: from smtpclient.apple (122x208x203x30.ap122.ftth.ucom.ne.jp. [122.208.203.30]) by smtp.gmail.com with ESMTPSA id j3sm1229407pfc.10.2021.07.28.18.08.54 for <oauth@ietf.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jul 2021 18:08:55 -0700 (PDT)
From: nov matake <nov@matake.jp>
Content-Type: multipart/alternative; boundary="Apple-Mail=_300D3C0A-4323-473F-9D4A-E5C3A204CD05"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\))
Message-Id: <FCF75E67-E7BD-41BC-B10B-3ECC1B7AA9E4@matake.jp>
Date: Thu, 29 Jul 2021 10:08:52 +0900
To: oauth <oauth@ietf.org>
X-Mailer: Apple Mail (2.3654.100.0.2.22)
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/vb-T5Oh9r8c6jVqtxyUkbHt6fMA>
Subject: [OAUTH-WG] Questions about error cases on RFC 7523
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: Thu, 29 Jul 2021 01:09:03 -0000

Hi,

I have 2 questions about RFC 7523’s error cases.

1st one is about section 3.2, which requires “invalid_client” error when client assertion JWT is invalid.
In such case, what scheme is expected for WWW-Authentication header? I believe it’s not Basic, but not sure what is appropriate.
https://www.rfc-editor.org/rfc/rfc7523.html#section-3.2 <https://www.rfc-editor.org/rfc/rfc7523.html#section-3.2>

2nd one is about section 4.2.1, which requires “invalid_client” error when multiple client authentication mechanism is used.
RFC 6749 section 5.2 requires “invalid_request” for such case, so it seems those 2 definitions are conflicting.
Do we need to return “invalid_client” if multiple authentication mechanism include client assertion, and otherwise return “invalid_request”?
https://www.rfc-editor.org/rfc/rfc7521.html#section-4.2.1 <https://www.rfc-editor.org/rfc/rfc7521.html#section-4.2.1>
https://www.rfc-editor.org/rfc/rfc6749#section-5.2 <https://www.rfc-editor.org/rfc/rfc6749#section-5.2>

thanks

nov