Re: [OAUTH-WG] Defining a maximum token length?

John Kemp <john@jkemp.net> Sat, 10 April 2010 13:37 UTC

Return-Path: <john@jkemp.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 D0F973A694F for <oauth@core3.amsl.com>; Sat, 10 Apr 2010 06:37:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.615
X-Spam-Level:
X-Spam-Status: No, score=-1.615 tagged_above=-999 required=5 tests=[AWL=0.650, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334]
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 gCjJbAM5iwh9 for <oauth@core3.amsl.com>; Sat, 10 Apr 2010 06:37:10 -0700 (PDT)
Received: from outbound-mail-01.bluehost.com (cpoproxy1-pub.bluehost.com [69.89.21.11]) by core3.amsl.com (Postfix) with SMTP id 9FE923A6948 for <oauth@ietf.org>; Sat, 10 Apr 2010 06:37:10 -0700 (PDT)
Received: (qmail 11039 invoked by uid 0); 10 Apr 2010 13:37:06 -0000
Received: from unknown (HELO box320.bluehost.com) (69.89.31.120) by cpoproxy1.bluehost.com with SMTP; 10 Apr 2010 13:37:06 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=jkemp.net; h=Received:Subject:Mime-Version:Content-Type:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer:X-Identified-User; b=pSqY/JNYSn7vaj6zmP2h+r8KVa4dAJ2Z1zlp6SX6OoJbxTgJP4kgy8DghXxuhl0yfoQBqh8QLUyoe/tEf3Av7yoDK+ceKOkDRoBrKS0iF09B36YVvnv2dJ5aHDgnWNEb;
Received: from cpe-69-205-56-47.nycap.res.rr.com ([69.205.56.47] helo=[192.168.1.103]) by box320.bluehost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from <john@jkemp.net>) id 1O0ary-0007Lh-8P; Sat, 10 Apr 2010 07:37:06 -0600
Mime-Version: 1.0 (Apple Message framework v1078)
Content-Type: text/plain; charset="us-ascii"
From: John Kemp <john@jkemp.net>
In-Reply-To: <4BC0234D.8040700@lodderstedt.net>
Date: Sat, 10 Apr 2010 09:37:03 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <31A9294B-3583-4BA0-8A56-FC8A3C00FED5@jkemp.net>
References: <C7E50B2D.2A788%atom@yahoo-inc.com> <4BC0234D.8040700@lodderstedt.net>
To: Torsten Lodderstedt <torsten@lodderstedt.net>
X-Mailer: Apple Mail (2.1078)
X-Identified-User: {1122:box320.bluehost.com:jkempnet:jkemp.net} {sentby:smtp auth 69.205.56.47 authed with john+jkemp.net}
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Defining a maximum token length?
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: Sat, 10 Apr 2010 13:37:12 -0000

On Apr 10, 2010, at 3:05 AM, Torsten Lodderstedt wrote:

> Hi Allen,
> 
> as I already posted, I don't think a size limit is a good idea.

+1 

> 
> Regarding your example: As per RFC-2109, 4KB is the minimum size that must be supported by user agents. The maximum size is not restricted:
> "In general, user agents' cookie support should have no fixed limits.".
> 
> Moreover, other HTTP authentication mechanisms need much more than 4KB, For example, SPNEGO authentication headers can be up to 12392 bytes.

Cheers,

- johnk

> 
> regards,
> Torsten.
> 
> Am 10.04.2010 01:49, schrieb Allen Tom:
>> I think a good precedent would be to use the HTTP Cookie size limit, which
>> is 4KB.
>> 
>> An OAuth Access Token is like an HTTP Authorization cookie. They're both
>> bearer tokens that are used as a credentials for a client to access
>> protected resources on behalf of the end user.
>> 
>> All Oauth clients have to implement HTTP anyway, so 4KB sounds like a
>> reasonable limit.
>> 
>> Allen
>> 
>> 
>> 
>>   
>>> On Fri, Apr 9, 2010 at 3:14 AM, Luke Shepard<lshepard@facebook.com>  wrote:
>>>     
>>   
>>>> So, what is a reasonable limit for the token length?  1k? 2k? 4k? 5mb? I
>>>> suggest some language like this:
>>>> 
>>>> 
>>>>       
>> _______________________________________________
>> 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