[OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD-JWT architecture feedback)
Rohan Mahy <rohan.mahy@gmail.com> Sun, 22 September 2024 16:51 UTC
Return-Path: <rohan.mahy@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 ADE15C14F6A0 for <oauth@ietfa.amsl.com>; Sun, 22 Sep 2024 09:51:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.104
X-Spam-Level:
X-Spam-Status: No, score=-7.104 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_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8iE1SNqhH3en for <oauth@ietfa.amsl.com>; Sun, 22 Sep 2024 09:51:23 -0700 (PDT)
Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B5EC6C14F602 for <oauth@ietf.org>; Sun, 22 Sep 2024 09:51:23 -0700 (PDT)
Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a90349aa7e5so523642166b.0 for <oauth@ietf.org>; Sun, 22 Sep 2024 09:51:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727023882; x=1727628682; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2HV+IBeLi6Bzj2D8qPlbDlFWcZDcbaNTGO7km+ZRscE=; b=E+tZNA6fQ10h+U8zMW6940HFXKlKaC33JqSSnB6VhkVMqE+y7IdqOyVDVccwl7YCuR wC8eqVDHgf2U8M53z+CGdaf4a8gc4hcqWMSEZfDD7Inij5oNPm0zRhCi/LH79WdnP30r okK4/Z0tIklKZ+pCnbFrk0BvCUAtL1NLwCnoskJ3O5A7c1usGDiaQYBM7RXR6RfyMTW1 yeVfvTT6CQ5EsDvMY3JGC8kXf1kmWI7fa8hUu1WPjbHPp0S/zJug7JBH+HB/funDRZyl WbH8t4IeGslyZaecHJ+sxJ7nKurq+9pBFg33F8XecaxxeonydZjeQBkhievA5PgXsXoB rqQQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727023882; x=1727628682; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2HV+IBeLi6Bzj2D8qPlbDlFWcZDcbaNTGO7km+ZRscE=; b=VHmhuZ8f2Tto4u1p63zoohkc7Sa323G5pj9Fb0xSoJa0b9/8lpcl20z0kVA5skOCK3 0Nm3AEH50yLdaa3XKQ/wHKoKY+vX8cu6xZJb5xyB+cH6UVLwI/FUxf3vVzrsT+Ha6/vg OxMXRDyjc1LdAOyFkBzI2x7yxp4RyZGjtBMzD9aIUxEnO6Ep9wC+ZJ3WK2+piEyLEk0o W2sjbL8s67uqgA66COjpRFtFsXDPZEKSzjRK536c47twUvZ2HVe/7HqhKJkqhrUjgjIT USaIy+4P5XooNLDXAspn8VB7nBSVVqHbMGdKVwdw1Z8DHVX4m9LF9XdDK2nuJigo5hvQ a1IQ==
X-Forwarded-Encrypted: i=1; AJvYcCX652t1jfhfStJUZAeOLYhgZyS9v82wjUuxqpJIT8stwDry5Q/sBC+k+ba77BOwmZnpV5WJAQ==@ietf.org
X-Gm-Message-State: AOJu0Yw1W6EBi1L+WVKJuLs1JSeWlaJcVHy3MmFpvDBGZRQ59BY74LEj BC2Bw1Dd8JukrzJziGaRUnSDJAMA2hKcIQ3rL8jF04oidlKSkmn+DB6yT0ilnu4xH63ItlKWFDy L5qAB7h36LbROuGYDS1Sh5u4WjUA=
X-Google-Smtp-Source: AGHT+IF5skGQ1l5kFpOZm+4EmZqi+cdSxUHRWFU2PXQBmV5MWtS797/n/phBaHV9jwmT96SE9JgBKtZpH5MrAaMXOy8=
X-Received: by 2002:a17:907:25c2:b0:a8a:780f:4faf with SMTP id a640c23a62f3a-a90d5925392mr778066566b.47.1727023881916; Sun, 22 Sep 2024 09:51:21 -0700 (PDT)
MIME-Version: 1.0
References: <CAD9ie-s9kricU8_VBBucQMob-n1jWN5xHd5Ymck=biUWqpH9yQ@mail.gmail.com> <e64eb21d-1ef4-4352-9c74-ffbb853ce3da@danielfett.de> <CAD9ie-t9jLMG5aROCR-EOuCYh19F2r67-C0Puw2OF4GEcvBc2g@mail.gmail.com> <SJ0PR02MB7439E7A8C62588FB6BBABA97B76D2@SJ0PR02MB7439.namprd02.prod.outlook.com>
In-Reply-To: <SJ0PR02MB7439E7A8C62588FB6BBABA97B76D2@SJ0PR02MB7439.namprd02.prod.outlook.com>
From: Rohan Mahy <rohan.mahy@gmail.com>
Date: Sun, 22 Sep 2024 09:51:09 -0700
Message-ID: <CAKoiRubpOptOoZkfG9Ro756VHX-0kOAquspSpXH7ASXvBAeRUQ@mail.gmail.com>
To: Michael Jones <michael_b_jones@hotmail.com>
Content-Type: multipart/alternative; boundary="000000000000001b330622b81556"
Message-ID-Hash: XTMNIGQYNJDFTV2B6UZPC73J7KJNF537
X-Message-ID-Hash: XTMNIGQYNJDFTV2B6UZPC73J7KJNF537
X-MailFrom: rohan.mahy@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-oauth.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "Dick.Hardt@gmail.com" <Dick.Hardt@gmail.com>, "oauth@ietf.org" <oauth@ietf.org>, "kristina@sfc.keio.ac.jp" <kristina@sfc.keio.ac.jp>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD-JWT architecture feedback)
List-Id: OAUTH WG <oauth.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/1wyo52NC7jTgnAuCpKOqFg2NWN0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Owner: <mailto:oauth-owner@ietf.org>
List-Post: <mailto:oauth@ietf.org>
List-Subscribe: <mailto:oauth-join@ietf.org>
List-Unsubscribe: <mailto:oauth-leave@ietf.org>
Hi, If someone defines a new profile application/foobar-audit-system and it has sd-jwt, jwt, and sd-cwt versions, it seems perfectly reasonable to have a fine-grained explicit media type application/foobar-audit-system+sd-jwt. That said, there are times when someone just wants an sd-jwt with an unspecified profile. In this second case, it makes more sense to me to also register application/sd-jwt. The implementor should fill in whichever form they are using in the `typ` header. Thanks, -rohan On Sat, Sep 21, 2024 at 12:17 PM Michael Jones <michael_b_jones@hotmail.com> wrote: > Actually, the JWT BCP (which we were both authors of) does not recommend > using a single media type. Rather, it recommends using a specific media > type suffix in the “typ” values > <https://www.rfc-editor.org/rfc/rfc8725.html#name-use-explicit-typing>: > > When explicit typing is employed for a JWT, it is *RECOMMENDED* that a > media type name of the format "application/example+jwt" be used, where > "example" is replaced by the identifier for the specific kind of JWT. > > > > SD-JWT is doing the same thing, recommending the use of the media type > suffix “+sd-jwt”. > > > > This enables more fine-grained explicit typing. For instance, when doing > explicit typing for an SD-JWT in the Example use case, the “typ” value > would be “example+sd-jwt”. This can then be distinguished from an SD-JWT > for the Other use case, which would use the “typ” value “other+sd-jwt” – > meeting the goal of explicit typing. > > > > -- Mike > > > > *From:* Dick Hardt <dick.hardt@gmail.com> > *Sent:* Saturday, September 21, 2024 9:16 AM > *To:* Daniel Fett <mail@danielfett.de> > *Cc:* oauth@ietf.org; kristina@sfc.keio.ac.jp > *Subject:* [OAUTH-WG] Re: SD-JWT architecture feedback > > > > … > > > > *Explicit Typing* > > Why leave the typing in the header to be determined by the application > (10.11), and not just be 'sd-jwt' and be REQUIRED? > > We had extensive discussions around typing, please refer to the following > issues: > > - https://github.com/oauth-wg/oauth-selective-disclosure-jwt/issues/267 > > - https://github.com/oauth-wg/oauth-selective-disclosure-jwt/issues/327 > > - https://github.com/oauth-wg/oauth-selective-disclosure-jwt/issues/345 > > > > Those issues don't really address the point. > > > > Per RFC 8725: JSON Web Token Best Current Practices (rfc-editor.org) > <https://www.rfc-editor.org/rfc/rfc8725.html#name-use-explicit-typing> -- > the best practice would be to have a single type that would allow a library > to know it is an SD-JWT. If additional context is needed, perhaps that > should be a different header property? > _______________________________________________ > OAuth mailing list -- oauth@ietf.org > To unsubscribe send an email to oauth-leave@ietf.org >
- [OAUTH-WG] SD-JWT architecture feedback Dick Hardt
- [OAUTH-WG] Re: SD-JWT architecture feedback Warren Parad
- [OAUTH-WG] Re: SD-JWT architecture feedback Daniel Fett
- [OAUTH-WG] Re: SD-JWT architecture feedback Dick Hardt
- [OAUTH-WG] Leading underscores in SD-JWT Claim Na… Michael Jones
- [OAUTH-WG] Explicit typing of SD-JWTs (was SD-JWT… Michael Jones
- [OAUTH-WG] Re: Leading underscores in SD-JWT Clai… Dick Hardt
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Dick Hardt
- [OAUTH-WG] Re: Leading underscores in SD-JWT Clai… Rohan Mahy
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… David Waite
- [OAUTH-WG] Re: SD-JWT architecture feedback Rohan Mahy
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Rohan Mahy
- [OAUTH-WG] Re: SD-JWT architecture feedback Dick Hardt
- [OAUTH-WG] Re: Leading underscores in SD-JWT Clai… Brian Campbell
- [OAUTH-WG] Array Disclosure (was SD-JWT architect… Denis
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Kristina Yasuda
- [OAUTH-WG] Re: SD-JWT architecture feedback Brian Campbell
- [OAUTH-WG] Re: SD-JWT architecture feedback Dick Hardt
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Brian Campbell
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Dick Hardt
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Brian Campbell
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Dick Hardt
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Rohan Mahy
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Brian Campbell
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Dick Hardt