Re: [OAUTH-WG] scp claim in draft-ietf-oauth-token-exchange-12

Mike Jones <Michael.Jones@microsoft.com> Tue, 24 April 2018 22:53 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 CBDC312DA02 for <oauth@ietfa.amsl.com>; Tue, 24 Apr 2018 15:53:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.009
X-Spam-Level:
X-Spam-Status: No, score=-2.009 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, T_DKIMWL_WL_HIGH=-0.01, URIBL_BLOCKED=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 ZsF1QzlqkmIZ for <oauth@ietfa.amsl.com>; Tue, 24 Apr 2018 15:53:41 -0700 (PDT)
Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0095.outbound.protection.outlook.com [104.47.33.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E2E1512D87E for <oauth@ietf.org>; Tue, 24 Apr 2018 15:53:38 -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=InfUtvaFKwXKbSTsw2XU6L3KraLkIstDpNNn3/AgXIk=; b=bM7nKkP8hVzYDslDvbvg8Toh/eLeBvzgkJrquhU5lU0+A5BSl7ibAabjOJ2EPM/bIA46Fkc4su2P2OwS3JBXSr1KHYVwUM1YQ7we5/lO7FWB5waaNQLf2a0cZOpIim182TMc6jTPxr3KW/nJh/36z9S6VjGiUmecbCQ7xZgdVH4=
Received: from BL0PR00MB0292.namprd00.prod.outlook.com (2603:10b6:207:1e::30) by BL0PR00MB0291.namprd00.prod.outlook.com (2603:10b6:207:1e::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.749.0; Tue, 24 Apr 2018 22:53:36 +0000
Received: from BL0PR00MB0292.namprd00.prod.outlook.com ([fe80::f9bf:2cdb:bda8:6be]) by BL0PR00MB0292.namprd00.prod.outlook.com ([fe80::f9bf:2cdb:bda8:6be%5]) with mapi id 15.20.0749.000; Tue, 24 Apr 2018 22:53:36 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Brian Campbell <bcampbell@pingidentity.com>, George Fletcher <gffletch@aol.com>
CC: oauth <oauth@ietf.org>
Thread-Topic: [OAUTH-WG] scp claim in draft-ietf-oauth-token-exchange-12
Thread-Index: AQHT1NjgJy8mHwoFFk6XUY9K9SCN+aQGpvqAgACAzaCAAPXeAIAGpvWAgAARawCAAAhLgIABp+vA
Date: Tue, 24 Apr 2018 22:53:36 +0000
Message-ID: <BL0PR00MB0292E3A7FA7A2217CDC4324CF5880@BL0PR00MB0292.namprd00.prod.outlook.com>
References: <C1972A3F-98FD-44FF-8090-2C141A801F76@lodderstedt.net> <CA+k3eCTsewdV_pHpV-WSbE39y7nN9x0tVch0-E3+sE6R2Wpwtw@mail.gmail.com> <MW2PR00MB029825EA57103F4FFD0DB57DF5B60@MW2PR00MB0298.namprd00.prod.outlook.com> <99725E0A-45F8-4E5C-8AAF-6F6C38110F2A@lodderstedt.net> <CA+k3eCRZ9PZkQxoH2Jms1pQ4+rPH05nGaP3gjjDc=vNJ+J_f-w@mail.gmail.com> <9f16d60a-73dc-eb3f-85e8-5869472181b8@aol.com> <CA+k3eCRFrhr1s9HgGEE0n2wR-xcDjhGayxC=XL1jPw3s5Ngy_Q@mail.gmail.com>
In-Reply-To: <CA+k3eCRFrhr1s9HgGEE0n2wR-xcDjhGayxC=XL1jPw3s5Ngy_Q@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=mbj@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2018-04-24T22:53:34.9022112Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic; Sensitivity=General
x-originating-ip: [2001:4898:80e8:9::50e]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BL0PR00MB0291; 7:yYFU429W1DjHf1hvf5PppagED32U0wVTo80j6bwvuJeuiI2wywgokTNnyII2LrSLRYCI4NZ+FTrIzu6fP0N/tSSJ+2CHY7ulPx9d7mV3FJ11/wcXqFXBe80qjDxJVnHALZtRxpvBmP9oURYlIshzhcqPlY9m8Gjkyjto4NDp4FEEAX1gnq++k3Xmtaag4QT9PIRtTU/MbkXzMre2akgpxagee8ZIGyfjWDMiSACMpoEf4OdOUhhqTuhevacbDjb4; 20:+Hae5Ow97ral20RiQr9IhtikIzDjSGYAlLv3kLf1iKGL7eAme82qYuwJcyQZPIevQTInD1d3piFSxoVtudZHy3GZJXc70i78HTzJ5CkpOBpkeHczuZKBPDmoOyuoVeUYMwzI+DchSyWbovtd88AemfYgesq8CGCG60kWDusne3s=
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020); SRVR:BL0PR00MB0291;
x-ms-traffictypediagnostic: BL0PR00MB0291:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Jones@microsoft.com;
x-microsoft-antispam-prvs: <BL0PR00MB02918E96412D47F75C998F17F5880@BL0PR00MB0291.namprd00.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(148322886591682)(149059832740258)(89211679590171)(31418570063057)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(2017102700009)(2017102701064)(6040522)(2401047)(8121501046)(5005006)(2017102702064)(20171027021009)(20171027022009)(20171027023009)(20171027024009)(20171027025009)(20171027026009)(2017102703076)(3002001)(3231232)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:BL0PR00MB0291; BCL:0; PCL:0; RULEID:; SRVR:BL0PR00MB0291;
x-forefront-prvs: 0652EA5565
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(366004)(39380400002)(376002)(39860400002)(396003)(209900001)(69234005)(199004)(189003)(53754006)(7736002)(76176011)(5660300001)(14454004)(5890100001)(606006)(99286004)(7696005)(5250100002)(52396003)(55016002)(4326008)(33656002)(39060400002)(10090500001)(8990500004)(105586002)(102836004)(236005)(186003)(97736004)(2906002)(6306002)(9686003)(54896002)(74316002)(53936002)(106356001)(3660700001)(6506007)(59450400001)(53376002)(53546011)(6246003)(68736007)(3280700002)(46003)(446003)(86362001)(478600001)(10290500003)(2900100001)(1600100001)(790700001)(6116002)(11346002)(25786009)(486006)(316002)(22452003)(966005)(6436002)(110136005)(93886005)(8936002)(81156014)(229853002)(476003)(19609705001)(86612001)(72206003)(81166006)(8676002)(6606295002); DIR:OUT; SFP:1102; SCL:1; SRVR:BL0PR00MB0291; H:BL0PR00MB0292.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)
x-microsoft-antispam-message-info: oDdO6aZZMXDqKrWnjRfPJzB1zwtgbK7ArJTitLEQrQqWnjGd5DmFaIMadRyPJh6IwXapnhBLAwVL9eaUd65Tsi88eUO/qcG1NF+HRHd4HEkewIB4fsQDcq0sSAGSmHJkrnwvD4XDsLUVP44MbZJTn8CFixPLqaWtQmAXLdRU0NTT7tomtME9Ku+6rbICOnu+
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_BL0PR00MB0292E3A7FA7A2217CDC4324CF5880BL0PR00MB0292namp_"
MIME-Version: 1.0
X-MS-Office365-Filtering-Correlation-Id: 868be8fc-c7c0-44ef-a6d7-08d5aa3636b7
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 868be8fc-c7c0-44ef-a6d7-08d5aa3636b7
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Apr 2018 22:53:36.3813 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR00MB0291
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/NRtbeGCw0DZ4wsT4twtvqGNy6p8>
Subject: Re: [OAUTH-WG] scp claim in draft-ietf-oauth-token-exchange-12
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: Tue, 24 Apr 2018 22:53:46 -0000

