Re: [apps-discuss] Reserved URI query parameter in draft-ietf-oauth-v2-bearer

Mike Jones <Michael.Jones@microsoft.com> Mon, 16 April 2012 22:07 UTC

Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8F1C911E808A for <apps-discuss@ietfa.amsl.com>; Mon, 16 Apr 2012 15:07:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.912
X-Spam-Level:
X-Spam-Status: No, score=-3.912 tagged_above=-999 required=5 tests=[AWL=-0.313, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t1iGtN5lnqRk for <apps-discuss@ietfa.amsl.com>; Mon, 16 Apr 2012 15:07:37 -0700 (PDT)
Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe002.messaging.microsoft.com [216.32.180.12]) by ietfa.amsl.com (Postfix) with ESMTP id 5530111E80B6 for <apps-discuss@ietf.org>; Mon, 16 Apr 2012 15:07:37 -0700 (PDT)
Received: from mail60-va3-R.bigfish.com (10.7.14.244) by VA3EHSOBE005.bigfish.com (10.7.40.25) with Microsoft SMTP Server id 14.1.225.23; Mon, 16 Apr 2012 22:07:36 +0000
Received: from mail60-va3 (localhost [127.0.0.1]) by mail60-va3-R.bigfish.com (Postfix) with ESMTP id DC1106066B; Mon, 16 Apr 2012 22:07:35 +0000 (UTC)
X-SpamScore: -37
X-BigFish: VS-37(zzbb2dI9371I542M1432N98dK4015Izz1202hzz8275ch1033IL8275dhz2fh2a8h668h839h944hd25h)
X-Forefront-Antispam-Report: CIP:131.107.125.8; KIP:(null); UIP:(null); IPV:NLI; H:TK5EX14HUBC101.redmond.corp.microsoft.com; RD:none; EFVD:NLI
Received-SPF: pass (mail60-va3: domain of microsoft.com designates 131.107.125.8 as permitted sender) client-ip=131.107.125.8; envelope-from=Michael.Jones@microsoft.com; helo=TK5EX14HUBC101.redmond.corp.microsoft.com ; icrosoft.com ;
Received: from mail60-va3 (localhost.localdomain [127.0.0.1]) by mail60-va3 (MessageSwitch) id 1334614053221913_5987; Mon, 16 Apr 2012 22:07:33 +0000 (UTC)
Received: from VA3EHSMHS002.bigfish.com (unknown [10.7.14.245]) by mail60-va3.bigfish.com (Postfix) with ESMTP id 2F8FD3A00E2; Mon, 16 Apr 2012 22:07:33 +0000 (UTC)
Received: from TK5EX14HUBC101.redmond.corp.microsoft.com (131.107.125.8) by VA3EHSMHS002.bigfish.com (10.7.99.12) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 16 Apr 2012 22:07:30 +0000
Received: from TK5EX14MBXC284.redmond.corp.microsoft.com ([169.254.1.73]) by TK5EX14HUBC101.redmond.corp.microsoft.com ([157.54.7.153]) with mapi id 14.02.0283.004; Mon, 16 Apr 2012 22:07:11 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Eran Hammer <eran@hueniverse.com>, Stephen Farrell <stephen.farrell@cs.tcd.ie>
Thread-Topic: [apps-discuss] Reserved URI query parameter in draft-ietf-oauth-v2-bearer
Thread-Index: AQHNHBvuMnl7M5Co1kKHc7Fh8opwWpaeAOKw
Date: Mon, 16 Apr 2012 22:07:11 +0000
Message-ID: <4E1F6AAD24975D4BA5B16804296739436648789A@TK5EX14MBXC284.redmond.corp.microsoft.com>
References: <4F866AC0.3000603@qualcomm.com> <01OE8FW1U53G00ZUIL@mauve.mrochek.com> <82462DAA-5118-4108-AA5C-FBEBBC563D4E@mnot.net> <01OE921YMRSW00ZUIL@mauve.mrochek.com> <4F8898A9.8020806@cs.tcd.ie> <22B64109-DAFD-4F2A-B1DA-5950E732882A@mnot.net> <4F88AA3A.8040401@cs.tcd.ie> <0CBAEB56DDB3A140BA8E8C124C04ECA2FE83A2@P3PWEX2MB008.ex2.secureserver.net> <4F8B346E.5040300@cs.tcd.ie> <0CBAEB56DDB3A140BA8E8C124C04ECA2FEB0E5@P3PWEX2MB008.ex2.secureserver.net>
In-Reply-To: <0CBAEB56DDB3A140BA8E8C124C04ECA2FEB0E5@P3PWEX2MB008.ex2.secureserver.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [157.54.51.33]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
Cc: Pete Resnick <presnick@qualcomm.com>, Mark Nottingham <mnot@mnot.net>, Ned Freed <ned.freed@mrochek.com>, "draft-ietf-oauth-v2-bearer.all@tools.ietf.org" <draft-ietf-oauth-v2-bearer.all@tools.ietf.org>, Apps Discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Reserved URI query parameter in draft-ietf-oauth-v2-bearer
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Apr 2012 22:07:38 -0000

I'll note that RFC 5849, which defines two such query parameters:  oauth_token and oauth_verifier, doesn't seem to have created any problems in practice by doing so.

				-- Mike

-----Original Message-----
From: apps-discuss-bounces@ietf.org [mailto:apps-discuss-bounces@ietf.org] On Behalf Of Eran Hammer
Sent: Monday, April 16, 2012 2:57 PM
To: Stephen Farrell
Cc: Pete Resnick; Mark Nottingham; Ned Freed; Apps Discuss; draft-ietf-oauth-v2-bearer.all@tools.ietf.org
Subject: Re: [apps-discuss] Reserved URI query parameter in draft-ietf-oauth-v2-bearer



