Re: [OAUTH-WG] Issue: Scope parameter

Marius Scurtescu <mscurtescu@google.com> Mon, 19 April 2010 04:13 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 3308E28C0F3 for <oauth@core3.amsl.com>; Sun, 18 Apr 2010 21:13:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.679
X-Spam-Level:
X-Spam-Status: No, score=-101.679 tagged_above=-999 required=5 tests=[AWL=0.298, 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 1D0AHX0IQuAr for <oauth@core3.amsl.com>; Sun, 18 Apr 2010 21:13:01 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id B3ED43A67E6 for <oauth@ietf.org>; Sun, 18 Apr 2010 21:12:59 -0700 (PDT)
Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id o3J4Cnar014698 for <oauth@ietf.org>; Mon, 19 Apr 2010 06:12:50 +0200
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1271650370; bh=EOoVHE0zyvwqUsuH4D4sVgEaf5o=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=CYg+TKvEjdfe8r1C0ouKkagWc2KdkB0jsRTJjBZG0OdQo91Ug1c03q45SSitcE9xJ f22QJuSFJJ29orsiQ6ADQ==
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:x-system-of-record; b=KyAiNSmbb3gtzh1n326GsHsESUHo1PITp4v2DLwKVeIWm+m7VicbBgkN6vhQGImoO 3o6pbsqndxE4QtjzNnnNw==
Received: from pwj4 (pwj4.prod.google.com [10.241.219.68]) by kpbe15.cbf.corp.google.com with ESMTP id o3J4Cm17029493 for <oauth@ietf.org>; Sun, 18 Apr 2010 21:12:48 -0700
Received: by pwj4 with SMTP id 4so3283648pwj.22 for <oauth@ietf.org>; Sun, 18 Apr 2010 21:12:48 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.141.107.2 with HTTP; Sun, 18 Apr 2010 21:12:28 -0700 (PDT)
In-Reply-To: <g2sfd6741651004181904q2f242fcexf2f7892c9b512068@mail.gmail.com>
References: <C7ECB1F7.32357%eran@hueniverse.com> <h2l987bab591004181812ve43197f9la55f59b753bd2959@mail.gmail.com> <o2wfd6741651004181838ob1dda59bpf7cb88d3b1892c1d@mail.gmail.com> <1676FB17-48B2-4125-991C-CE996C4DE66B@gmail.com> <g2sfd6741651004181904q2f242fcexf2f7892c9b512068@mail.gmail.com>
From: Marius Scurtescu <mscurtescu@google.com>
Date: Sun, 18 Apr 2010 21:12:28 -0700
Received: by 10.141.139.21 with SMTP id r21mr3489616rvn.2.1271650368412; Sun, 18 Apr 2010 21:12:48 -0700 (PDT)
Message-ID: <z2o74caaad21004182112he72e1a33i4397e2d5333a0c13@mail.gmail.com>
To: David Recordon <recordond@gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"
X-System-Of-Record: true
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Issue: Scope parameter
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: Mon, 19 Apr 2010 04:13:03 -0000

On Sun, Apr 18, 2010 at 7:04 PM, David Recordon <recordond@gmail.com> wrote:
> Does anyone have an implementation example where comma separated
> strings wouldn't work for the scope parameter?

Yes, Google currently is using a space separated list of URIs.

Why does the format matter?

Marius

>
>
> On Sun, Apr 18, 2010 at 6:47 PM, Dick Hardt <dick.hardt@gmail.com> wrote:
>> I would leave that to be AS defined -- different delimiters make sense in different environments -- it could be an expression -- just make it a string -- it will need to be URL encoded which will deal with any magic characters.
>>
>> -- Diok
>>
>>
>> On 2010-04-18, at 6:38 PM, David Recordon wrote:
>>
>>> I think we need to add a bit more definition to the scope parameter.
>>> Maybe as simple as a comma-separated list of strings.
>>>
>>>
>>> On Sun, Apr 18, 2010 at 6:12 PM, Dick Hardt <dick.hardt@gmail.com> wrote:
>>>> The scope parameter was included in WRAP at the request of library and AS
>>>> implementors to standardize a commonly included parameters.
>>>> The client_id parameter seems similar to the scope parameter. The meaning of
>>>> client_id is not defined in the spec and is AS specific. A client_id that a
>>>> developer uses with one AS may be different at a different AS.
>>>> The argument that defining the scope parameter will cause more confusion is
>>>> confusing itself. Why would a developer think they can use the same scope at
>>>> two different AS? The developer has to manage different client_ids,
>>>> different endpoint URIs and different PRs: not to mention different APIs.
>>>> Having a different scope between AS seems natural. Having a vendor defined
>>>> parameter name for different AS that all mean scope seems suboptimal.
>>>> A related example. Email has a subject parameter, we all have a similar idea
>>>> what it means, and it can be used differently in different situations, but
>>>> it was useful to create the placeholder for the optional subject of an email
>>>> message.
>>>> Proposal: put optional scope parameter back into all calls to obtain an
>>>> access token. Put optional scope parameter into calls to refresh an access
>>>> token.
>>>> -- Dick
>>>>
>>>> On Thu, Apr 15, 2010 at 12:07 PM, Eran Hammer-Lahav <eran@hueniverse.com>
>>>> wrote:
>>>>>
>>>>> WRAP includes a loosely defined scope parameter which allows for
>>>>> vendor-specific (and non-interoperable) use cases. This was requested by
>>>>> many working group members to be included in OAuth 2.0 with the argument
>>>>> that while it doesn't help interop, it makes using clients easier.
>>>>>
>>>>> The problem with a general purpose scope parameter that is completely
>>>>> undefined in structure is that it hurts interop more than it helps. It
>>>>> creates an expectation that values can be used across services, and it
>>>>> cannot be used without another spec defining its content and structure.
>>>>> Such
>>>>> as spec can simply define its own parameter.
>>>>>
>>>>> In addition, it is not clear what belongs in scope (list of resources,
>>>>> access type, duration of access, right to share data, rights to
>>>>> re-delegate).
>>>>>
>>>>> The rules should be that if a parameter cannot be used without another
>>>>> documentation, it should be defined in that other document.
>>>>>
>>>>> Proposal: Request proposals for a scope parameter definition that improve
>>>>> interop. Otherwise, keep the parameter out of the core spec.
>>>>>
>>>>> EHL
>>>>>
>>>>> _______________________________________________
>>>>> OAuth mailing list
>>>>> OAuth@ietf.org
>>>>> https://www.ietf.org/mailman/listinfo/oauth
>>>>
>>>>
>>>> _______________________________________________
>>>> OAuth mailing list
>>>> OAuth@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/oauth
>>>>
>>>>
>>
>>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>