Re: [Ace] Parameter abbreviation number ranges for draft-ietf-ace-oauth-authz

Samuel Erdtman <samuel@erdtman.se> Mon, 27 August 2018 16:39 UTC

Return-Path: <samuel@erdtman.se>
X-Original-To: ace@ietfa.amsl.com
Delivered-To: ace@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A9852130E1B for <ace@ietfa.amsl.com>; Mon, 27 Aug 2018 09:39:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 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, T_DKIMWL_WL_MED=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=erdtman-se.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 ArYomR3bevY3 for <ace@ietfa.amsl.com>; Mon, 27 Aug 2018 09:39:13 -0700 (PDT)
Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (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 BAD79130E14 for <ace@ietf.org>; Mon, 27 Aug 2018 09:39:13 -0700 (PDT)
Received: by mail-pg1-x536.google.com with SMTP id v66-v6so7671647pgb.10 for <ace@ietf.org>; Mon, 27 Aug 2018 09:39:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=erdtman-se.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jyZsbKWmC+Bzgak0427Uvv001fgq+0NpCSFjJ6w299U=; b=CSXSbAX33YBirudUbF2t4qE1QuNF290bhbcTbTVckAyHC2qCuyTdL8/98V7GGebwH+ 8tOXK4LKMHmhtlOZZMGof5oBCkj2y1aGrnXe3M/Kb67cj7SYP0M4Ji/CtT4xI3LF94Dj q3s+qoYXPS9cNFi+JYk3K3bL+k8wRUPQry3q2db8snzgHsVxx4Iu4EqXRKh3lbEpC4gF gdpXEsvT7TAGhCT+2qu8o7vXvFEhCCZl9sSzXcWPhCBBgnu/CfdT+p40jw0SDezuapw7 QR5ngn13113Ly/u0CpTxtWFR7eSycJbUaGFC90Sp7b+/PYzG7+GqhPdTgZCH1kUi7gBP nbJw==
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=jyZsbKWmC+Bzgak0427Uvv001fgq+0NpCSFjJ6w299U=; b=BWuRTAcAIVXLOhIajzUKTgUS/CU2AZfyIzuReX2wtUDnohHvdOiKqf1lguMDK2nnB/ Wsy52MflDn1lm+wWcw02UQMqs4O4QXItDfKL74AHDSQD3ZbaoMi0NthygRPPHZGMSSZc adWzCE1U6+OHJsYAuiU3W+TVQoX3x0+pylu5WUq3cH3jybwD586zUZ1pG903ZX4mtSq6 SaG8MDyPgH/dS6TeYXF2bWKfEREjPlRA4hF8LJ9yHAjIvyVjgnpqqwr4IB8m4rVCWUmu CN+1RJJGnWLsqVVLmNAbQtQR07oquWEUlBxEmABh/gmmK84VcY4oCplbiRLus8fbm2Dv Eq/w==
X-Gm-Message-State: APzg51Dw/u7csZx6J5fWR8eYFJyiyCDjbJvZM00aPrMe5ZtiG1xB3C6i 9ht+jaZTVu1j/H5W99QFw2HZ9ZpnakNzWOw9G2oTrGst
X-Google-Smtp-Source: ANB0VdY+c+ir3NXRv0pKMoUhduNv14TweNMiHAcWsXxEAnGvimpDqDxXw9FGu3XeP/1/2vC48UHHBpCjtmwXv8MZN/A=
X-Received: by 2002:a63:1a61:: with SMTP id a33-v6mr13127068pgm.9.1535387953106; Mon, 27 Aug 2018 09:39:13 -0700 (PDT)
MIME-Version: 1.0
References: <ed5a89e7-e2ed-8804-037f-8b50d2bc6d64@ri.se> <02f901d43e21$ca195e10$5e4c1a30$@augustcellars.com>
In-Reply-To: <02f901d43e21$ca195e10$5e4c1a30$@augustcellars.com>
From: Samuel Erdtman <samuel@erdtman.se>
Date: Mon, 27 Aug 2018 18:39:02 +0200
Message-ID: <CAF2hCbZEkoRodXpE1kFF41fUWb6GoBVbtTnZuKPzRyVRhHhN=w@mail.gmail.com>
To: Jim Schaad <ietf@augustcellars.com>
Cc: Ludwig Seitz <ludwig.seitz@ri.se>, ace@ietf.org
Content-Type: multipart/alternative; boundary="00000000000089a63905746d5daa"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/kzvu52muhshBEBw0sWpk4ueeIT8>
Subject: Re: [Ace] Parameter abbreviation number ranges for draft-ietf-ace-oauth-authz
X-BeenThere: ace@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: "Authentication and Authorization for Constrained Environments \(ace\)" <ace.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ace>, <mailto:ace-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ace/>
List-Post: <mailto:ace@ietf.org>
List-Help: <mailto:ace-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ace>, <mailto:ace-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 27 Aug 2018 16:39:17 -0000

+1 on pushing up error_description and error_uri

I think client_id might be worth keeping low since it is often used even
when in combination with client_secret. See OAuth Mtls as an example.
On Mon, 27 Aug 2018 at 18:20, Jim Schaad <ietf@augustcellars.com> wrote:

>
>
> > -----Original Message-----
> > From: Ace <ace-bounces@ietf.org> On Behalf Of Ludwig Seitz
> > Sent: Monday, August 27, 2018 12:52 AM
> > To: ace@ietf.org
> > Subject: [Ace] Parameter abbreviation number ranges for
> draft-ietf-ace-oauth-
> > authz
> >
> > Hello group,
> >
> > at IETF 102 there was a discussion about the numerical abbreviations we
> > introduced for both OAuth parameter names and access token claim names.
> >
> > I have generated a proposal that makes better use of the number space,
> but
> I'd
> > like the OAuth specialists to have a look at it and see if I pushed any
> important
> > (= frequently used) OAuth parameter into the two byte number range.
> >
> >
> > Background:
> >
> > CBOR integers have a very compact representation (1 byte) for numbers
> from
> > 0-23, from 24-255 (which is all we will ever need ;-) ) they use 2 bytes.
> Thus
> > we'd like to use abbreviations in the first number range for
> parameters/claims
> > that are frequently used.
> >
> > My proposal follow below, please feel free to comment.
> >
> >
> > /Ludwig
> > ================================================================
> > ================
> >
> >
> > Existing claim name abbreviations from RFC 8392 (CWT) :
> >   iss  1
> >   sub  2
> >   aud  3
> >   exp  4
> >   nbf  5
> >   iat  6
> >   cti  7
> >
> > New claim name abbreviation introduced by
> > draft-ietf-ace-cwt-proof-of-possession:
> >
> >   cnf  8
> >
> > New claims introduced by draft-ietf-ace-oauth-authz (with proposed
> > abbreviations):
> >
> >   scope 9
> >   profile 10
> >   rs_cnf 11
> >
> > Token endpoint parameters from RFC 6749 (OAuth 2.0) (with proposed
> > abbreviations):
> >
> > scope 9
> > error 12
> > grant_type 13
> > access_token 14
> > token_type 15
> >
> > client_id      24
> > client_secret  25
> > response_type  26
> > state 27
> > redirect_uri 28
> > error_description 29
> > error_uri 30
> > code 31
> > expires_in 32
> > username 33
> > password 34
> > refresh_token 35
>
> [JLS] I would be willing to push error_description and error_uri up into
> the
> two byte range I don't think they fall into the frequently used category in
> a working system.  I don't know that we need to keep client_id,
> client_secret, username and password in the low range at this time.   Do we
> really think that we are going to be using this on small devices?
>
> >
> > New token endpoint parameters introduced by draft-ietf-ace-oauth-authz
> (with
> > proposed abbreviations):
> >
> > req_aud 16
> > req_cnf 17
> > used_cnf 18
> > rs_cnf 19
> >
> > (Note that req_* and used_cnf are not yet in the draft, but we came to
> the
> > conclusion we will need them after the OAuth session at IETF 102.
> > They will be in the next update)
> >
> > Introspection endpoint paramenters from RFC  (OAuth 2.0 introspection)
> (with
> > proposed abbreviations):
> >
> > iss 1
> > sub 2
> > aud 3
> > exp 4
> > iat 6
> > nbf 5
> > scope  9
> > token_type 15
> > active 20
> > client_id 24
> > username 33
> > jti (no abbreviation, we have cti)
> >
> >
> >
> > New introspection endpoint parameters introduced by
> > draft-ietf-ace-oauth-authz:
> >
> > cnf 8
> > rs_cnf   19
> > profile  10
> >
> >
> >
> >
> > --
> > Ludwig Seitz, PhD
> > Security Lab, RISE SICS
> > Phone +46(0)70-349 92 51
> >
> > _______________________________________________
> > Ace mailing list
> > Ace@ietf.org
> > https://www.ietf.org/mailman/listinfo/ace
>
> _______________________________________________
> Ace mailing list
> Ace@ietf.org
> https://www.ietf.org/mailman/listinfo/ace
>