Re: [OAUTH-WG] Comments on draft-ietf-oauth-v2-03.txt

Marius Scurtescu <mscurtescu@google.com> Mon, 10 May 2010 20:11 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 90AEA3A6D32 for <oauth@core3.amsl.com>; Mon, 10 May 2010 13:11:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.79
X-Spam-Level:
X-Spam-Status: No, score=-100.79 tagged_above=-999 required=5 tests=[AWL=-0.302, BAYES_05=-1.11, 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 J79uHqS3pQQ7 for <oauth@core3.amsl.com>; Mon, 10 May 2010 13:11:00 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id C357D28C298 for <oauth@ietf.org>; Mon, 10 May 2010 13:02:57 -0700 (PDT)
Received: from hpaq13.eem.corp.google.com (hpaq13.eem.corp.google.com [172.25.149.13]) by smtp-out.google.com with ESMTP id o4AK2jds006737 for <oauth@ietf.org>; Mon, 10 May 2010 13:02:45 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1273521765; bh=RcS66kS+t5Aqy5TGWM/XlbJH23A=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding; b=VYU0GZm/qouRElq3zJl+7R5SDdQIsNWz82ka3R2ksWD+z3qlnBm4+PWpc5gie30R/ Q3qi7WguMbOZEzw3qpuUQ==
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=lM0V3xwx7HstpbudvW3R/zoPpmfY/yhyM5zmm9ZDXvoPSqiwqXqB0Bb+1rs+iSZTL Z7Pl4u3hPv+lerF/XY7iw==
Received: from pwj8 (pwj8.prod.google.com [10.241.219.72]) by hpaq13.eem.corp.google.com with ESMTP id o4AK2hpw004200 for <oauth@ietf.org>; Mon, 10 May 2010 13:02:44 -0700
Received: by pwj8 with SMTP id 8so2915150pwj.24 for <oauth@ietf.org>; Mon, 10 May 2010 13:02:43 -0700 (PDT)
Received: by 10.141.213.31 with SMTP id p31mr3039603rvq.21.1273521763107; Mon, 10 May 2010 13:02:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.141.125.21 with HTTP; Mon, 10 May 2010 13:02:23 -0700 (PDT)
In-Reply-To: <90C41DD21FB7C64BB94121FBBC2E72343B3AB46E3D@P3PW5EX1MB01.EX1.SECURESERVER.NET>
References: <4BE730CC.1090607@lodderstedt.net> <90C41DD21FB7C64BB94121FBBC2E72343B3AB46E24@P3PW5EX1MB01.EX1.SECURESERVER.NET> <918F548B-2501-4630-977E-0A7D4484D067@gmail.com> <90C41DD21FB7C64BB94121FBBC2E72343B3AB46E37@P3PW5EX1MB01.EX1.SECURESERVER.NET> <36F7CC05-9622-45C7-8840-D3B3CB78CFF3@gmail.com> <90C41DD21FB7C64BB94121FBBC2E72343B3AB46E3D@P3PW5EX1MB01.EX1.SECURESERVER.NET>
From: Marius Scurtescu <mscurtescu@google.com>
Date: Mon, 10 May 2010 13:02:23 -0700
Message-ID: <AANLkTilcuz2TAil-TtKcH3qkWeafq2qFXp7WGEATiSYh@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)" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Comments on draft-ietf-oauth-v2-03.txt
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, 10 May 2010 20:11:01 -0000

On Sun, May 9, 2010 at 10:40 PM, Eran Hammer-Lahav <eran@hueniverse.com> wrote:
>> >>>> 7.  Refreshing an Access Token
>> >>>>
>> >>>> I would suggest to add an optional "scope" parameter to this request.
>> >>>> This could be used to downgrade the scope associated with a token.
>> >>>
>> >>> That would be the wrong way to do it given that people will expect
>> >>> to also
>> >> be able to upgrade scope.
>> >>
>> >> Would you elaborate? Would not providing a scope parameter enable any
>> >> potential change in scope to the access token? The change may be
>> >> neither an upgrade or downgrade, just different.
>> >
>> > Downgrading scope is the only modification allowed without getting the
>> end-user involved again (or using any of the flows from the beginning).
>> When you refresh a token, you can ask to get a new token with less scope
>> because that will not conflict with the access grant.
>>
>> The client could downgrade and then upgrade again later, which would not
>> change the delegation granted by a user.
>
> I think that will cause more confusion and problems than help. I am also not sure if there are real use cases for this limited capability.

Not sure how downgrade then upgrade would work. I think down/up grade
is always relative to the scope associated with the refreshed token.
The refresh token never changes, so the base scope is always the same.

Marius