> -----Original Message-----
> From: Stephen Farrell [mailto:stephen.farrell@cs.tcd.ie]
> Sent: Sunday, April 15, 2012 1:50 PM
> To: Eran Hammer
> Cc: Mark Nottingham; Pete Resnick; Ned Freed; draft-ietf-oauth-v2- 
> bearer.all@tools.ietf.org; Apps Discuss
> Subject: Re: [apps-discuss] Reserved URI query parameter in 
> draft-ietf- oauth-v2-bearer
> 
> 
> Hi Eran,
> 
> On 04/15/2012 07:31 AM, Eran Hammer wrote:
> >
> >
> >> -----Original Message-----
> >> From: apps-discuss-bounces@ietf.org [mailto:apps-discuss- 
> >> bounces@ietf.org] On Behalf Of Stephen Farrell
> >> Sent: Friday, April 13, 2012 3:36 PM
> >> To: Mark Nottingham
> >> Cc: Pete Resnick; Ned Freed;
> >> draft-ietf-oauth-v2-bearer.all@tools.ietf.org;
> >> Apps Discuss
> >> Subject: Re: [apps-discuss] Reserved URI query parameter in
> >> draft-ietf- oauth-v2-bearer
> >>
> >>
> >>
> >> On 04/13/2012 10:24 PM, Mark Nottingham wrote:
> >>> Because it's a name space that is managed and owned by the 
> >>> authority of
> >> the URI, not any standards organisation.
> >>>
> >>> I.e. we tell them how the URI is structured, not what to put into it.
> >>>
> >>> We made *one* exception for this in .well-known as an escape valve 
> >>> for
> >> abuse. If we continue allowing this kind of abuse, we'll have 
> >> little defence against things like standardising filename 
> >> extensions in URLs and reserving an "/about/" URI's semantics -- 
> >> things which are clearly violating the architecture of the WWW:
> >>>  http://www.w3.org/TR/webarch/#uri-opacity
> >>
> >> (Sticking with the naivety:-) So, what's different there from how 
> >> the base oauth draft registers client_id and shows how that can be 
> >> used in a GET request? [1]
> >
> > Big difference. The base draft specifies its own endpoints as part 
> > of a
> complete API package for obtaining authorization. These parameters are 
> scoped only for the endpoints defined and not for any others. There is 
> no possibility of conflict because the specification defines the entire namespace.
> 
> I guess that might be a big difference, not sure. Where is that aspect 
> (a complete API package) described in the oauth base spec or elsewhere?

http://tools.ietf.org/html/draft-ietf-oauth-v2-25#section-3

This section defines the two server and one client endpoints required by OAuth. Those opting to deploy these resources must abide by their syntax which completely defines their URI query parameters.

> I also don't recall mention of API packages in the other responses on 
> this thread, so I'm not sure if that's a wide-spread opinion or if 
> there's disagreement about it.

This should be pretty standard API approach, whereas the full scope of query parameters are defined as a set and are not expect to overlap with any others on the API resources. By adopting the API, the developer buys into the namespace definition. However, when using OAuth for authentication of existing API endpoints that have otherwise nothing to do with OAuth, there is a namespace collision.
 
> > OTOH, the bearer spec is applied to *any* web resources using OAuth
> authentication where some other namespace definition must exist.
> 
> Seems like a fair point. But like I said above, I'm unsure if that's 
> just a matter of degree or not. (Maybe the base spec is "a little bit 
> pregnant" in this respect? ;-)

This isn't a matter of degree. The basic assumption is that providers supporting OAuth bearer authentication will be required to understand this query parameter and therefore, cannot use it to avoid any client confusion.

EH
 
> S
> 
> > EH
> >
> >> Ta,
> >> S.
> >>
> >> [1] http://tools.ietf.org/html/draft-ietf-oauth-v2-25#page-24
> >>     (bottom of page)
> >>
> >>
> >>>
> >>> Cheers,
> >>>
> >>>
> >>> On 13/04/2012, at 4:20 PM, Stephen Farrell wrote:
> >>>
> >>>>
> >>>>
> >>>> On 04/13/2012 08:43 AM, Ned Freed wrote:
> >>>>> I certainly don't object to doing that. In fact I don't object 
> >>>>> to dropping this nasty hack from the document, although perhaps 
> >>>>> documenting it as *not* standardized and explaining why it sucks 
> >>>>> would
> >> be even better.
> >>>>
> >>>> So I've a possibly naive question:
> >>>>
> >>>> Why is it harmful to standardise a parameter name for use in 
> >>>> query strings?
> >>>>
> >>>> Note: I'm not asking if access_token is a good or bad name for 
> >>>> one of those, nor how exactly to standardise one well or badly, 
> >>>> nor who should do that, but it seems from the comments here that 
> >>>> some folks are against the idea of standardising anything after 
> >>>> the authority is a bad idea, and I don't get why exactly that might be the case.
> >>>>
> >>>> Thanks,
> >>>> S.
> >>>>
> >>>
> >>> --
> >>> Mark Nottingham
> >>> http://www.mnot.net/
> >>>
> >>>
> >>>
> >>>
> >>>
> >> _______________________________________________
> >> apps-discuss mailing list
> >> apps-discuss@ietf.org
> >> https://www.ietf.org/mailman/listinfo/apps-discuss
> >
_______________________________________________
apps-discuss mailing list
apps-discuss@ietf.org
https://www.ietf.org/mailman/listinfo/apps-discuss