Re: [OAUTH-WG] Conflicting definitions in JWT Response for OAuth Token Introspection

Filip Skokan <panva.ip@gmail.com> Mon, 02 March 2020 07:26 UTC

Return-Path: <panva.ip@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 CA3813A089F for <oauth@ietfa.amsl.com>; Sun, 1 Mar 2020 23:26:01 -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 rZi8gBLJN5YE for <oauth@ietfa.amsl.com>; Sun, 1 Mar 2020 23:25:59 -0800 (PST)
Received: from mail-yw1-xc2b.google.com (mail-yw1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) (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 99FBD3A088F for <oauth@ietf.org>; Sun, 1 Mar 2020 23:25:59 -0800 (PST)
Received: by mail-yw1-xc2b.google.com with SMTP id y72so10364899ywg.3 for <oauth@ietf.org>; Sun, 01 Mar 2020 23:25:59 -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=wZYLBmWLEKtVynA+Ht72cqfYG07FMajQCLSnmvlYIaI=; b=ncQJ//fa0dhYE8dP0bnPYWvMxWOeV3LSVvszI3DExBvnxsqg7Na7DDX/5tNA5vG5yi ZcTx3JokVG4LhnPqZt8SF7p1Y2RYYxXY+V/UQSKwjIYxcee7+VMGiOIPlitaHf77FviW Ivk/xrBjZKaNfM6XkSWsL/FLopnr0+9JXl3eOZpZTNl9LisF56yDdlo+p18CFjZd2H/P Ir6Y3YaZP8kp4mmaP40J9O6J7UrWUprUcJdedgz/rJA8BpWAwB9MC+2nTAeJxWKP4wDb BE5L3Guqe7fcujlA2rw/ZaXsbfhRmW+G0kr9FMD8kicGAfmoW9MUbGbf8IcYlm5j2REJ Nyvg==
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=wZYLBmWLEKtVynA+Ht72cqfYG07FMajQCLSnmvlYIaI=; b=aHqbpOhATu0Unzpc567SEoMT5kz+JXIhWJ5pHmEQWQ2KB/pdt8vhNsnKvCWcFyhglb lnQHYyS0BIypJHgEsgPs3G28H400uOW7l9KtygQ3xOIWhPd1CbpHfnaik4LQCW+eZM9G XJCP2HuxeZstCx76Cg4tvsKjWxVP4mLXuG1A76laidsTwaiciewyKXpjstKykL8EtfYB DXzvNSZtC3RnDuVV2XLt36JmLuZ7oBRDudzCsFJhpeKRSuvK+pCiI0sZ8+h8V2iFwQPJ xe/uhm4W8t36QoZ9ovz3dH51KwAsuzOudCm/LZbThKbty289uSJ5EumzfMLOzGVGunxz 9ZSA==
X-Gm-Message-State: APjAAAVm7wCvtyDo1edS4EVPuC5V4VcW2oSJb9WDefDQGAUO8kgHyNZg Pxss8RD7u9Xlm2hHNfjtsNoLnNDqHi8U0rOfAGFKK0E=
X-Google-Smtp-Source: APXvYqw/uz09bcD8VgKPg3iTW+iQOxti8kRMvmSK2/T4ClQw43o31pFQeHU4Gb5aDMypZpwLUKWarmXiyFV67h3H6dU=
X-Received: by 2002:a81:61c1:: with SMTP id v184mr15798792ywb.481.1583133958557; Sun, 01 Mar 2020 23:25:58 -0800 (PST)
MIME-Version: 1.0
References: <CAHdPCmPCMJqH-aOC2SjFhGd9sjd01xw=VEj5y1jA5nRNRhu4EA@mail.gmail.com> <CAHdPCmMP5=wQSq_YW3+honto==s_bZpCas+=bxJqfqJh24gTzQ@mail.gmail.com>
In-Reply-To: <CAHdPCmMP5=wQSq_YW3+honto==s_bZpCas+=bxJqfqJh24gTzQ@mail.gmail.com>
From: Filip Skokan <panva.ip@gmail.com>
Date: Mon, 02 Mar 2020 08:25:22 +0100
Message-ID: <CALAqi_-Nj6rfFJThH3H-r1oivKCFFW3Wwhhfbephq4f9OMTTQw@mail.gmail.com>
To: Takahiko Kawasaki <taka@authlete.com>
Cc: oauth <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003b55a2059fda19cd"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/8fmzuMNfD9AG3wQWFfAF3NOMuYg>
Subject: Re: [OAUTH-WG] Conflicting definitions in JWT Response for OAuth Token Introspection
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: Mon, 02 Mar 2020 07:26:03 -0000

Perhaps we should consider leaving the root level JWT claims as-is per JWT
and push the introspection response unmodified as if it was regular json
response to a JWT claim called "introspection". Since regular introspection
uses the same claim names as JWT this would get around all the conflicts.

Last time i brought it up the authors didn't want to consider it because of
existing implementations.

S pozdravem,
*Filip Skokan*


On Mon, 2 Mar 2020 at 07:52, Takahiko Kawasaki <taka@authlete.com> wrote:

> Thank you, Tatsuo Kudo, for showing me that Justin Richer expressed the
> same concerns in this mailing list about 6 months ago (on Sep. 4, 2019).
> RFC 8707 didn't exist then, though.
>
> *Re: [OAUTH-WG] Question regarding
> draft-ietf-oauth-jwt-introspection-response-05*
> https://mailarchive.ietf.org/arch/msg/oauth/LmMAxd35gW5Yox0j4MmU2rI_eUA/
>
> A JWT puts both (a) information about itself and (b) other data in its
> payload part. When the "other data" have the same claim names as are used
> to express information about the JWT itself, conflicts happen.
>
> Also, it should be noted that Ben pointed out in other thread that the
> requirement for "jti" in draft-ietf-oauth-jwt-introspection-response, which
> says "jti" is a unique identifier for the access token that MUST be stable
> for all introspection calls, contradicts the definition of "jti", which
> should be unique for each JWT.
>
> *Re: [OAUTH-WG] Benjamin Kaduk's Discuss on
> draft-ietf-oauth-jwt-introspection-response-08: (with DISCUSS and COMMENT)*
> https://mailarchive.ietf.org/arch/msg/oauth/S4q7cF0TMZMzFO61I5M4QXCUWCM/
>
> draft-ietf-oauth-jwt-introspection-response needs to be modified to solve
> the conflicts.
>
> Taka
>
> On Sun, Mar 1, 2020 at 4:10 PM Takahiko Kawasaki <taka@authlete..com
> <taka@authlete.com>> wrote:
>
>> Hello,
>>
>> I'm wondering if the following conflicts in "JWT Response for OAuth Token
>> Introspection" (draft 8
>> <https://tools.ietf.org/html/draft-ietf-oauth-jwt-introspection-response-08>)
>> have already been pointed out.
>>
>> RFC 8707 <https://tools.ietf.org/html/rfc8707> (Resource Indicators for
>> OAuth 2.0) requires that 'aud' in an introspection response hold the values
>> of the 'resource' request parameters, whereas "JWT Response for OAuth Token
>> Introspection" says that 'aud' MUST identify the resource server receiving
>> the token introspection response. The definitions conflict.
>>
>> RFC 7662 <https://tools.ietf.org/html/rfc7662> (OAuth 2.0 Token
>> Introspection) requires that 'iat' in an introspection response indicate
>> when the access/refresh token was issued, whereas "JWT Response for OAuth
>> Token Introspection" says that 'iat' indicates when the introspection
>> response in JWT format was issued. The definitions conflict.
>>
>> Best Regards,
>> Takahiko Kawasaki
>> Authlete, Inc.
>>
>>
>>
>> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>