Re: [OAUTH-WG] JSON Web Token Best Current Practices draft describing Explicit Typing

Mike Jones <Michael.Jones@microsoft.com> Thu, 22 March 2018 14:16 UTC

Return-Path: <Michael.Jones@microsoft.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 1D43A124319 for <oauth@ietfa.amsl.com>; Thu, 22 Mar 2018 07:16:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.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 eWRMPwmnIhw0 for <oauth@ietfa.amsl.com>; Thu, 22 Mar 2018 07:16:25 -0700 (PDT)
Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0115.outbound.protection.outlook.com [104.47.37.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8D9F61200C5 for <oauth@ietf.org>; Thu, 22 Mar 2018 07:16:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=nqMUCnEN8tAUJ72emhkmsna3A8X7xUxKGP60vAKPbQc=; b=RPJs6PgCPTDiXL5RIne8POLPfSaZ2SqeDgeQsursFLOBIBXlhr7rri9Kg3KVMXsXeNGLbJfdOyi1Zh1JtdEDsPeSeGdX8+J+sBt+WOauI66AumAVVGNfMCLGD8w5Kl4K9R6SKZpjrOx7d2NYpBOf1yrpy62h3+bqtiqz3a/zMU0=
Received: from DM5PR00MB0296.namprd00.prod.outlook.com (52.132.128.37) by DM5PR00MB0440.namprd00.prod.outlook.com (52.132.129.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.609.10; Thu, 22 Mar 2018 14:16:04 +0000
Received: from DM5PR00MB0296.namprd00.prod.outlook.com ([fe80::4505:9110:25d:a5e0]) by DM5PR00MB0296.namprd00.prod.outlook.com ([fe80::4505:9110:25d:a5e0%2]) with mapi id 15.20.0652.000; Thu, 22 Mar 2018 14:16:04 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Brian Campbell <bcampbell@pingidentity.com>
CC: "oauth@ietf.org" <oauth@ietf.org>
Thread-Topic: [OAUTH-WG] JSON Web Token Best Current Practices draft describing Explicit Typing
Thread-Index: AdL0+iJmgqpM9UqbSgCDmYr6GQRcNAABbcaAAnio3wAwwVS0oA==
Date: Thu, 22 Mar 2018 14:16:04 +0000
Message-ID: <DM5PR00MB0296D7E956944A0CBF148D7AF5A90@DM5PR00MB0296.namprd00.prod.outlook.com>
References: <CY4PR21MB0504A6F0739B0F3EFA46AE54F5D70@CY4PR21MB0504.namprd21.prod.outlook.com> <4524B6AF-E350-4D58-8ACC-1554D2506191@oracle.com> <CA+k3eCSeUqE8Tnr_OA__BrRLEUXjPDpjV0qF69t5dVL_RBXnVw@mail.gmail.com>
In-Reply-To: <CA+k3eCSeUqE8Tnr_OA__BrRLEUXjPDpjV0qF69t5dVL_RBXnVw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [31.133.132.12]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DM5PR00MB0440; 7:m1PNl3r97LVtTlgKFRZYiHGAsZVmbZ4PdP+Zbn7vYrY14vzIiNm3sXfDk5XngFdTL3CpOKhA5ppUgrMwff2iydG0G1Qm7K9acACjuUbunwHIBnITVbl3XrxT8FbMiG74jk83tGEuq0rOxNko5zMTIarb5x0Kc1z68rN8Cbwe22/jcVx2jNDKu+T7ZetdEUAkG3UIFCoDn4gjXLqMjg0rmSbQNAkMdwhi56VFbuNXRE3tfid3etD8/BJGbSjPNUEK; 20:SrJfzcPrt7WJwU5kAT9VE54W/wquBJZJt6mYmJXRrlqbh2xoZZ8wCCekIGbHYSn0f1ZbWMPLd7pjwWLHNRi3BQN+4K2ZpAqflK5lc86hF74MqObG0319zq6g6DhMbH70RU+xk1sKgDn/foLTCxvgrr5ub5gGlrP+NZFIwz2JuBE=
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 4404fa96-edbe-4917-0331-08d58fff72c1
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020); SRVR:DM5PR00MB0440;
x-ms-traffictypediagnostic: DM5PR00MB0440:
x-microsoft-antispam-prvs: <DM5PR00MB04405C534F8107540E0C9299F5A90@DM5PR00MB0440.namprd00.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(192374486261705)(31418570063057)(21748063052155)(146099531331640);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(3231221)(944501327)(52105095)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:DM5PR00MB0440; BCL:0; PCL:0; RULEID:; SRVR:DM5PR00MB0440;
x-forefront-prvs: 0619D53754
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(376002)(366004)(39380400002)(396003)(39860400002)(209900001)(199004)(189003)(36304003)(5890100001)(106356001)(5250100002)(99286004)(2906002)(33656002)(66066001)(3280700002)(105586002)(790700001)(6116002)(3846002)(22452003)(26005)(316002)(68736007)(102836004)(6346003)(59450400001)(53546011)(19609705001)(6506007)(186003)(7736002)(229853002)(74316002)(2900100001)(72206003)(966005)(5660300001)(478600001)(4326008)(25786009)(10290500003)(2950100002)(6916009)(97736004)(8676002)(446003)(81156014)(81166006)(8936002)(10090500001)(606006)(14454004)(8990500004)(86362001)(7696005)(3660700001)(76176011)(53376002)(53936002)(6246003)(236005)(86612001)(55016002)(6306002)(54896002)(9686003)(6436002)(6606295002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR00MB0440; H:DM5PR00MB0296.namprd00.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Jones@microsoft.com;
x-microsoft-antispam-message-info: 4P7A30Ass1XXw3NdJShLxPfzW7M1ISLHRKLFpoahaeK4VEYkR5CxodMPccVnfSB9HnKndEWESpvGkBK77j3xsazc/B9SDD5+S7I2eqfRTn0oyOzIqMdZwAsWGdcJzskj/l3uSQqfOxc/e45ZCNgh1j/mwC0MV3ABQJ+YZKsBmDmP8D+flONEm8VWB/cn/+6+jehKSnsKdTJ9msebCQ3KX9g4w8jHcdL+3faMRxVuzhNGpTdMXeVF68hNa7ULUXRR2QPDWOjY55smyFNQf+XxeBKVavQGLTK+DoQ1fTH4HIxlmlvfUt3dNmYRYpMEktEVm0lBt2JI2WQjldG2wYLlUA==
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_DM5PR00MB0296D7E956944A0CBF148D7AF5A90DM5PR00MB0296namp_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 4404fa96-edbe-4917-0331-08d58fff72c1
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Mar 2018 14:16:04.5596 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR00MB0440
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/-djFOdwxAEb90wNuZmJNF0bdznw>
Subject: Re: [OAUTH-WG] JSON Web Token Best Current Practices draft describing Explicit Typing
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: Thu, 22 Mar 2018 14:16:28 -0000

I propose that the following text be added to address your comment, Brian.  Does this text work for you?

When applying explicit typing to a Nested JWT, the "typ" header parameter containing the explicit type value MUST be present in the inner JWT of the Nested JWT (the JWT whose payload is the JWT Claims Set).  The same "typ" header parameter value MAY be present in the outer JWT as well, to explicitly type the entire Nested JWT.

                                                       -- Mike

From: Brian Campbell <bcampbell@pingidentity.com>
Sent: Monday, July 17, 2017 10:53 AM
To: Phil Hunt (IDM) <phil.hunt@oracle.com>
Cc: Mike Jones <Michael.Jones@microsoft.com>; oauth@ietf.org
Subject: Re: [OAUTH-WG] JSON Web Token Best Current Practices draft describing Explicit Typing

Could some more guidance be provided around how to use the explicit typing with nested JWTs?
I'd imagine that the "typ" header should be in the header of the JWT that is integrity protected by the issuer?

On Tue, Jul 4, 2017 at 9:58 PM, Phil Hunt (IDM) <phil.hunt@oracle.com<mailto:phil.hunt@oracle.com>> wrote:
+1

Thanks Mike.

Phil

On Jul 4, 2017, at 12:43 PM, Mike Jones <Michael.Jones@microsoft.com<mailto:Michael.Jones@microsoft.com>> wrote:
The JWT BCP draft has been updated to describe the use of explicit typing of JWTs as one of the ways to prevent confusion among different kinds of JWTs.  This is accomplished by including an explicit type for the JWT in the “typ” header parameter.  For instance, the Security Event Token (SET) specification<http://self-issued.info/?p=1709> now uses the “application/secevent+jwt” content type to explicitly type SETs.

The specification is available at:

  *   https://tools.ietf.org/html/draft-sheffer-oauth-jwt-bcp-01

An HTML-formatted version is also available at:

  *   http://self-issued.info/docs/draft-sheffer-oauth-jwt-bcp-01.html

                                                       -- Mike

P.S.  This notice was also posted at http://self-issued.info/?p=1714 and as @selfissued<https://twitter.com/selfissued>.
_______________________________________________
OAuth mailing list
OAuth@ietf.org<mailto:OAuth@ietf.org>
https://www.ietf.org/mailman/listinfo/oauth

_______________________________________________
OAuth mailing list
OAuth@ietf.org<mailto:OAuth@ietf.org>
https://www.ietf.org/mailman/listinfo/oauth


CONFIDENTIALITY NOTICE: This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by e-mail and delete the message and any file attachments from your computer. Thank you.