FYI, I blogged about these changes in my post “Late-breaking changes to OAuth Token Exchange syntax” at http://self-issued.info/?p=1825 and at @selfissued<https://twitter.com/selfissued>.

                                                                -- Mike

From: OAuth <oauth-bounces@ietf.org> On Behalf Of Brian Campbell
Sent: Monday, April 23, 2018 1:45 PM
To: George Fletcher <gffletch@aol.com>
Cc: oauth <oauth@ietf.org>
Subject: Re: [OAUTH-WG] scp claim in draft-ietf-oauth-token-exchange-12

draft -13 was just published with these changes

On Mon, Apr 23, 2018 at 2:15 PM, George Fletcher <gffletch@aol.com<mailto:gffletch@aol.com>> wrote:
+1

On 4/23/18 3:13 PM, Brian Campbell wrote:
I just noticed/remembered that the draft also currently defines a "cid" claim for the client identifier where Introspection's RFC 7662 already uses "client_id" for the same thing. The reason for using "cid" was similar in that I was looking to follow the semi-convention of JWT using three letter short claim names. But I think consistency with RFC 7662 is more important and meaningful here. So, barring a rough conscious of objections, I'm going to make that change too in a soon-to-be next revision of the draft.


On Thu, Apr 19, 2018 at 7:38 AM, Torsten Lodderstedt <torsten@lodderstedt.net<mailto:torsten@lodderstedt.net>> wrote:
+1 - It will makes thinks much simpler.



