Re: [OAUTH-WG] How do we deal with unrecognized elements in requests and responses?
Marius Scurtescu <mscurtescu@google.com> Thu, 01 July 2010 18:07 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 A97193A6850 for <oauth@core3.amsl.com>; Thu, 1 Jul 2010 11:07:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.451
X-Spam-Level:
X-Spam-Status: No, score=-105.451 tagged_above=-999 required=5 tests=[AWL=0.526, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 fzccMNE4jq0m for <oauth@core3.amsl.com>; Thu, 1 Jul 2010 11:07:14 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id A6E9A3A67B6 for <oauth@ietf.org>; Thu, 1 Jul 2010 11:07:14 -0700 (PDT)
Received: from kpbe18.cbf.corp.google.com (kpbe18.cbf.corp.google.com [172.25.105.82]) by smtp-out.google.com with ESMTP id o61I7PaJ003375 for <oauth@ietf.org>; Thu, 1 Jul 2010 11:07:26 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1278007646; bh=gBe+BDKrvoCwgUH5tyFA/mlwlvk=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MhrgkWgnkTG09tkm7o88AvmANuMgjqi/npjokdrmMQ2ix6vxryZGA9gLj1dgcRbJV 46y1hEDCBpYtCuzmNl6gA==
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=hpNFUI5veQ84raKDx2eIqDTv/FCKBeGaz0SYocuVRNbHMK+F9/g/oZAXKL1ZZMn+S Y7x44aXsd3cY7I9HKomrA==
Received: from gxk2 (gxk2.prod.google.com [10.202.11.2]) by kpbe18.cbf.corp.google.com with ESMTP id o61I7O6L024538 for <oauth@ietf.org>; Thu, 1 Jul 2010 11:07:25 -0700
Received: by gxk2 with SMTP id 2so148092gxk.26 for <oauth@ietf.org>; Thu, 01 Jul 2010 11:07:24 -0700 (PDT)
Received: by 10.101.3.19 with SMTP id f19mr13158545ani.10.1278007644207; Thu, 01 Jul 2010 11:07:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.132.22 with HTTP; Thu, 1 Jul 2010 11:07:04 -0700 (PDT)
In-Reply-To: <1277989381.28743.160.camel@localhost.localdomain>
References: <7C01E631FF4B654FA1E783F1C0265F8C579D0F52@TK5EX14MBXC117.redmond.corp.microsoft.com> <90C41DD21FB7C64BB94121FBBC2E72343B3ED4BCB0@P3PW5EX1MB01.EX1.SECURESERVER.NET> <1277989381.28743.160.camel@localhost.localdomain>
From: Marius Scurtescu <mscurtescu@google.com>
Date: Thu, 01 Jul 2010 11:07:04 -0700
Message-ID: <AANLkTiktwkHt9YAFNfvu35RC0xTEWZIj87zMvbuY_Jzo@mail.gmail.com>
To: Justin Richer <jricher@mitre.org>
Content-Type: text/plain; charset="ISO-8859-1"
X-System-Of-Record: true
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] How do we deal with unrecognized elements in requests and responses?
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 18:07:15 -0000
On Thu, Jul 1, 2010 at 6:03 AM, Justin Richer <jricher@mitre.org> wrote: > #2 is the best route forward. If a particular extension requires its > parameters to be present and handled, then it has a few different > options. One is breaking at the server side, either with an explicit > error or throwing away some other required bit, which has been > mentioned. Another is looking for a callback return parameter on the > client side. If the server doesn't return it, then the server didn't > support that extension and the client should break the flow at that > point. > > I want to ask the list though: what exactly do we mean by ignoring > parameters? Is it that a server library will ignore unknown parameters > coming in when doing its processing? That I agree with completely. Same > with parameters coming back to the client from the server. If you don't > know about it, don't try to do anything with it. The one case that I > don't think libraries can *ignore* extra parameters is when using a > client library to build a request to a server. A particular server > implementation may require extra parameters on the request in order to > function (such as MediaWiki's title parameter), and a client needs to be > able to pass such things through. These parameters can effectively be > thought of as part of the address of the server URL, can be ignored by > the OAuth part of the server process, but cannot be dropped by the > client building the request. So "ignore" in this case means "quietly > pass through" and not "drop". > > In most instances outside of the Big Web Companies, OAuth is going to be > the new kid being grafted onto an existing framework or application. As > such, it really needs to play nice. Just a side note, with extensions also being simple names added to the protocol chances of a collision with an existing framework are much higher. Using MediaWiki as an example, if an extension proposes to use 'title' as a parameter name it will be approved if it does not collied with other OAuth 2 parameter names (core or extensions), but frameworks will not be checked (that is impossible). Marius
- [OAUTH-WG] How do we deal with unrecognized eleme… Yaron Goland
- Re: [OAUTH-WG] How do we deal with unrecognized e… Marius Scurtescu
- Re: [OAUTH-WG] How do we deal with unrecognized e… Ian McKellar
- Re: [OAUTH-WG] How do we deal with unrecognized e… Eran Hammer-Lahav
- Re: [OAUTH-WG] How do we deal with unrecognized e… David Recordon
- Re: [OAUTH-WG] How do we deal with unrecognized e… Eran Hammer-Lahav
- Re: [OAUTH-WG] How do we deal with unrecognized e… Igor Faynberg
- Re: [OAUTH-WG] How do we deal with unrecognized e… Zeltsan, Zachary (Zachary)
- Re: [OAUTH-WG] How do we deal with unrecognized e… Yaron Goland
- Re: [OAUTH-WG] How do we deal with unrecognized e… Robert Sayre
- Re: [OAUTH-WG] How do we deal with unrecognized e… Justin Richer
- Re: [OAUTH-WG] How do we deal with unrecognized e… Pelle Braendgaard
- Re: [OAUTH-WG] How do we deal with unrecognized e… Eran Hammer-Lahav
- Re: [OAUTH-WG] How do we deal with unrecognized e… Marius Scurtescu
- Re: [OAUTH-WG] How do we deal with unrecognized e… Justin Richer