Re: [OAUTH-WG] register prefixes as opposed to full parameter names

Marius Scurtescu <mscurtescu@google.com> Thu, 01 July 2010 21:21 UTC

Return-Path: <mscurtescu@google.com>
X-Original-To: oauth@core3.amsl.com
Delivered-To: oauth@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C3E783A6A21 for <oauth@core3.amsl.com>; Thu, 1 Jul 2010 14:21:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.589
X-Spam-Level:
X-Spam-Status: No, score=-101.589 tagged_above=-999 required=5 tests=[AWL=0.388, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gZmIoHfYoAC2 for <oauth@core3.amsl.com>; Thu, 1 Jul 2010 14:21:20 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 76BA83A6A1B for <oauth@ietf.org>; Thu, 1 Jul 2010 14:21:19 -0700 (PDT)
Received: from wpaz13.hot.corp.google.com (wpaz13.hot.corp.google.com [172.24.198.77]) by smtp-out.google.com with ESMTP id o61LLUTv029869 for <oauth@ietf.org>; Thu, 1 Jul 2010 14:21:30 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1278019290; bh=0e58BbZzEnY4hvt0Otuyap+bF5o=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding; b=W1AqY7IRhR8JK7utJNaHPVLlBr2Gu4HJ0QVpkkDfiP8KhDbJeINQLk5XGlViZ3Dfb EgJ3TtkRJt4L44O+9AdCQ==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:from:date:message-id: subject:to:cc:content-type:content-transfer-encoding:x-system-of-record; b=XhVp71G/te35kHg7ZyNpJtnIbPcUjtvduqBysj33/x4sRbI/n8aCBvB8anW3aTlpx pToqLlM8P4Vq8kcX8Qd5w==
Received: from gxk26 (gxk26.prod.google.com [10.202.11.26]) by wpaz13.hot.corp.google.com with ESMTP id o61LLSSg024504 for <oauth@ietf.org>; Thu, 1 Jul 2010 14:21:29 -0700
Received: by gxk26 with SMTP id 26so1241568gxk.38 for <oauth@ietf.org>; Thu, 01 Jul 2010 14:21:28 -0700 (PDT)
Received: by 10.100.7.3 with SMTP id 3mr78410ang.174.1278019288495; Thu, 01 Jul 2010 14:21:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.132.22 with HTTP; Thu, 1 Jul 2010 14:21:08 -0700 (PDT)
In-Reply-To: <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C4E2@P3PW5EX1MB01.EX1.SECURESERVER.NET>
References: <AANLkTin7zWi7m_evTgI49JKXLPuVqYBFlCR8CtSYRKDM@mail.gmail.com> <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C4E2@P3PW5EX1MB01.EX1.SECURESERVER.NET>
From: Marius Scurtescu <mscurtescu@google.com>
Date: Thu, 01 Jul 2010 14:21:08 -0700
Message-ID: <AANLkTik_f9MRWIK4kZ3c5pANtPloOsxyzYeL6bqMFhbs@mail.gmail.com>
To: Eran Hammer-Lahav <eran@hueniverse.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] register prefixes as opposed to full parameter names
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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, 01 Jul 2010 21:21:24 -0000

On Thu, Jul 1, 2010 at 1:35 PM, Eran Hammer-Lahav <eran@hueniverse.com> wrote:
> I don't think this is necessary.
>
>> -----Original Message-----
>> From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf
>> Of Marius Scurtescu
>> Sent: Thursday, July 01, 2010 12:52 PM
>> To: OAuth WG
>> Subject: [OAUTH-WG] register prefixes as opposed to full parameter names
>>
>> For section 6.2, and possibly 6.3, I would suggest to register a prefix for all the
>> parameters defined by an extension.
>>
>> Pros:
>>
>> 1. Simpler registration, only one element needs to be registered, the prefix,
>> and not every single parameter name. Once an extension has a prefix
>> registered it can evolve and change the parameters it is using much easier.
>
> The registration is pretty simple and only requires reserving the name. All other information is defined in a specification. There is no limit on the number of records the registry can have, and mandating review for all registered parameters is a good thing. Note that review is mostly used to make sure people are not doing something really really stupid. It is not a process for obtaining rough consensus over any extension. This is why it uses Specification required and not RFC required.
>
>> 2. Greatly reduce the chances of a conflict with a query parameter used by an
>> authz server endpoint or client redirect_uri.
>
> There should not be any conflict. Either it has been registered or uses x_.

There can be. Here is the example I gave earlier in another thread.
MediaWiki uses the 'title' parameter. Some OAuth extension may
register and use this same name and this will prevent MediWiki from
being able to support that extension.


>> 3. Consistent with the generic vendor specific extension space ("x_").
>>
>> 4. Allows strict validation of OAuth parameters. Unknown extensions will be
>> ignored, but the known ones can be strictly validated.
>
> I don't see how this is any different. If you know an extension "set" you still need to hardcode all the possible parameter part of that set.

I guess you are right. This will work only if some special char is
used to delimit the prefix.


>> 5. Easy to determine what parameter is core and what is part of an
>> extension.
>
> How is that important? The point of extensibility is to extend the protocol without looking like patches or hacks. I think allowing new parameters to live as equal to core parameters is a good thing and is how protocols such as HTTP work.
>
>>
>> Cons:
>>
>> 1. Slightly longer parameter names.
>
> Also, messy, ugly, opens the door to extensions without review.

I don't get the last part, skipping reviews. As for beauty, that's relative ;-)


Marius