Re: [OAUTH-WG] Access Token Hash for DPoP

Brian Campbell <bcampbell@pingidentity.com> Thu, 18 March 2021 21:56 UTC

Return-Path: <bcampbell@pingidentity.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 C9FEA3A0AB6 for <oauth@ietfa.amsl.com>; Thu, 18 Mar 2021 14:56:02 -0700 (PDT)
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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=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=pingidentity.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 3cJRkxZtqh7P for <oauth@ietfa.amsl.com>; Thu, 18 Mar 2021 14:56:00 -0700 (PDT)
Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) (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 6B4503A0AB2 for <oauth@ietf.org>; Thu, 18 Mar 2021 14:56:00 -0700 (PDT)
Received: by mail-lj1-x22f.google.com with SMTP id a1so9457483ljp.2 for <oauth@ietf.org>; Thu, 18 Mar 2021 14:56:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pingidentity.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6Yv4wX9znGSyZhXeczPzNcJs1ytIaV+JvGIMQOhY83Y=; b=ZzL1k3JNIoRdvkqmqr9WpzPNWDhIhjIYNKgg1bpA2Ogn8I1hcRlmbSQ10KzwHeWV+j wom7ep7utlBcquu5amKGXNx05xGl0/91mBMmDp2kcH3fvqjRLPK/RE8YfpP6sjb+YXtj HKQFvFlEB+aWkwdxLeXbu6mPMW7SJHctAe3KJojB0U2Llps3pWiUciQA1N+mfEpymOsv XbmHRkeTJQ0gHTLCOEau0Hx6OBl6KP3kyJLKJ14z1KakqSjD5Bk7pdyeNHCAwSqJf0El fe8jHpjR4j2LG+nxtIaEMIbcchL2QszHiuuGeJeU3dy14i/A3V6mY7cWfoXuDnm9fRYO P26g==
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=6Yv4wX9znGSyZhXeczPzNcJs1ytIaV+JvGIMQOhY83Y=; b=Azx7jQlWgoy1sUA7n3HDX6lTBeRU1oCPMjjamD2/ZcXJVkABoyDPtM0j2MQ1mCOEM7 4Oc9OzEpoEtBVMGCJiJJ8WNOyOpyYdrmiRABpAVd2nMIUVU+EPdp6XJUqHn0ILRWGPJO Qm5/94kGJUWC/TWtQ7dZGzOu4UBMKRfkbm+9juMkk9klB6M1TYQFDWhLXhOcv+oU/fGZ EuqoIRbYtKrJwF/I1dVhQizuycZVZ8toNp3EdkbMenxJaoHy4O191PWy7SqicMxlwcik tt1ILTkcDL6R++mua73jRCsKHR4EuiXo0RaSqUA2m/5B41lQayc3Lj4vHOf5miQndyzR bjrg==
X-Gm-Message-State: AOAM531RLRxwrzVhr2uR/15Y4xu3ME60Ousc3PRkezokkiJLrOitWOZW NZyjLuEepsfw4FQuItGwPNFp5+BvGn9vY5gkDsKAYTxcSYTIx8CftR+6DjltWz1LABzIQui2JC+ Pv6217HIlCw/9Tg==
X-Google-Smtp-Source: ABdhPJyikePbzYjMErkKnp9FOLdbHMtrK8jLKclYvGRTSB699U+t2uLCnFjZ2AKDHqymAlsuI37TwintKc4L6rAZi9c=
X-Received: by 2002:a2e:87d8:: with SMTP id v24mr6395372ljj.387.1616104556159; Thu, 18 Mar 2021 14:55:56 -0700 (PDT)
MIME-Version: 1.0
References: <A46B824E-7BEE-4C5D-BF53-13519330F1FC@mit.edu>
In-Reply-To: <A46B824E-7BEE-4C5D-BF53-13519330F1FC@mit.edu>
From: Brian Campbell <bcampbell@pingidentity.com>
Date: Thu, 18 Mar 2021 15:55:30 -0600
Message-ID: <CA+k3eCQ1b_PjXWzLkcF7sVTk++c=CnO48CcGejRy0dQpL89HRw@mail.gmail.com>
To: Justin Richer <jricher@mit.edu>
Cc: oauth <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000fd796805bdd6a950"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/-eTsm1jhxJ0MDtG5QIhk1lX0soc>
Subject: Re: [OAUTH-WG] Access Token Hash for DPoP
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, 18 Mar 2021 21:56:03 -0000

Thanks for this, Justin.

Gauging consensus on the two issues discussed again on the call earlier
this week has been difficult. Obviously. As I've said, I've gone back and
forth in my thinking about both more than a few times.  But my sense of the
room on Monday was that whatever consensus exists is leaning towards
basically the opposite of what I'd proposed during the meeting to move
forward. So it's feeling to me like adding an access token hash and not
changing the confirmation is the path forward.

On Tue, Mar 16, 2021 at 8:08 AM Justin Richer <jricher@mit.edu> wrote:

> As discussed on the call yesterday, I have put together a modest proposal
> for adding access token hash to the DPoP draft.
>
> https://github.com/danielfett/draft-dpop/pull/62
>
> Instead of using the existing OpenID Connect “at_hash” claim and
> definition, I opted for a new claim “ath” with a fixed hash method. While
> we could re-use the existing claim definition, I think it makes more sense
> to have the function be simpler. I made this decision based on years of
> feedback from developers on dealing with the OpenID definition: most of the
> confusion and errors come from deciding which hash algorithm to use and
> from the “left-bytes” truncation, both of which can fail in unsafe ways
> under the right error conditions.
>
> If SHA256 is obsoleted or another method is more appropriate given the
> space, then a new claim can be invented with defined semantics tied to a
> new hash method, obsoleting the “ath” method for
> “ath_but_better_this_time”.
>
> If people want to use the “at_hash” claim, this definition doesn’t
> actually get in the way of using that alongside “ath". We might want to
> change the normative requirement to something like “MUST include ‘ath’,
> ‘at_hash’, or another token hash method” instead, but I didn’t go that far
> here.
>
> And finally, as I said on the call, I think this is a good idea and one
> I’ve implemented support for in a test project, but not something I
> consider make-or-break for publication of DPoP.
>
>  — Justin
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>

-- 
_CONFIDENTIALITY NOTICE: This email may contain confidential and privileged 
material for the sole use of the intended recipient(s). Any review, use, 
distribution or disclosure by others is strictly prohibited.  If you have 
received this communication in error, please notify the sender immediately 
by e-mail and delete the message and any file attachments from your 
computer. Thank you._