Re: [OAUTH-WG] New Version Notification for draft-lodderstedt-oauth-jwt-introspection-response-00.txt

Neil Madden <neil.madden@forgerock.com> Wed, 28 March 2018 15:42 UTC

Return-Path: <neil.madden@forgerock.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 288FD127369 for <oauth@ietfa.amsl.com>; Wed, 28 Mar 2018 08:42:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=forgerock.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 0_Py2UkHIZcx for <oauth@ietfa.amsl.com>; Wed, 28 Mar 2018 08:41:58 -0700 (PDT)
Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (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 782C8120047 for <oauth@ietf.org>; Wed, 28 Mar 2018 08:41:57 -0700 (PDT)
Received: by mail-wr0-x22f.google.com with SMTP id p53so2667926wrc.10 for <oauth@ietf.org>; Wed, 28 Mar 2018 08:41:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=forgerock.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=apvO8QymRLIF3OWltW3ta86MwrkMQZTxUENNpEQaLK4=; b=MV+0m+Aq4ToTQmTsk6b7t8Ssum2aNAMtMhG+TJMDhGPTQIjnprGoP+WhVM+mV3N7tD 7uln0WIJrV3L5g4nfS7UjKMF7Ol7WgrxxzG7opyFdEroK+5XK8xLNHSstNBEnfaNsR1L i3RudBHcMgnAsPfFUuCzBRefWY1i0+zfg+ngA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=apvO8QymRLIF3OWltW3ta86MwrkMQZTxUENNpEQaLK4=; b=BWjI+o6Xl3gLzaBtF+D2xPJvwAajT0YSYnpblJ2sHlB/G0b0nLMKlsj1CcLEzROOEm PWsu1UBayukMQPP5UdcfaBlSHpXsCH9SFvY6ec00klNxofvh9PZOEeg6CoYW3CivmmOY HzqcofwBPEdmdE2GGMZiWDt397chgnbpH4yAOVYCq4mW/fOG0hYh/2ctGUnzY37mqw2f C7DGr0UyAjysDuFylp3dUW3XyRo019zCj5Kgz4dyF4+pZYkEFEzg+9x9AmT81KQamIau nhHWZqD7XoSL6up5Qvp2Rwaivu8cE1AZH2syagCDMOspNAkiIR+fUnMeI9QH1CIERyrl g+oA==
X-Gm-Message-State: AElRT7FmwVtvGOzwO/tRsVHepJoSkjPl+p/Tynn9E3jPp46S8wUPet3/ bWSSxXUdK0BIeZ7LwIOOZlu0WjRLmic=
X-Google-Smtp-Source: AIpwx49Rz3X4w1u7FpKEt5BK+Euf/F3w9Q6sEpZUZT4fKHn4pC7p7s5FYWdNdmX2ISTg/CdVFq3Tlw==
X-Received: by 10.223.158.6 with SMTP id u6mr3399391wre.142.1522251715835; Wed, 28 Mar 2018 08:41:55 -0700 (PDT)
Received: from guest2s-mbp.home (148.199.93.209.dyn.plus.net. [209.93.199.148]) by smtp.gmail.com with ESMTPSA id l22sm5423064wmi.39.2018.03.28.08.41.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Mar 2018 08:41:54 -0700 (PDT)
From: Neil Madden <neil.madden@forgerock.com>
Message-Id: <1452DCC9-3D8A-42E5-94A4-87B5D2B291AC@forgerock.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_8B3DE103-8BE9-4A9E-802B-05B795F66E65"; protocol="application/pgp-signature"; micalg="pgp-sha256"
Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\))
Date: Wed, 28 Mar 2018 16:41:50 +0100
In-Reply-To: <2A1E98B8-973E-44F0-96F0-E319FD6969A8@lodderstedt.net>
Cc: oauth <oauth@ietf.org>
To: Torsten Lodderstedt <torsten@lodderstedt.net>
References: <152140077785.15835.11388192447917251931.idtracker@ietfa.amsl.com> <2A1E98B8-973E-44F0-96F0-E319FD6969A8@lodderstedt.net>
X-Mailer: Apple Mail (2.3445.5.20)
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/jkk5EU4uboeGzAxmyJAanZ0JLCI>
Subject: Re: [OAUTH-WG] New Version Notification for draft-lodderstedt-oauth-jwt-introspection-response-00.txt
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 28 Mar 2018 15:42:01 -0000

I like this draft, but I want to clarify if it is intended that the response JWT could be interpreted as an OpenID Connect ID Token? As the set of claims can overlap (in particular, all required ID token claims are valid token introspection response fields) and it seems highly likely that an AS will use the same keys for signing both (and it definitely will when the client_secret is used for signing), the signed response JWT could well be indistinguishable from an ID token (for the resource owner) with some additional claims.

