Re: [Ace] Comment about error responses in draft-ietf-ace-oauth-authz-21

Carsten Bormann <> Mon, 18 February 2019 15:07 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 2C72312941A for <>; Mon, 18 Feb 2019 07:07:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id Gt4jPSUk-iFX for <>; Mon, 18 Feb 2019 07:07:17 -0800 (PST)
Received: from ( [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 7FBE71293B1 for <>; Mon, 18 Feb 2019 07:07:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at
Received: from ( [IPv6:2001:638:708:30c8:406a:91ff:fe74:f2b7]) by (8.14.5/8.14.5) with ESMTP id x1IF773O000047; Mon, 18 Feb 2019 16:07:13 +0100 (CET)
Received: from [] ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPSA id 4436fM3T8Fz1Br6; Mon, 18 Feb 2019 16:07:07 +0100 (CET)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Carsten Bormann <>
In-Reply-To: <>
Date: Mon, 18 Feb 2019 16:07:06 +0100
Cc: "" <>
X-Mao-Original-Outgoing-Id: 572195223.5699069-73f9c597369fbff55a3fecfc752f0876
Content-Transfer-Encoding: quoted-printable
Message-Id: <>
References: <>
To: Sebastian Echeverria <>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <>
Subject: Re: [Ace] Comment about error responses in draft-ietf-ace-oauth-authz-21
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Authentication and Authorization for Constrained Environments \(ace\)" <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Mon, 18 Feb 2019 15:07:19 -0000

> On Feb 18, 2019, at 15:59, Sebastian Echeverria <> wrote:
> Hello,
> I have a short comment about error responses from an RS in draft-ietf-ace-oauth-authz-21. More specifically, my question is about section 5.8.2. In the second paragraph, it states “The response code MUST be 4.01 (Unauthorized) in case the client has not performed the proof-of-possession, or if RS has no valid access token for the client.” I am assuming this means that if the client is trying to access a resource and sending a pop key id that is not known by the RS, either because the RS has never seen it or because it is associated to a token that has already been removed from the RS, then this is how the RS should reply.
> If this is the case, I am a bit confused on how to implement this when using the DTLS profile. When using this profile, a client will first try to establish a DTLS session with the RS when accessing a resource. Once the session is established, it will actually try to access the resource over that DTLS connection. The pop key id to be used is sent when establishing the DTLS connection in the DTLS handshake messages, but if the RS does not have a key+token associated to that id for whatever reason, then it will cancel the DTLS handshake. If the DTLS handshake is never completed, then the RS can’t really send a reply at all, much less a 4.01 reply.

Actually, if the DTLS handshake fails, the client can’t even send the request, so the MUST doesn’t apply.  (That is probably worth another sentence.)

(Another question of course is if the DTLS handshake failure is sufficiently speaking for this case.)

Grüße, Carsten

> Thanks,
> Sebastian Echeverria
> _______________________________________________
> Ace mailing list