Am 19.04.2018 um 00:58 schrieb Mike Jones <Michael.Jones@microsoft.com<mailto:Michael.Jones@microsoft.com>>:

I’m OK with this change, given it makes the OAuth suite of specs more self-consistent.

                                                       -- Mike

From: OAuth <oauth-bounces@ietf.org<mailto:oauth-bounces@ietf.org>> On Behalf Of Brian Campbell
Sent: Wednesday, April 18, 2018 8:17 AM
To: Torsten Lodderstedt <torsten@lodderstedt.net<mailto:torsten@lodderstedt.net>>
Cc: oauth <oauth@ietf.org<mailto:oauth@ietf.org>>
Subject: Re: [OAUTH-WG] scp claim in draft-ietf-oauth-token-exchange-12

The draft-ietf-oauth-token-exchange document makes use of scope and at some point in that work it came to light that, despite the concept of scope being used lots of places elsewhere, there was no officially registered JWT claim for scope. As a result, we (the WG) decided to have draft-ietf-oauth-token-exchange define and register a JWT claim for scope. It's kind of an awkward place for it really but that's how it came to be there.
When I added it to the draft, I opted for the semi-convention of JWT using three letter short claim names.. And decided to use a JSON array to convey multiple values rather than space delimiting. It seemed like a good idea at the time - more consistent with other JWT claim names and cleaner to use the facilities of JSON rather than a delimited string. That was the thinking at the time anyway and, as I recall, I asked the WG about doing it that way at one of the meetings and there was general, if somewhat absent, nodding in the room.
Looking at this again in the context of the question from Torsten and his developers, I think using a different name and syntax for the JWT claim vs.. the Introspection response member/parameter/claim is probably a mistake.  While RFC 7662 Introspection response parameters aren't exactly the same as JWT claims, they are similar in many respects. So giving consistent treatment across them to something like scope is
Therefore I propose that the JWT claim for representing scope in draft-ietf-oauth-token-exchange be changed to be consistent with the treatment of scope in RFC 7662 OAuth 2.0 Token Introspection. That effectively means changing the name from "scp" to "scope" and the value from a JSON array to a string delimited by spaces.
I realize it's late in the process to make this change but believe doing so will significantly reduce confusion and issues in the long run.





On Sun, Apr 15, 2018 at 10:43 AM, Torsten Lodderstedt <torsten@lodderstedt.net<mailto:torsten@lodderstedt..net>> wrote:
Hi all,

I I’m wondering why draft-ietf-oauth-token-exchange-12 defines a claim „scp“ to carry scope values while RFC 7591 and RFC 7662 use a claim „scope“ for the same purpose. As far as I understand the text, the intension is to represent a list of RFC6749 scopes. Is this correct? What’s the rationale behind?

Different claim names for representing scope values confuse people. I realized that when one of our developers pointed out that difference recently.

best regards,
Torsten.
_______________________________________________
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.



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.

_______________________________________________

OAuth mailing list

OAuth@ietf.org<mailto:OAuth@ietf.org>

https://www.ietf.org/mailman/listinfo/oauth<https://www..ietf.org/mailman/listinfo/oauth>


--

Distinguished Engineer

Identity Services Engineering     Work: george.fletcher@teamaol.com<mailto:george.fletcher@teamaol.com>

AOL Inc.                          AIM:  gffletch

Mobile: +1-703-462-3494           Twitter: http://twitter.com/gffletch

Office: +1-703-265-2544           Photos: http://georgefletcher.photography


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.