[OAUTH-WG] oauth-access-token-jwt: comments and clarifications

Roberto Polli <robipolli@gmail.com> Fri, 02 April 2021 09:55 UTC

Return-Path: <robipolli@gmail.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 703E53A0A1E for <oauth@ietfa.amsl.com>; Fri, 2 Apr 2021 02:55:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.087
X-Spam-Level:
X-Spam-Status: No, score=-2.087 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 gib-NpB7snqB for <oauth@ietfa.amsl.com>; Fri, 2 Apr 2021 02:55:40 -0700 (PDT)
Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 9E7813A0A16 for <oauth@ietf.org>; Fri, 2 Apr 2021 02:55:40 -0700 (PDT)
Received: by mail-il1-x131.google.com with SMTP id h7so4295390ilj.8 for <oauth@ietf.org>; Fri, 02 Apr 2021 02:55:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=lkYWTnvzlzOLz8TzZcl3b6dTHxD7csH90lkzfnmlpFk=; b=BtQXYYGnO4haciX5oVeripHvp3IRlgjwUsc9xTbG4fjuiK3z32xZHsDdF8HkpbLeyf +M0CrlVJAREa3892nYS4mmjV8+kmX74UUQkljW+4nilIR6lEkayTEB6ck5A77Hu5K3sn 9B+Ku3/2cSwDMEBQoNtfWemhSjneSsRXVUpdLG9lSch/Kb6gA4/CVdNIHe+R3erztDUz +t+X1hnyPWee+tIk4WsKqnlP18iXY0YdofCzFhZ9Q5RDu8ZSbEAF9TrWtoOg7m8LOd2p Dt87dDwOBwN5CbQ8Ys1ZdxA6n+ztzOnBR9QQR2zqiy3E9NgQyo9DRljCjx2/ZoKe2OGP s7EQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=lkYWTnvzlzOLz8TzZcl3b6dTHxD7csH90lkzfnmlpFk=; b=h2EuWdNkWsFMKntNP50xhHVULW4vsgAwqeJQH6CP+8fPaKpYgCfDvkTPdbHwwBqT+m HkQWbPsOb8uSTNztJA0UY8FeNzx5fCq4BFLJqAWsC6jQ0FX+jwgHAGkHI+ma2XEZY/Ns HnTclom5APL/nQ6/Hu1WZ2iIo/9Ke+LQBejRqdJk5pohmp+9hLnIVDnU8RrgBv1HlBD7 +cj6n7OYiIPot28bRWtTHGDY8TOXzfl3deye312xk1GEaSYjnJYMfrX+UAix3I6hxOoX MhjCTyrkdnNr3yWAJ33vZEKo4jP5Whv+uid6coByAVp5HEIUAYVH0IRFjgm/qC59EPcr W4gg==
X-Gm-Message-State: AOAM53210Wh5zDq72oQLj81xmAebIdsdFGivbPMDOuD2HI/3L7Z7FRYL 01ai7+ddGxDCU6JZ3bIhdALd47w8JvAaQDgXqZqJUShnGlqCzA==
X-Google-Smtp-Source: ABdhPJyrsntR5e/ISfHjf5EfmoPLd7jn30BV4cnkBkaE+4uduoNIOf42rnB26bvO5zjY2KwSwih3QBze3YBFfVqBLKg=
X-Received: by 2002:a92:d712:: with SMTP id m18mr10800568iln.127.1617357338714; Fri, 02 Apr 2021 02:55:38 -0700 (PDT)
MIME-Version: 1.0
From: Roberto Polli <robipolli@gmail.com>
Date: Fri, 02 Apr 2021 11:55:27 +0200
Message-ID: <CAP9qbHURF22ehJfQ3=8v1X07wueAcBUFG4HUq6KYda8NA+3=nw@mail.gmail.com>
To: oauth <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000a624b505befa59ac"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/IWvTY-FE7U-4hDt36D06b4R4gH0>
Subject: [OAUTH-WG] oauth-access-token-jwt: comments and clarifications
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: Fri, 02 Apr 2021 09:55:44 -0000

Hi Vittorio et al,

some considerations on oauth access token jwt follows.
You can see them here too
https://docs.google.com/document/d/1XsvBzGvhcY0N6vJNgLx6G1dJ5trvgwYRJA9F_NCakbU/edit

An example with client_credential grant type would be nice too.

My 2¢,
R.

§ 1.2  Terminology

+ The terms "Collision-Resistant",  is used according to Section 2 of
{{JWT}}.

§2.1 Header

- mentioning "none" alg can be redundant. I'd reference all the JWT BCP
instead.
- I'd add an example header, eg

~~~ example

{

  "typ": "at+jwt",

  "alg": "PS256"

}

~~~


§ 2.2.1 Authentication Information Claims

Is it worth mentioning the "implicit flow"?

§2.2.2 Identity Claims

- use the "Collision-Resistant" definition in {{JWT}}

§2.2.3 Authorization Claims

- " ... scope parameter..."  should `scope` be quoted?
-  "All the individual scope strings in the "scope" claim MUST have meaning
for the resources indicated in the "aud" claim."
^ otherwise the error returned is ...? Should we reference §4 here?

§2.2.3.1 Claims for Authorization Outside of Delegation Scenarios
- which are the delegated scenarios described in RFC7519? Do you refer to
"When using an administratively delegated
      namespace" ? It is not clear to a first-reader.

§3 Requesting a JWT Access Token
- an example with `client_credential` grant type would be great.
- iiuc `jti` is required, the example does not report it.

§4 Validating JWT Access Tokens

- the step about forbidding "none" is limitative WRT JWT BCP 8725