Re: [OAUTH-WG] draft-bertocci-oauth-access-token-jwt-00

Vittorio Bertocci <Vittorio@auth0.com> Mon, 06 May 2019 19:22 UTC

Return-Path: <vittorio.bertocci@auth0.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 92A6D1200F5 for <oauth@ietfa.amsl.com>; Mon, 6 May 2019 12:22:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=auth0.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 33qxeLW-kniG for <oauth@ietfa.amsl.com>; Mon, 6 May 2019 12:22:34 -0700 (PDT)
Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (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 B2D221200E6 for <oauth@ietf.org>; Mon, 6 May 2019 12:22:33 -0700 (PDT)
Received: by mail-lf1-x12c.google.com with SMTP id j11so10002839lfm.0 for <oauth@ietf.org>; Mon, 06 May 2019 12:22:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=auth0.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3Cb9Rav1uYwKKiRwmu+WAaqOWa32L21GsCzn34yCrhA=; b=nVuVu8OGlMbNY+GcWcRRfrp4cQunOQwqhudkwz2qbotn9EEy1d8DtcvQVNQ09CVJA4 HUOzUAhMzuYgwErOYxMErfKwHQqmq2hIicuAe/QkRGn5wQ0XEIihHFvB5PJKmVRaqwU4 SWTn063TtmfcqU3qKUU749E+5seI6F9/5Oh4A+rOMwZnMUpbZNjT/Eo5dmlO7LplQ1fW JIknXcpbWdD0hWzqMjeVzHL7cPLCX22Fv41AiA2Dv+cGDCMtFjzUhUDSq7qaTBQYKhNV dpVCK+mNLaj4BJYGEIEROGpxxSgvA9NnhZlwNnoFnZRfDjSIGSjbW3vx7Qr9Ei4HqhIK pO9w==
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=3Cb9Rav1uYwKKiRwmu+WAaqOWa32L21GsCzn34yCrhA=; b=iP9soIgNOAt2opN1tA4g/tX1zP7ZS6DJvp6tdKbxq1Rq7q5BiSPDqtuYawbwk4VM/k O5cUvJ2wa57aUOaQrz9bX9njry6LKG9GyLoJLxRHMDQJD/br/i/ldmgD3DxDqJBra5MU 4DOmRJGMehb+ZHCsaO51J1LbpbM6hObD/VwVFpI0SG5KC9OCmJ6bsR6VywmFis9cAk05 uLn1PTkYpNkwvPpnpDYeG2T8/KXMmo0F6ho1Sz/zm06UH5k+0owP90pP79jfzuX9kQ2t +dGDr5OUxbANdEMtqaKL8Z7CoSocw41pUzZB8JgAKCYITlO8a+n2he3QMdk9Sns9YXeG eQUg==
X-Gm-Message-State: APjAAAViVxr6nOGQMVqKY9T8FjxGvVsBYwl+3V6L34HsqzW1wl5NHf5z Hqf4ByrBwpjRQSHkkrRH0AJHGlcqq7hkI7idZ9021Fefn3k=
X-Google-Smtp-Source: APXvYqy08z6q17ugbMNNylwQjbw/+KJQV+afHl7NwQ+Wwpia+UDBXaJvKKfp1f5p47W7oPCfmZiH3/9qs1Qclx10Ewg=
X-Received: by 2002:a19:d115:: with SMTP id i21mr831110lfg.60.1557170551704; Mon, 06 May 2019 12:22:31 -0700 (PDT)
MIME-Version: 1.0
References: <CAO_FVe6eWy3zppQAij7qxD+ycYL8ebqGJKG0y-A7GhN+0=kb4g@mail.gmail.com> <D610AAEA-892F-4AAD-915D-A0C068F5BFD3@gmail.com> <CAO7Ng+sqzw4O2vt+iCWegBWBGg+-oyqV1j8dF7ADK2TbPec_CQ@mail.gmail.com> <CAHsNOKewL9xCFt6SsP4dz+W0CN_NUZaGMJahF7mSgos_Xbnhhw@mail.gmail.com> <CAO_FVe7c6jLRJ8mD7gw=a6NY3oZcgCh_b5dR8uRXa6Q2c2gmGg@mail.gmail.com> <CA+iA6uje229zrAos3c1TCuJEM+2vmVifNQ2FnKDuj2T4ET2SYA@mail.gmail.com> <a34edf0e-012a-ecc9-e547-3cdc61dca5a4@aol.com> <CA+iA6uh6Q901wEaqGSK7An0z0_iJTjCfvPVN44Qwpb=M_rDONg@mail.gmail.com> <239f40ab-da4d-03fe-4524-0b21a0bcc63e@aol.com> <SN6PR00MB0304BC3C7D438F8A5715B36DF5500@SN6PR00MB0304.namprd00.prod.outlook.com> <CA+iA6ugr+xPfeTFXK2gGBFX8Yw+zGArGfav=Ci5A3qNYUqB7rw@mail.gmail.com> <SN6PR00MB030459810B40D98370728BBAF5500@SN6PR00MB0304.namprd00.prod.outlook.com> <CA+iA6ug1NOpMcPsSr8o24CM3xWy-3z_pxiZhiyPeKxvScMACmg@mail.gmail.com> <CAO_FVe4AP5aWgXAAGj1QxPDFPjyfeaZGWd-b5azrz=ajuHuJdQ@mail.gmail.com> <3ec04cf7-e0ed-2b9a-20f7-a94dea4d559b@connect2id.com>
In-Reply-To: <3ec04cf7-e0ed-2b9a-20f7-a94dea4d559b@connect2id.com>
From: Vittorio Bertocci <Vittorio@auth0.com>
Date: Mon, 06 May 2019 12:22:23 -0700
Message-ID: <CAO_FVe6sLxbkk0tEjH5sb8k36q4_sJLU6HAgU05fAqOGaqo8MA@mail.gmail.com>
To: Vladimir Dzhuvinov <vladimir@connect2id.com>
Cc: IETF oauth WG <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000096f24105883d05a4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/RNoIQmh4HVajTNHcIoegeDZsYL4>
Subject: Re: [OAUTH-WG] draft-bertocci-oauth-access-token-jwt-00
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, 06 May 2019 19:22:37 -0000

It is true that the grant_type is a client side consideration. I did think
about the "client_id==sub" heuristic, but that's not always applicable:
many systems have their own rules for generating sub, and in case they want
to prevent tracking across RSes the sub might be generated ad-hoc for that
particular RS.
Would you prefer to have a dedicated claim that distinguish between user
and app tokens rather than reusing grant_type?

On Mon, May 6, 2019 at 12:16 PM Vladimir Dzhuvinov <vladimir@connect2id.com>
wrote:

> On 06/05/2019 20:32, Vittorio Bertocci wrote:
> > To that end, *Karl MCGuinness suggested that we include
> > grant_type as a return claim, which the RS could use to the same
> effect*. I
> > find the proposal very clever, and the people at IIW thought so as well.
> > What you think?
>
> The grant type is not something that the RS is really concerned with, or
> should be. Introducing this parameter in the access token will create an
> additional logical dependency, plus complexity - in the system of
> client, AS and RS as a whole, as well as for RS developers. The grant
> type, as a concept, is a matter between the client and AS, and IMO
> should stay that way.
>
> Clear language in the spec should suffice. For instance: "If the sub
> value matches the client_id value, then the subject is the client
> application".
>
> Vladimir
>
> --
> Vladimir Dzhuvinov
>
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>