[OAUTH-WG] JWT Response for OAuth Token Introspection and nonce

Andrii Deinega <andrii.deinega@gmail.com> Tue, 09 February 2021 06:55 UTC

Return-Path: <andrii.deinega@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 B65C93A1183; Mon, 8 Feb 2021 22:55:42 -0800 (PST)
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, FREEMAIL_FROM=0.001, HTML_MESSAGE=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=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 pCwqF_EVqlnp; Mon, 8 Feb 2021 22:55:40 -0800 (PST)
Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (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 396FF3A1176; Mon, 8 Feb 2021 22:55:39 -0800 (PST)
Received: by mail-ej1-x633.google.com with SMTP id sa23so29679667ejb.0; Mon, 08 Feb 2021 22:55:39 -0800 (PST)
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=C7R1xLeZmI8japrShi58F4YHG5Y/KuQTBAy3EPnVq7Q=; b=KfAN5wy21p8ftZL9JTLU9vqLkvBFXDIWVgMTVkdl6z+0xfPS1LjX95FuYkHTBHMj8l GzrqNorjlKa3OnURwkM4/+VDkTdmdCEfKxrcCJ4TlXLIMSPmVTuuGfUtn4RZxXdv/EWL vwJQ4npfRie7N+FGh6jWEC2tZ2L1kqPvR5ukWBuizPv+z5mlJ4vzCZU2UJ3X76+FAsfW KmeDsHxr3ml7uM83AqNyt4ZPUrz9PNVzTaMIOdcP5IJ4mvOp7k0KrEu5NurPk0JN9Af+ Y6/X8Ne06mCGFTpyhag0BZ1m6WnUUEZw2y8OX9Rbe7p1BhdN3jD+XOS+pyCLnKvWL4Qd l5FA==
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=C7R1xLeZmI8japrShi58F4YHG5Y/KuQTBAy3EPnVq7Q=; b=eV84m78kJt2lnP3hLuyEpc7QwejDmsHh+AoIZPLFMmnB9yL+BvBktQcFTB0Doxuuso 5smNGbtQsmJbw32hJUdW6EKPuUCSp7gsTAvpaHS8nsTtPJHSZ19cLRM7UkoIVafnHxfu cROk0bzBuk/5M2+Rrt9u3r0Hcgpb5WN4WpIYs3V75e8oIGTalR0v0p1Wr1RrE/ZHMWyH fdoLJyUWSJRAz81PH0Ww5z8xGdDHHHNK+51mE+h+n2N2y1a+wPXBWETRv//D38WrICFG ykuM0B8Svjye9HaUFlmch4/BFyY3qc8wMp8o0umIkSq+P8Jf0DfWhH38SayWze7EY24n xrJw==
X-Gm-Message-State: AOAM532aoLPZ1LHDUZEzLU/AVEuy5FPLFKWC+9OkBqWhouc6P6ASjMR+ EJtFXMg76FH08CxCCEexyug4xUYj7tsEcV8rWlsbzTcxw6s=
X-Google-Smtp-Source: ABdhPJwqHcFAlHnJaPBts3cu2sZKsG5pDu5vP2oNMnLMDjPMwqdhKZGJoSp8pwpTgKho64kYREhPAbfjir81KpZ6iF0=
X-Received: by 2002:a17:906:259a:: with SMTP id m26mr21173627ejb.399.1612853738364; Mon, 08 Feb 2021 22:55:38 -0800 (PST)
MIME-Version: 1.0
From: Andrii Deinega <andrii.deinega@gmail.com>
Date: Mon, 08 Feb 2021 22:55:27 -0800
Message-ID: <CALkShctQxb2M=c_u99VbMw1dHSbyNfC__eARgcKFoFpmj87c3w@mail.gmail.com>
To: oauth <oauth@ietf.org>, draft-ietf-oauth-jwt-introspection-response@ietf.org
Content-Type: multipart/alternative; boundary="0000000000002661c405bae1c60e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/6VVigbCu2CCli_ZuLYbPKbtcDUc>
Subject: [OAUTH-WG] JWT Response for OAuth Token Introspection and nonce
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: Tue, 09 Feb 2021 06:55:43 -0000

Hi WG,

I wonder if there are any particular reasons to not make nonce a mandatory
parameter for the current JWT Response for OAuth Token Introspection draft.
Or, at least, force an AS to include the nonce claim in a JWT response when
nonce is presented in the introspection request similar to what happens
with the similar scenario in the OpenID Connect ID Token?

https://openid.net/specs/openid-connect-core-1_0.html#:~:text=If%20present%20in%20the%20Authentication%20Request%2C,value%20sent%20in%20the%20Authentication%20Request.

This will allow to mitigate replay attacks because clients can correlate
the response with the initial request.

Regards,
Andrii