Re: [OAUTH-WG] Multi-Subject JWT (aka Nested JWT)

Rifaat Shekh-Yusef <rifaat.s.ietf@gmail.com> Thu, 11 March 2021 11:57 UTC

Return-Path: <rifaat.s.ietf@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 A3BC23A1A46 for <oauth@ietfa.amsl.com>; Thu, 11 Mar 2021 03:57:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.087
X-Spam-Level:
X-Spam-Status: No, score=-2.087 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, T_KAM_HTML_FONT_INVALID=0.01, 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 eDajF6m3o0_5 for <oauth@ietfa.amsl.com>; Thu, 11 Mar 2021 03:57:50 -0800 (PST)
Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) (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 14F653A1A44 for <oauth@ietf.org>; Thu, 11 Mar 2021 03:57:50 -0800 (PST)
Received: by mail-lj1-x233.google.com with SMTP id 9so1781764ljd.7 for <oauth@ietf.org>; Thu, 11 Mar 2021 03:57:49 -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; bh=MImkchlelmMkWJ/Wrs/QFTzA5AFMZKSqseHF3HojfjU=; b=uRkPSorAnS89AKAb7EU3rh7L7fNaF3RhIApnmaTHALOK9Ac196m3bmSJP+bPCpyvcn biJt3U54pTL0B9hKeesued8s41oQmadmzYitQ9KQcLatlVb1L6AYQMTAM+6RsP2yi7zp Isbd622rLFyqvFdMzgeoup6+zjfiQ5UxpXYl1FIVeIobRXIiqqm/GSaiKsHvyS4zYuMw I5FywKtIL6n2pSJTGSP+bbWJvlW1fay4BlYoKWXnaWb8A7NHZAuAFrI/Z/cKg9kUAuLT Q5xXnIHHJ/hWpwvNZy2skbBZAtJqCsVJSoNwLdZSXHFM09Rn+CjV5bOq9QN508qWfxeA Zdqw==
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; bh=MImkchlelmMkWJ/Wrs/QFTzA5AFMZKSqseHF3HojfjU=; b=cOhlspRBuob3suzd/pgyUw1Fhre8rEuWNyIZCkXnAh7444/VGj2lWglYHcgKmDuPK1 JJ5HiFKqwiWzoj3V9kuCiFvh2wu8cf5+6AABBu9vCpOXFt5yKwRaQCgbOLBu/aGU1mqX 4d0xp+Zv5UykJcw3z7HBnLZH1hFV37IRc7shzFyQtx7uQ9LXG/qQ1RvMwurDdkVs0+UK I5TphaU2DFLHENB1JpEBawqQ+2FvSniWn9LqzRVtCQXaxDdGbkHW4x/aaYRAvVjzq81U asCrM3jDwBstBhTDlJm+BQcM8TqGDaZ5Xv4vcuweB4ucRB8hvGnosYj9LSyEggyk9eS8 pLqw==
X-Gm-Message-State: AOAM533ZmmANB36uxQYpEaWemlQKU1026Iv24Talh8MA2588eLNo/5cV SrnxNjVyOUdK5QyM7Uj7uczPAP3GxJVnX/xVFH5afoo+jPQ=
X-Google-Smtp-Source: ABdhPJyPmOc6WyFAn0hJGfv+LhxcTr9OMIEikdYoNHbdYGXq3WfhY91jxaj6dwu8U4zYfuGPbRimXsJDT42h7bZxFxg=
X-Received: by 2002:a2e:7e0d:: with SMTP id z13mr4478808ljc.278.1615463865642; Thu, 11 Mar 2021 03:57:45 -0800 (PST)
MIME-Version: 1.0
References: <CADNypP8zyqf+GjtgcP-8mk7eJHv4_Spk1ZitJwvPJGzcmBYoag@mail.gmail.com>
In-Reply-To: <CADNypP8zyqf+GjtgcP-8mk7eJHv4_Spk1ZitJwvPJGzcmBYoag@mail.gmail.com>
From: Rifaat Shekh-Yusef <rifaat.s.ietf@gmail.com>
Date: Thu, 11 Mar 2021 06:57:34 -0500
Message-ID: <CADNypP-6bso63r_LKJWn36rfM4T4v=+QtUbUr5nJ8aFRR5s82A@mail.gmail.com>
To: oauth <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000dbf29105bd417de0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/5odNQv7oifSxhaIakA_IbFAJHc0>
Subject: Re: [OAUTH-WG] Multi-Subject JWT (aka Nested JWT)
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: Thu, 11 Mar 2021 11:57:53 -0000

I submitted a new version of the draft to reflect the focus on
Multi-Subject JWT:
https://datatracker.ietf.org/doc/draft-yusef-oauth-nested-jwt/

I would appreciate any feedback on this.

Regards,
 Rifaat


On Thu, Feb 18, 2021 at 7:26 AM Rifaat Shekh-Yusef <rifaat.s.ietf@gmail.com>
wrote:

> When I started working on the Nested JWT draft, I had a specific use case
> in mind (I no longer care about that initial use case).
> https://www.ietf.org/archive/id/draft-yusef-oauth-nested-jwt-03.txt
>
> I then dropped the ball on the Nested JWT draft, but every now and then I
> get some feedback, mainly offline, from different people about more use
> cases that clearly indicate that there is a need for a way to represent
> multiple subjects in one JWT.
>
> The following is a high level summary of these use cases:
>
>
>    1.
>
>    Primary subject with secondary authority subject
>
> A primary subject with a related secondary subject that has authority over
> the primary subject, e.g. Child/Parent, Pet/Owner.
>
> In this case, both JWTs would be issued by the same issuer.
>
>
>    1.
>
>    Delegation of authority
>
> A primary subject delegates authority over a resource to a secondary
> subject who acts on behalf of the primary subject.
>
> https://tools.ietf.org/html/rfc8693
>
> In this case, both JWTs would be issued by the same issuer.
>
>
>    1.
>
>    Multiple primary subjects
>
> Two primary related subjects e.g. a married couple
>
> https://www.w3.org/TR/vc-data-model/#credential-subject
>
> In this case, both JWTs would be issued by the same issuer.
>
>
>    1.
>
>    Replaced primary subject
>
> A primary subject becomes a secondary subject and replaced with a new
> primary subject.
>
> For example,
>
>    -
>
>    An original called number replaced with a retargeted number.
>
> https://tools.ietf.org/html/draft-ietf-stir-passport-divert-09
>
>
>    -
>
>    A number of network intermediaries that each become the primary
>    subject when receiving a message from a previous network element.
>
> https://networkservicemesh.io/
>
> In this case, the original JWT would be issued by one issuer and included
> as a nested JWT, while the enclosing JWT would be issued by a new issuer
> that has manipulated the original received message.
>
>
>    1.
>
>    Supporting JWTs
>
> One primary JWT with supporting JWT
>
> https://github.com/martinpaljak/jose/blob/main/README.md
>
>
> *Question*:
> Is the WG interested in working on such a mechanism?
> If yes, are there any more use cases that need to be addressed?
> Are there use cases that require more than two subjects?
>
> Regards,
>  Rifaat (no hats)
>
>
>
>
>