Re: [OAUTH-WG] RFC 8705 (oauth-mtls): RS error code for missing client certificate

乗松隆志 / NORIMATSU,TAKASHI <takashi.norimatsu.ws@hitachi.com> Wed, 17 November 2021 01:43 UTC

Return-Path: <takashi.norimatsu.ws@hitachi.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 884903A07AC for <oauth@ietfa.amsl.com>; Tue, 16 Nov 2021 17:43:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.537
X-Spam-Level:
X-Spam-Status: No, score=-1.537 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, HTML_OBFUSCATE_05_10=0.26, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
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 m2uPYGFbrQTF for <oauth@ietfa.amsl.com>; Tue, 16 Nov 2021 17:43:37 -0800 (PST)
Received: from esa.hc514-86.ap.iphmx.com (esa.hc514-86.ap.iphmx.com [139.138.45.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BB1D53A07A7 for <oauth@ietf.org>; Tue, 16 Nov 2021 17:43:36 -0800 (PST)
IronPort-SDR: K9D0LM5CaOWvirOiWKlmVO4UOVwHOLfDF8f20i9+kzipuDpsLac1nSZzvdwLp3Nus5Up7GsXxI IjTXD/V1wBzciXdX+D/G3df1Np8UJNVqRHbLp7b98v6HyXBeh6fbjnBhmGmWzuHkX9q6IOFVvU nqmfCz6s7PiwZmCT2JCi1A0gPGeohNGc/6VnpZDyo5j++kbRFpku98JdJ2vRMER2wESGSwLqju grihkqRGEKaqhXiDicX7HMOp5q0gp2/LpS0s3ubXEK1XWddyvDQatDH9W/7O0EfzUM/QCEqsiu PoU=
X-IronPort-AV: E=Sophos; i="5.87,239,1631577600"; d="scan'208,217"; a="61429691"
Received: from mail12.maildeliv.hitachi.co.jp (HELO mail12.hitachi.co.jp) ([133.145.228.59]) by ob1.hc514-86.ap.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Nov 2021 01:43:34 +0000
Received: from mlsv9.hitachi.co.jp (unknown [133.145.228.43]) by mail12.hitachi.co.jp (Postfix) with ESMTP id 78DA31E0039; Wed, 17 Nov 2021 10:43:33 +0900 (JST)
Received: from mfgw13.hitachi.co.jp by mlsv9.hitachi.co.jp (8.14.4/8.14.4) id 1AH1hRDO016433; Wed, 17 Nov 2021 10:43:33 +0900
Received: from GUjpTKHDCemcs04.global.hitachi.net ([158.213.210.77]) by mfgw13.hitachi.co.jp with ESMTP id n9z3mG1wVa3F9n9z3mN7hB; Wed, 17 Nov 2021 10:43:33 +0900
Received: from GUjpTKHDCemcs06.global.hitachi.net (2002:9ed5:d273::9ed5:d273) by GUjpTKHDCemcs04.global.hitachi.net (2002:9ed5:d24d::9ed5:d24d) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Wed, 17 Nov 2021 10:43:33 +0900
Received: from JPN01-OS0-obe.outbound.protection.outlook.com (74.107.156.4) by GUjpTKHDCemcs06.global.hitachi.net (158.213.210.115) with Microsoft SMTP Server (TLS) id 15.0.1497.26 via Frontend Transport; Wed, 17 Nov 2021 10:43:33 +0900
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JS4TJeaEDlmuh/XeWDt4QMKCI8rVUYmG9MeLQH3ywXf6Ff8JZ311yDfXRX0wfudG9h632cyYQ42U7JOIQi36CnS6mxfx7V7UqxIhMrUVKkjj+5VauJk8G2vYIgtWi4VAavm7ma7+8DMCl6CIMiaZWLUegNgLNOil9WWpasooc8vdJs16qymFI+/SUXSmYMn7NiVUa/YXimzCUgk3RqPpIHSgQ+P1/mSvHeFi9R4xkcDs7lUNcj4ZT7VJ6rFPM1fgnEJseMLrojVUo3r6Egk/T2qn8L5aUVr0Ar8H7A41szanLiXB+oHG4b9iQkWA/HXoj9hjYjkmuvIWtxSIA8xHHg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AB2T7WpTcOEfm8Z4ZXJ+JBRm1W5ctsyHcmz6xtMMUfE=; b=ieJLNQMuf7Qte2Y4Ib8Ltlln5e5EwqgjPDc1Txk4S5tCstI9zXNQCDNWcuX26sJGjIGtUhvqwu0/E9BRiyWHVUwqH6uqVnekCVOX3RlRtgvul4lIfvjOJ6YQT3qacCL+zelgZrdtekI/cTONDZoDJ9IBY69ngIFnCDzhrl2+jRtlnZYavONfTEV8mOiI8Jl8GDmGPV/Ql4rx0sEjFH7lxSzUS5PDJ4R+ZHRAfNJhrn5XGcekteXcSNX5IUUY9PdYWZNX6gNVNzcwTVzHeOYH63mTo2z/FGaZqeeJXBsR3w8ykx+/55wvotqv89V4vwWQVZxousQQUsYIJXRFCg0YXA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hitachi.com; dmarc=pass action=none header.from=hitachi.com; dkim=pass header.d=hitachi.com; arc=none
Received: from TYWPR01MB7282.jpnprd01.prod.outlook.com (2603:1096:400:c7::7) by TYWPR01MB8854.jpnprd01.prod.outlook.com (2603:1096:400:16a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26; Wed, 17 Nov 2021 01:43:32 +0000
Received: from TYWPR01MB7282.jpnprd01.prod.outlook.com ([fe80::ac7c:afc6:1d4e:5bbd]) by TYWPR01MB7282.jpnprd01.prod.outlook.com ([fe80::ac7c:afc6:1d4e:5bbd%6]) with mapi id 15.20.4690.027; Wed, 17 Nov 2021 01:43:32 +0000
From: 乗松隆志 / NORIMATSU,TAKASHI <takashi.norimatsu.ws@hitachi.com>
To: Justin Richer <jricher@mit.edu>, Dmitry Telegin <dmitryt@backbase.com>
CC: oauth <oauth@ietf.org>
Thread-Topic: [!]Re: [OAUTH-WG] RFC 8705 (oauth-mtls): RS error code for missing client certificate
Thread-Index: AQHX18mLfiN0PpgYKkWKMQfQ9C3ABawEySyAgACCiaCAAaytoA==
Date: Wed, 17 Nov 2021 01:43:31 +0000
Message-ID: <TYWPR01MB728267DAE54500ADAE01CE6DCE9A9@TYWPR01MB7282.jpnprd01.prod.outlook.com>
References: <CAOtx8Dk5f9dLT=mF4_G3ytTm4BzjYxohHVbc27R0nikiQxsdsA@mail.gmail.com> <CAOtx8D=6yEjTEVkx7LnaWk_FYrW80+KxhskGjreQs8X0dnVsnA@mail.gmail.com> <F15CE2F2-1B9A-4201-900E-7BD06AFF3E41@mit.edu> <CAOtx8Dka=FowfTD+ApviDq2-dHaE9offkUKFQqssU7spJWLaLg@mail.gmail.com> <05885557846748b085d67aabd360b04f@oc11expo18.exchange.mit.edu> <CAOtx8DmMiczRTsoQ52YvJZa+j07uRzb-EXu_UO_TYEzZHSe+Tw@mail.gmail.com> <6266B16D-1FCD-4747-B2E6-9893A967B248@mit.edu> <TYWPR01MB7282464DEC94611BFA28760BCE999@TYWPR01MB7282.jpnprd01.prod.outlook.com>
In-Reply-To: <TYWPR01MB7282464DEC94611BFA28760BCE999@TYWPR01MB7282.jpnprd01.prod.outlook.com>
Accept-Language: ja-JP, en-US
Content-Language: ja-JP
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=hitachi.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 7b461b67-1a24-4eed-f637-08d9a96ba988
x-ms-traffictypediagnostic: TYWPR01MB8854:
x-microsoft-antispam-prvs: <TYWPR01MB88542E0E89CA5D33629C1733CE9A9@TYWPR01MB8854.jpnprd01.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: gAoJlSApn13pN7H3HJnzylYDga0IhOfcV7nhByupcrni7QNcPztwyEai84g/c9XDx1HMO31eFJtA/XYQlg6jIAAa2/T0gltdkKgAxnA6LJgpsBcr9Sq/ZK4W4PE7xaWgWstutTftOag6F3J+PG/Recyl14tud6nxdPc5xAYpaWUxNpapEMYW8ThIe/yXZYEmsn7xTdSlmImGRAEJtQB6/NhM6t23rxuLizTGaByHCkvenjZ1GqhBplbm0dr6xZ3D8GgVA+esXtGQt4KYKrXPaSEWgADiWUWmX6DUyJgj4GkfUEinC4NH/8aCVUYXe8krIxQjdMQmh1TXOCkTVqCOB1RjemNwAC7dzqnp+8f4VlB6AyLKjmHu+ttK66+aGLjusO3HnsvNkiwmsztkXMcxt40rw2i/u3TriiYZDnIoAOXSyYg4qj2UIXtPckKPa95hKxfk1RI6i7X5DQVWoMBpdRVcKY4tbUd2zB9NGD00rG5e0Q9PtOE/IIrAmESP6DjWT7q8mriV+ej63LmeZqX0mxGbCGB/U4bkhTiALs+uF7Cs01qvMUKnS+W4PwflQUvgzj/7+nYRLe68aPbDEegt1VhqAK4WAl6cYZI7Rf9KqldSsN5oHJ0qaDs9fufwcX3hwNbS6mM/0uR3pRVNhWZ6b1uwzH74SVAfgcjtgbEc1d3DcQqrZmwB73XuAQ9M1vXCqSq44gAtuGHy0NM9WnAvdh2Pl1dKLYrp3VJ5xfU8Kadoycs+VOsCTjbZ8JJj7YOt9sb3FCUkJ+lyOYW9lIeg69xttsIjD+4vN4RMT/ZLnAk=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYWPR01MB7282.jpnprd01.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(76116006)(64756008)(6506007)(508600001)(82960400001)(33656002)(66556008)(66476007)(316002)(166002)(110136005)(83380400001)(66446008)(66946007)(86362001)(38070700005)(186003)(52536014)(4326008)(26005)(85182001)(53546011)(55016002)(5660300002)(122000001)(2906002)(966005)(38100700002)(8676002)(8936002)(7696005)(9686003)(71200400001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: X7rFr+sCRZcZHZJ77ZwCqtp2FFNIs1xK//Rc3AmUYFc4SplP6xiZDeQiWauNVe0eJ8Js2pR1UG7bIagSHog8sjICJD65MWsrMCZKGCdoR+OzXjY8dSlZc2lZw8CHBuTyfgrFlLYM0uAUbssdXlILkUybcAyiFs/sKxAncxkKc3Rw38BK1An2oFHrhtF1ppkKnqfimncn1oOhLvKaaW5WIi4TrdCanxLTYNvd6GE0otS5K36Lzod9AzUFoF0J8l3jks4vE52JmuXc+hl2Lkiz+KDKUaHPgnJ7/fcu0NmqbYDdtdrQs4UPIj/Wwlgmp143ExjPUzH0s9AO5XNHcz8p6ArkTBJf0CLucdESeKZ4pTbUm0ggtwr0vsgxPtSA1MprSbYcagWiN/rCDCsZMgzQuaBzh8DI9tggi5VHlixFIwgVEGddnYoHow/qKOGDZseSvdpg3IfSyNJwmkl2mDtpCAQj58rVhBH5AGch7AZ9Sh9+YaGk8hLKqPJLip8NiXVIBDKgOoKOm9ZjzK+e2kD6TBi4sT3tYXPsTzXqTILDWdcW/uC93YnsojitluFnDslZmLcwZXyFTF5tbFrKqZmKmvQhdPArvN3yoVWNN1wx5rmPlziqnZTXh8AZUiRug2zbbhpLm299NmligByM7eBUrS5jJSa7pd5aAS6QaH5pscnIGj9/uNDYWjOanCILpepznBr0/TZCqAN1WXQoV+LDZIRFLTtHPDkdrNY3H7xFJL/HIeyzcWSDINZ3wWiSgPuvZcqCpMcZcH6N/pMDOONe/KGE2ezUKOtN7gFPCgCd2PkBUJp6SMezSXRDsoIzaNms0r4/2x0E7zQ682UA4RlMngE0DucD3Nsict9mWa1c/q3KviiysGL2SyZTEZhcB+oLKXzCcrxKLwfAhXO9gTXz2fBlEf0vmjMPTzY6szQ8+bmxjNrafHZRfi1xk8H1N0s0l8vED6WgMxVgQmU6GUP1tX2XE/Gv8k37NGtOjhLuixnUk/o+A23b8/2ZGxN9CAi+bkDAvVVvp8mKNaysT2Gqsx/YEFWyS5tLm0Z8VNz6LSm32uZeVG7XvAwi8gkHrTs1tW4D6LekHT4cAiVoArU0zo37J0PHWsa91f/4NKIshnbNHBgNVOxmLIGQgvqEZiyzeGwiia8BFk3AFuRt5oQ6bmOyv13lmJdTaGCGrrrRJ0Aic8eBLHvSiYLaIQ48zQ8X+CV55NOI7qOgKGU35nQmKFo3y4omteW/G/10Y6voSPMkQ/4EvE617UsWR6/2tleRwMSFgTcG9wL6doM0TI9zaRfdFHA+yohhloPSDFfPgLp8oFM4+oB3nLgLkvXO04DgWMhv8sZ337708+35oRGr9K8Raw5hTiGvh0P/+D6JM3wAsf92FOKtz3l3Z5WpdyJpZ11e3750GlT/9qSnOEB06472IGB6eYBdLRv9vZ4tlWaIZY3EC+jfRBZirZsWrX45EMNQ6ULhsgQxeQOpfCkYTkIL5al16lkVzGH6Yqcy2txl+B3cOH/6/VBoqN3cqPRd5pcGha4XNXLwvWAty3U+4cGRqANwIZJhS3WFoVWisdq22V6RD9IDUg19lo9GIeq8MzzvhzMDyrYUCf8rqVTdu7c9sKNv9+s+h46jFCTluzasHeJuwLwCNh0mxWIR4+4dM0Lp677WSf1HwDcYbaFTCvYWndwtM0CZbVqE1708gfR1GPs4ugWjfYXlgbgbNmPB
Content-Type: multipart/alternative; boundary="_000_TYWPR01MB728267DAE54500ADAE01CE6DCE9A9TYWPR01MB7282jpnp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: TYWPR01MB7282.jpnprd01.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7b461b67-1a24-4eed-f637-08d9a96ba988
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Nov 2021 01:43:31.9460 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f54277c9-dafe-44aa-85a4-73d5c7c52450
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 4vQOBfH7FdQYW377dMT4LV0kwr1UfhepwzVDxCDD7je/N2/+uZ2W2CJIptwIoh/DpVYPSYohq6W0oPSEbz5kLOl788frhYMV52ygysLOo7b2uYdGL9pooSPuTYE5Jsrj
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB8854
X-OriginatorOrg: hitachi.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/624t42gCis4lbbgMXneSVrEMQdg>
Subject: Re: [OAUTH-WG] RFC 8705 (oauth-mtls): RS error code for missing client certificate
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, 17 Nov 2021 01:43:42 -0000

Hello,

>Considering that several technologies has emerged for realizing sender constrained tokens (e.g. holder-of-key bound : certificate bound by MTLS, DPoP, etc ... in the future), it might be good to show which kind of technology is used for sender constraint token explicitly with Authentication header value if there is a chance that RS allows several technologies for sender constrained access token.

Sorry, Authorization request header, not Authentication header.

From: 乗松隆志 / NORIMATSU,TAKASHI
Sent: Wednesday, November 17, 2021 8:05 AM
To: Justin Richer <jricher@mit.edu>; Dmitry Telegin <dmitryt@backbase.com>
Cc: oauth <oauth@ietf.org>
Subject: RE: [!]Re: [OAUTH-WG] RFC 8705 (oauth-mtls): RS error code for missing client certificate

Hello,

Considering that several technologies has emerged for realizing sender constrained tokens (e.g. holder-of-key bound : certificate bound by MTLS, DPoP, etc ... in the future), it might be good to show which kind of technology is used for sender constraint token explicitly with Authentication header value if there is a chance that RS allows several technologies for sender constrained access token.

Regards,
Takashi Norimatsu
Hitachi, Ltd.

From: Justin Richer <jricher@mit.edu<mailto:jricher@mit.edu>>
Sent: Tuesday, November 16, 2021 1:18 AM
To: Dmitry Telegin <dmitryt@backbase.com<mailto:dmitryt@backbase.com>>
Cc: oauth <oauth@ietf.org<mailto:oauth@ietf.org>>; 乗松隆志 / NORIMATSU,TAKASHI <takashi.norimatsu.ws@hitachi.com<mailto:takashi.norimatsu.ws@hitachi.com>>
Subject: [!]Re: [OAUTH-WG] RFC 8705 (oauth-mtls): RS error code for missing client certificate

On Nov 12, 2021, at 8:30 AM, Dmitry Telegin <dmitryt@backbase.com<mailto:dmitryt@backbase.com>> wrote:

Just to make sure I understand the process, is it going to be something like draft-XXXXXX-oauth-mtls-rfc8705-bis -> draft-ietf-oauth-mtls-rfc8705-bis -> new RFC that will obsolete the current one? CCing my colleague Takashi Norimatsu who worked on MTLS holder-of-key for Keycloak, perhaps he has more ideas for improvements.


That’s the most likely path if it happens, yes. And that’s if the WG wants to make that change, which would break things.

As for this stance:
The MTLS draft also re-uses “Bearer” as a token header, which is also a mistake in my opinion.

Did you mean the re-use of the "Bearer" scheme for the Authorization header and WWW-Authenticate challenge? If so, and if we decide to introduce a new scheme, I think this would imply a new value for the "token_type" token response attribute as well.


I actually meant the use in the “Authorization: Bearer <token>” header, as well as the token type. In my opinion both of those should be something other than “bearer” because it’s not a bearer token, it’s TLS bound. The argument in the WG at the time was that it would allow easier upgrades from existing implementations. I personally hold that this decision allows for more dangerous downgrades instead. 🤷♀️


— Justin


Of particular interest to me is the question whether different binding mechanisms (DPoP, MTLS) could co-exist, or should they be mutually exclusive; this deserves a separate thread though.

- Dmitry




On Thu, Nov 11, 2021 at 10:22 AM Justin Richer <jricher@mit.edu<mailto:jricher@mit.edu>> wrote:
Only if this working group wanted to take up the work of making a new revision of the standard, but I haven't seen any indication of desire to do that here. One possibility is for you to propose an update as an individual draft to the group here.

-Justin
________________________________________
From: Dmitry Telegin [dmitryt@backbase.com<mailto:dmitryt@backbase.com>]
Sent: Wednesday, November 10, 2021 1:34 PM
To: Justin Richer
Cc: oauth
Subject: Re: [OAUTH-WG] RFC 8705 (oauth-mtls): RS error code for missing client certificate

Thanks for the reply. That makes sense.

Given that MTLS is not a draft but rather a proposed standard (RFC 8705), do you think there is a chance the changes you proposed could land in MTLS one day?

On Wed, Nov 10, 2021 at 6:24 PM Justin Richer <jricher@mit.edu<mailto:jricher@mit.edu><mailto:jricher@mit.edu<mailto:jricher@mit.edu>>> wrote:
This is just my interpretation, but this feels more like invalid token, because you’re not presenting all of the material required for the token itself. The DPoP draft has added “invalid_dpop_proof” as an error code, which I think is even better, but the MTLS draft is missing such an element and that is arguably a mistake in the document. The MTLS draft also re-uses “Bearer” as a token header, which is also a mistake in my opinion.

But given the codes available, “invalid_token” seems to fit better because you aren’t messing up the request _to the resource_ itself, you’re messing up the token presentation.

 — Justin

On Nov 10, 2021, at 10:17 AM, Dmitry Telegin <dmitryt=40backbase.com@dmarc.ietf.org<mailto:40backbase.com@dmarc.ietf.org><mailto:dmitryt<mailto:dmitryt>=40backbase.com@dmarc.ietf.org<mailto:40backbase.com@dmarc.ietf.org>>> wrote:

Any updates on this one? The missing certificate case looks more like "invalid_request" to me:


invalid_request
         The request is missing a required parameter, includes an
         unsupported parameter or parameter value, repeats the same
         parameter, uses more than one method for including an access
         token, or is otherwise malformed.  The resource server SHOULD
         respond with the HTTP 400 (Bad Request) status code.


On Fri, Sep 24, 2021 at 2:23 AM Dmitry Telegin <dmitryt@backbase.com<mailto:dmitryt@backbase.com><mailto:dmitryt@backbase.com<mailto:dmitryt@backbase.com>>> wrote:
From the document:


   The protected resource MUST obtain, from its TLS implementation
   layer, the client certificate used for mutual TLS and MUST verify
   that the certificate matches the certificate associated with the
   access token.  If they do not match, the resource access attempt MUST
   be rejected with an error, per [RFC6750<https://datatracker.ietf.org/doc/html/rfc6750<https://secure-web.cisco.com/1o_2s-Gspt8sfupLKDuTsMUX0mq2oJBpOmhZGA15-xGMgZFiTepx6JeXQohQQs-Glnj09iZyh6bzIPoQDrizWlLZBsH-6nxwkLrjVuMHBrgVmb0xqFr2O9pc9oRLu2KFZ2VqpLc7Pkf_IxyVbW0CW5OI_dBUr_LFaRcZPhnfQbeXcYZHRMzwtikk1ositkwgcSYqfKsn8uZWaYQipspFXiyB4xgg891fgojvsQuvMi5ZWKELavcBAjh8KQzxhSIHLk0q4XdaUWI325xXswKFR8DW2eFWf2G_LHg2fVEbDayTFBmjpLpm_nuhESWkdHuDH/https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc6750>>], using an HTTP 401 status
   code and the "invalid_token" error code.

Should the same error code be used in the case when the resource failed to obtain a certificate from the TLS layer? This could happen, for example, if the TLS stack has been misconfigured (e.g. verify-client="REQUESTED" instead of "REQUIRED" for Undertow), and the user agent provided no certificate.

Thanks,
Dmitry

_______________________________________________
OAuth mailing list
OAuth@ietf.org<mailto:OAuth@ietf.org><mailto:OAuth@ietf.org<mailto:OAuth@ietf.org>>
https://www.ietf.org/mailman/listinfo/oauth<https://secure-web.cisco.com/1DcCIzbtbXNIKMHxsgjNGi4azyXC-apZRqf390H1ZxBHQkpGwvQjJIVhO420OXxNCSzpXIvFNgkcV93HKWRmsyNWztAipkXMP4u3UXu4pmv0uXcaK-fyPec9nZTunr_08LsLBX76KocDJk5Wc5DBrwq5yArl6n3HqqsfaLRsSER5VsPcjBjGexgiccHaFhG6NTErbU7WRvY-X8xULLdpL7A-TvykYVndXf73heLo0JZ_fymjUvmMIC3_Seqq34Ta2b5LZRSjClmtcKSi75m2lpaEGrX5C1vGENl7mIH0PaelRR2cqxh7E3HNTwBxxYSe0/https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Foauth>