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

Eran Hammer <eran@hueniverse.com> Mon, 16 April 2012 21:57 UTC

Return-Path: <eran@hueniverse.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 3B8AF21F8622 for <apps-discuss@ietfa.amsl.com>; Mon, 16 Apr 2012 14:57:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599]
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 gvGwqtbDsNAx for <apps-discuss@ietfa.amsl.com>; Mon, 16 Apr 2012 14:57:26 -0700 (PDT)
Received: from p3plex2out03.prod.phx3.secureserver.net (p3plex2out03.prod.phx3.secureserver.net [184.168.131.16]) by ietfa.amsl.com (Postfix) with ESMTP id 2C26E21F8621 for <apps-discuss@ietf.org>; Mon, 16 Apr 2012 14:57:26 -0700 (PDT)
Received: from P3PWEX2HT003.ex2.secureserver.net ([184.168.131.11]) by p3plex2out03.prod.phx3.secureserver.net with bizsmtp id ylxR1i0020EuLVk01lxREU; Mon, 16 Apr 2012 14:57:25 -0700
Received: from P3PWEX2MB008.ex2.secureserver.net ([169.254.8.115]) by P3PWEX2HT003.ex2.secureserver.net ([184.168.131.11]) with mapi id 14.02.0247.003; Mon, 16 Apr 2012 14:57:25 -0700
From: Eran Hammer <eran@hueniverse.com>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Thread-Topic: [apps-discuss] Reserved URI query parameter in draft-ietf-oauth-v2-bearer
Thread-Index: AQHNG0lWkXig/AJ3KkK9oC4oFdQOX5ad/8ZQ
Date: Mon, 16 Apr 2012 21:57:24 +0000
Message-ID: <0CBAEB56DDB3A140BA8E8C124C04ECA2FEB0E5@P3PWEX2MB008.ex2.secureserver.net>
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>
In-Reply-To: <4F8B346E.5040300@cs.tcd.ie>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [64.74.213.174]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: Pete Resnick <presnick@qualcomm.com>, Mark Nottingham <mnot@mnot.net>, Ned Freed <ned.freed@mrochek.com>, Apps Discuss <apps-discuss@ietf.org>, "draft-ietf-oauth-v2-bearer.all@tools.ietf.org" <draft-ietf-oauth-v2-bearer.all@tools.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 21:57:27 -0000

> -----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
> >