Re: [OAUTH-WG] Versioning

Justin Richer <jricher@mitre.org> Thu, 01 July 2010 19:38 UTC

Return-Path: <jricher@mitre.org>
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 7123928C122 for <oauth@core3.amsl.com>; Thu, 1 Jul 2010 12:38:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.925
X-Spam-Level:
X-Spam-Status: No, score=-5.925 tagged_above=-999 required=5 tests=[AWL=0.674, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 xIF4kfDvfq6V for <oauth@core3.amsl.com>; Thu, 1 Jul 2010 12:38:40 -0700 (PDT)
Received: from smtp-bedford.mitre.org (smtp-bedford.mitre.org [129.83.20.191]) by core3.amsl.com (Postfix) with ESMTP id DF55328C12C for <oauth@ietf.org>; Thu, 1 Jul 2010 12:38:39 -0700 (PDT)
Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o61JcpVH011405 for <oauth@ietf.org>; Thu, 1 Jul 2010 15:38:51 -0400
Received: from imchub1.MITRE.ORG (imchub1.mitre.org [129.83.29.73]) by smtp-bedford.mitre.org (8.13.1/8.13.1) with ESMTP id o61JcpG7011402; Thu, 1 Jul 2010 15:38:51 -0400
Received: from [129.83.50.65] (129.83.50.65) by imchub1.MITRE.ORG (129.83.29.73) with Microsoft SMTP Server id 8.2.254.0; Thu, 1 Jul 2010 15:38:50 -0400
From: Justin Richer <jricher@mitre.org>
To: Marius Scurtescu <mscurtescu@google.com>
In-Reply-To: <AANLkTinV8TT5gWzFYE88DJsEZS8Wv3dy_dPlRC-TaByp@mail.gmail.com>
References: <4C2C6D4A.5010401@cdatazone.org> <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C3E6@P3PW5EX1MB01.EX1.SECURESERVER.NET> <012AB2B223CB3F4BB846962876F47217059B693B@SNV-EXVS08.ds.corp.yahoo.com> <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C454@P3PW5EX1MB01.EX1.SECURESERVER.NET> <AANLkTikjW5OqYJIzwxrooAmHoWR5tNX1522TTBLH5rBT@mail.gmail.com> <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C475@P3PW5EX1MB01.EX1.SECURESERVER.NET> <AANLkTilTDOVNjJw9K0ZismTzbbNeuVcEBktE-8ojDfVR@mail.gmail.com> <012AB2B223CB3F4BB846962876F47217059B694F@SNV-EXVS08.ds.corp.yahoo.com> <AANLkTikZg5FlHsSCVaNJaF9qXL8x7iz9HPImXeJZqLWC@mail.gmail.com> <1278011235.28743.223.camel@localhost.localdomain> <AANLkTinV8TT5gWzFYE88DJsEZS8Wv3dy_dPlRC-TaByp@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Date: Thu, 01 Jul 2010 15:38:50 -0400
Message-ID: <1278013130.28743.229.camel@localhost.localdomain>
MIME-Version: 1.0
X-Mailer: Evolution 2.28.3
Content-Transfer-Encoding: 7bit
Cc: oauth@ietf.org
Subject: Re: [OAUTH-WG] Versioning
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 19:38:41 -0000

> > OAuth tokens as a form-encoded element in a post body? Yes. Keep it.
> 
> Just curious. What use case would require that the access token is put
> in the post body as opposed to an http header when accessing a
> protected resource?

If nothing else, it parallels the use case of a GET-style query
parameter. It makes sense to have it be valid in both ways to allow
developers to put the token in with whatever other parameters they're
passing along. I've got plenty of use cases here for the query
parameters: it's needed for cases where your client can't get any deeper
into HTTP than "hey go fetch me this URL". 

What use case says we shouldn't do POST parameters like that? A server
wanting to do early-dispatch of a request was brought up, but that was
only in the case of handling OAuth 1 and 2 simultaneously as I
understood it. If a server's going to be doing dispatch on auth headers
and query parameters already, it seems that it's got the wherewithal to
parse a form-encoded body, too.

 -- Justin