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

Andrii Deinega <andrii.deinega@gmail.com> Tue, 09 February 2021 20:38 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 D77D63A09E3; Tue, 9 Feb 2021 12:38:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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, 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 PXK80lzUOAfg; Tue, 9 Feb 2021 12:38:25 -0800 (PST)
Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 319483A09C7; Tue, 9 Feb 2021 12:38:25 -0800 (PST)
Received: by mail-ej1-x62c.google.com with SMTP id bl23so34038660ejb.5; Tue, 09 Feb 2021 12:38:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WAfPLsWRF8lL1omjMzWM2nG5kUgKmHgPA9FmnLYMjvs=; b=eSRqvXrxiv2kk4PceMz/prnQsPMbJjxDrA7Oa6svkBmLny1XCZpknW1Rt8YFh12aVX QmZSM0xjNLU+CoFkk2sFlVZcSDYIYlIasRkOWYfoa+m29C9HFs5ieGMEsDx5tm3GNiOE xjHTt6FR0JlORLVnUV6Cg/TDj1juuKvt1hxjmQur3Rrdt+rf03ZNy6a4/j2qz4eM00lj 3Gqrre8E2Bh1MUyloYGVm1aWfJ+4CIFTWE2A6N1xUxDggqs0dRUob2O9rruUkvzVjE0x vDBwAtI0SKWo7Wo2xYWzvghrjBHFwq3DolhBNTsatWIC7coUcsHxuLMBzpm27b7Thapz atrg==
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=WAfPLsWRF8lL1omjMzWM2nG5kUgKmHgPA9FmnLYMjvs=; b=OSwhmaOfhCBcJi3ORl/SHtRup+m4FAxSrFGrZ6w1BcTV2rfKFeAQWSGjbOtHnwvszO KO1UsKrwfCPT7c5J9DNqL+K6bJYPrXvj43DO/XNLQY3tnnQDq3y2APEw1TmZq1gH4/Wn W1I5wS+x5TVo3z6gIFeZlVCykOOI8wyuOoLEeSUgvj1SjfCwAiyjbWfwnSkmdA+tTWGi cWGVzwW93qkB2IFrBE6OV8cHzBfA47pZYp6i/2Hkm/pAjvBkS1t9CDDVYnjFaPeyRp28 fEbD6aCreOfd5f++3gFFx7ScGb2d4e731jBuoMJ+S0v9zyzYHlgt3+o9Z10O6wwOKgLK 4XEA==
X-Gm-Message-State: AOAM531/oRwZzFPw9HIIILr/ZZR6IgttedfGJhsspi2lZcF1QBmXNg1+ wxrgaBIBdWXEBbRUXTh35sS1z1rLYJy0EkSLmaA=
X-Google-Smtp-Source: ABdhPJwnahUXwbdhBfRjGusioBZUIkakcAfQKW4JZcOOOqCNkjAvihtqr4GGwGDSL0mrbA32PJeA4WO8EFUUJQRQxIk=
X-Received: by 2002:a17:906:547:: with SMTP id k7mr24315989eja.273.1612903103548; Tue, 09 Feb 2021 12:38:23 -0800 (PST)
MIME-Version: 1.0
References: <CALkShctQxb2M=c_u99VbMw1dHSbyNfC__eARgcKFoFpmj87c3w@mail.gmail.com> <BBF3CC22-557F-4816-ADB3-E0B8D45E1BBB@forgerock.com>
In-Reply-To: <BBF3CC22-557F-4816-ADB3-E0B8D45E1BBB@forgerock.com>
From: Andrii Deinega <andrii.deinega@gmail.com>
Date: Tue, 09 Feb 2021 12:38:12 -0800
Message-ID: <CALkShcsnubMRK4_F7rcUF-g1_=Sukux9W=dsjQMP3CpwUXvBww@mail.gmail.com>
To: Neil Madden <neil.madden@forgerock.com>
Cc: oauth <oauth@ietf.org>, draft-ietf-oauth-jwt-introspection-response@ietf.org
Content-Type: multipart/alternative; boundary="0000000000008b4f1805baed4494"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/SkjkwEKTxbKl-QXvK55OdDasoBY>
Subject: Re: [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 20:38:27 -0000

How can you guarantee that there are always direct TLS connections between
a client and an AS hosted say some cloud provider where you have a little
control on their infrastructure?

Even without all those cloud providers, how can you guarantee the same when
there are a bunch of different (software and hardware) components that
legitimately perform SSL offloading / DPI in front of an AS...  or the
client may just use the proxy server?

Regards,
Andrii

On Tue, Feb 9, 2021 at 12:43 AM Neil Madden <neil.madden@forgerock.com>
wrote:

> On 9 Feb 2021, at 06:55, Andrii Deinega <andrii.deinega@gmail.com> wrote:
>
>
> 
> 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
>
>
> ID tokens involve flows using an insecure channel (the browser). This is
> not the case for introspection requests which happen over a direct TLS
> connection and so are already protected against replay attacks.
>
> — Neil
>
> ForgeRock values your Privacy <https://www.forgerock.com/your-privacy>