If this is not the case, then maybe consider adding a “crit”: [“scope”] claim to the response (https://tools.ietf.org/html/rfc7515#section-4.1.11 <https://tools.ietf.org/html/rfc7515#section-4.1.11>) to indicate that the scope claim must be understood.

I can think of one potential use-case (I’ll let you decide the merits of it) where it might actually be useful to explicitly allow the response to be an ID Token. Consider an application (RS) that uses a traditional authorization model: it authenticates a user, sets a cookie, and then based on who that user is makes dynamic access control decisions to see what they are allowed to do (e.g., ACLs, RBAC, whatever). An easy way to upgrade this app to modern standards would be to replace the home-spun authentication system with OIDC, but leave the rest in place. Now the system uses OIDC to authenticate the user, sets the ID token as the cookie, and then still applies the same access control decisions that it always has done.

Now imagine that a new requirement comes in to support OAuth 2.0 access tokens to allow delegation to third-party apps. A really simple way to achieve that would be to put a filter/reverse proxy in front of the RS that extracts access tokens coming in, performs signed JWT token introspection against the AS to validate the token and then checks the the scopes are appropriate for the request. It can then simply replace the access token in the original request with the signed token introspection response (as ID token) and forward it on to the original RS server. As the introspection response is a valid ID token for the resource owner, the RS will then apply all its normal access control checks to ensure that the resource owner actually has the permissions that they have delegated to the client.

I think potentially that is quite an interesting application of this draft, but I don’t think it was intended! I think probably a decision should be made as to whether that kind of usage should be allowed and explicitly adjust the draft to either allow or deny it. If it is allowed, then possibly there should be a way for the caller to hint that they want the response to be a valid ID token.

Kind regards,

Neil

> On 18 Mar 2018, at 19:33, Torsten Lodderstedt <torsten@lodderstedt.net> wrote:
> 
> Hi all,
> 
> I just submitted a new draft that Vladimir Dzhuvinov and I have written. It proposes a JWT-based response type for Token Introspection. The objective is to provide resource servers with signed tokens in case they need cryptographic evidence that the AS created the token (e.g. for liability).
> 
> I will present the new draft in the session on Wednesday.
> 
> kind regards,
> Torsten.
> 
>> Anfang der weitergeleiteten Nachricht:
>> 
>> Von: internet-drafts@ietf.org <mailto:internet-drafts@ietf.org>
>> Betreff: New Version Notification for draft-lodderstedt-oauth-jwt-introspection-response-00.txt
>> Datum: 18. März 2018 um 20:19:37 MEZ
>> An: "Vladimir Dzhuvinov" <vladimir@connect2id.com <mailto:vladimir@connect2id.com>>, "Torsten Lodderstedt" <torsten@lodderstedt.net <mailto:torsten@lodderstedt.net>>
>> 
>> 
>> A new version of I-D, draft-lodderstedt-oauth-jwt-introspection-response-00.txt
>> has been successfully submitted by Torsten Lodderstedt and posted to the
>> IETF repository.
>> 
>> Name:		draft-lodderstedt-oauth-jwt-introspection-response
>> Revision:	00
>> Title:		JWT Response for OAuth Token Introspection
>> Document date:	2018-03-15
>> Group:		Individual Submission
>> Pages:		5
>> URL:            https://www.ietf.org/internet-drafts/draft-lodderstedt-oauth-jwt-introspection-response-00.txt <https://www.ietf.org/internet-drafts/draft-lodderstedt-oauth-jwt-introspection-response-00.txt>
>> Status:         https://datatracker.ietf.org/doc/draft-lodderstedt-oauth-jwt-introspection-response/ <https://datatracker.ietf.org/doc/draft-lodderstedt-oauth-jwt-introspection-response/>
>> Htmlized:       https://tools.ietf.org/html/draft-lodderstedt-oauth-jwt-introspection-response-00 <https://tools.ietf.org/html/draft-lodderstedt-oauth-jwt-introspection-response-00>
>> Htmlized:       https://datatracker.ietf.org/doc/html/draft-lodderstedt-oauth-jwt-introspection-response <https://datatracker.ietf.org/doc/html/draft-lodderstedt-oauth-jwt-introspection-response>
>> 
>> 
>> Abstract:
>>   This draft proposes an additional JSON Web Token (JWT) based response
>>   for OAuth 2.0 Token Introspection.
>> 
>> 
>> 
>> 
>> Please note that it may take a couple of minutes from the time of submission
>> until the htmlized version and diff are available at tools.ietf.org <http://tools.ietf.org/>.
>> 
>> The IETF Secretariat
>> 
> 
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth