Re: [OAUTH-WG] Support for query/body parameters (Was Re: Versioning)

Torsten Lodderstedt <torsten@lodderstedt.net> Thu, 01 July 2010 22:04 UTC

Return-Path: <torsten@lodderstedt.net>
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 922313A694E for <oauth@core3.amsl.com>; Thu, 1 Jul 2010 15:04:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.467
X-Spam-Level:
X-Spam-Status: No, score=-1.467 tagged_above=-999 required=5 tests=[AWL=0.782, BAYES_00=-2.599, HELO_EQ_DE=0.35]
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 y+KnC6DRqQTN for <oauth@core3.amsl.com>; Thu, 1 Jul 2010 15:04:34 -0700 (PDT)
Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.36]) by core3.amsl.com (Postfix) with ESMTP id 597DD3A6A1B for <oauth@ietf.org>; Thu, 1 Jul 2010 15:04:34 -0700 (PDT)
Received: from p4fff04a2.dip.t-dialin.net ([79.255.4.162] helo=[127.0.0.1]) by smtprelay02.ispgateway.de with esmtpa (Exim 4.68) (envelope-from <torsten@lodderstedt.net>) id 1OURsC-0003Fp-1z; Fri, 02 Jul 2010 00:04:44 +0200
Message-ID: <4C2D10FB.2090308@lodderstedt.net>
Date: Fri, 02 Jul 2010 00:04:43 +0200
From: Torsten Lodderstedt <torsten@lodderstedt.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5
MIME-Version: 1.0
To: Eran Hammer-Lahav <eran@hueniverse.com>
References: <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C4D9@P3PW5EX1MB01.EX1.SECURESERVER.NET> <4C2D0DBA.70201@lodderstedt.net> <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C52A@P3PW5EX1MB01.EX1.SECURESERVER.NET>
In-Reply-To: <90C41DD21FB7C64BB94121FBBC2E72343B3ED4C52A@P3PW5EX1MB01.EX1.SECURESERVER.NET>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Df-Sender: 141509
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Support for query/body parameters (Was Re: 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 22:04:35 -0000

ok sounds good. But AFAIK "authentication required" is already the 
meaning of status code 401. So why another error parameter?

regards,
Torsten.

Am 01.07.2010 23:54, schrieb Eran Hammer-Lahav:
> That's where the error parameter will be (the only supported place in -09 for a failed protected resource response).
>
> EHL
>
>    
>> -----Original Message-----
>> From: Torsten Lodderstedt [mailto:torsten@lodderstedt.net]
>> Sent: Thursday, July 01, 2010 2:51 PM
>> To: Eran Hammer-Lahav
>> Cc: Marius Scurtescu; Justin Richer; oauth@ietf.org
>> Subject: Re: [OAUTH-WG] Support for query/body parameters (Was Re:
>> Versioning)
>>
>> I essentially agreed, except in 3. the server should send back status code 401
>> with a WWW-Authenticate header.
>>
>> regards,
>> Torsten.
>>
>> Am 01.07.2010 22:28, schrieb Eran Hammer-Lahav:
>>      
>>> I think all servers must support the header. I don't think we can demand all
>>>        
>> servers to support query or post parameters as that can conflict with their
>> existing namespace or architecture. I suggest we:
>>      
>>> 1. Make the "Token" scheme required in all resource servers 2. Allow
>>> resource servers to support the URI query or response body 3. Specify
>>> that when a request comes without the header to a server only supporting
>>>        
>> the header, the server should respond with error=authentication_required
>> to inform the client this form of authentication is not supported.
>>      
>>> EHL
>>>
>>>
>>>        
>>>> -----Original Message-----
>>>> From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On
>>>> Behalf Of Marius Scurtescu
>>>> Sent: Thursday, July 01, 2010 12:48 PM
>>>> To: Justin Richer
>>>> Cc: oauth@ietf.org
>>>> Subject: Re: [OAUTH-WG] Versioning
>>>>
>>>> On Thu, Jul 1, 2010 at 12:38 PM, Justin Richer<jricher@mitre.org>   wrote:
>>>>
>>>>          
>>>>>>> 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".
>>>>>
>>>>>            
>>>> You can still use query parameters with POST.
>>>>
>>>>
>>>>
>>>>          
>>>>> 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.
>>>>>
>>>>>            
>>>> Parsing the body is not trivial. Some filters do not have access to
>>>> it (apache mod_redirect for example), some frameworks will allow you
>>>> to access it once and then commit to a format, a decision that cannot
>>>> be made by a filter (in Java see ServletRequest: getInputStream vs
>>>>          
>> getReader vs getParameter).
>>      
>>>>
>>>> Marius
>>>> _______________________________________________
>>>> 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
>>>
>>>        
>