Re: [OAUTH-WG] MAC Tokens body hash

"William J. Mills" <wmills@yahoo-inc.com> Mon, 01 August 2011 16:06 UTC

Return-Path: <wmills@yahoo-inc.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1F2FB11E80E4 for <oauth@ietfa.amsl.com>; Mon, 1 Aug 2011 09:06:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.04
X-Spam-Level:
X-Spam-Status: No, score=-17.04 tagged_above=-999 required=5 tests=[AWL=0.558, BAYES_00=-2.599, HTML_MESSAGE=0.001, USER_IN_DEF_WHITELIST=-15]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DUfzkOTlw857 for <oauth@ietfa.amsl.com>; Mon, 1 Aug 2011 09:06:41 -0700 (PDT)
Received: from nm6-vm3.bullet.mail.ne1.yahoo.com (nm6-vm3.bullet.mail.ne1.yahoo.com [98.138.91.136]) by ietfa.amsl.com (Postfix) with SMTP id 1B18611E8077 for <oauth@ietf.org>; Mon, 1 Aug 2011 09:06:41 -0700 (PDT)
Received: from [98.138.90.56] by nm6.bullet.mail.ne1.yahoo.com with NNFMP; 01 Aug 2011 16:06:44 -0000
Received: from [98.138.89.254] by tm9.bullet.mail.ne1.yahoo.com with NNFMP; 01 Aug 2011 16:06:44 -0000
Received: from [127.0.0.1] by omp1046.mail.ne1.yahoo.com with NNFMP; 01 Aug 2011 16:06:44 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 176585.47538.bm@omp1046.mail.ne1.yahoo.com
Received: (qmail 27093 invoked by uid 60001); 1 Aug 2011 16:06:43 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo-inc.com; s=ginc1024; t=1312214803; bh=alNCX0aB7rbtB67GpUlB5L1Ple/JpnHXzpysbkHQwIE=; h=X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Zs+eA8ufyilWxh96+hXlBBFIF67/6/ckQPye0/IpsEHIRHfplyTFFzCb0uwZL0QrKTnYou0njTOk25C4Ce7VYMPyr7Hf7t0jb20hyohU61Kk+IP4iXlcz7hQ6nkfby4Cp9ewBvn+luFCfQGX98RxBtJSZe50UZZib9uRT+LyovI=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=ginc1024; d=yahoo-inc.com; h=X-YMail-OSG:Received:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=qBGM+FH2QGTdAzTWVTk54ymNAgGBe4CoQ40orNQeauOICiF1H2nCf0BG+vbg0tflraHHUvVAZ0HorSbVj3yCPPZ9xlJpiNGzrxYKPKzzFKMR9uCOQ0KkDrY6diJ0+NSuqfLRlIpEIiyxZv3LC2+J8hKKT+IKvt3Mt5G6Fn45ITw=;
X-YMail-OSG: LB8cbdQVM1k0kHbVMUT6oUY3PijOR7sYK5fMfmLuUNwyc5x Gdg.QxxOZYsznFAZKp4KN4efZ4p67m6iICVxfpnO83eaj5uVSSA_A.PepsQX AfA95aWsdx67s5MYQvD5X0FWWiS.Out7Hu92QOi_zjuIkZuAdbOvEvNkSSi7 Bx4iFLT99khLVMxe0Oi4Ng2.FZv_mdr83UZ7QIVFO5fjVdJFc9c6e6zlGS6. UROHS.1ZmkBl6J1wAq63A3OgFBnxmo_pHxFjsydyjp48isdD.2yLgqIwVZbx .ZzBiWe1WDBZAYGZlb5wVny_2Jt38_3JcywcuTGp4tFSH7RGqO6cDY6CqWC2 R6NnWQBDekVTX
Received: from [99.31.212.42] by web31801.mail.mud.yahoo.com via HTTP; Mon, 01 Aug 2011 09:06:43 PDT
X-RocketYMMF: william_john_mills
X-Mailer: YahooMailWebService/0.8.113.315625
References: <90C41DD21FB7C64BB94121FBBC2E723450245F611B@P3PW5EX1MB01.EX1.SECURESERVER.NET> <1312213271.20715.YahooMailNeo@web31813.mail.mud.yahoo.com> <90C41DD21FB7C64BB94121FBBC2E723450245F61F2@P3PW5EX1MB01.EX1.SECURESERVER.NET>
Message-ID: <1312214803.15068.YahooMailNeo@web31801.mail.mud.yahoo.com>
Date: Mon, 01 Aug 2011 09:06:43 -0700
From: "William J. Mills" <wmills@yahoo-inc.com>
To: Eran Hammer-Lahav <eran@hueniverse.com>, OAuth WG <oauth@ietf.org>
In-Reply-To: <90C41DD21FB7C64BB94121FBBC2E723450245F61F2@P3PW5EX1MB01.EX1.SECURESERVER.NET>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1385684489-1312214803=:15068"
Cc: Ben Adida <ben@adida.net>, "'Adam Barth (adam@adambarth.com)'" <adam@adambarth.com>
Subject: Re: [OAUTH-WG] MAC Tokens body hash
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: "William J. Mills" <wmills@yahoo-inc.com>
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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, 01 Aug 2011 16:06:42 -0000

I think the extended parameter still has use if someone extends the MAC stuff specifically, whcih the additional hash is useful for a data signature, that's off the cuff though without implementing somethign to try it out.



________________________________
From: Eran Hammer-Lahav <eran@hueniverse.com>
To: William J. Mills <wmills@yahoo-inc.com>; OAuth WG <oauth@ietf.org>
Cc: Ben Adida <ben@adida.net>; "'Adam Barth (adam@adambarth.com)'" <adam@adambarth.com>
Sent: Monday, August 1, 2011 8:59 AM
Subject: RE: [OAUTH-WG] MAC Tokens body hash


Would you still like to see both such app-specific payload hash AND the ext parameter? I’m thinking of taking your idea and dropping ext. This way, the application can define anything they want to put in the payload hash.
 
EHL
 
From:William J. Mills [mailto:wmills@yahoo-inc.com] 
Sent: Monday, August 01, 2011 8:41 AM
To: Eran Hammer-Lahav; OAuth WG
Cc: Ben Adida; 'Adam Barth (adam@adambarth.com)'
Subject: Re: [OAUTH-WG] MAC Tokens body hash
 
Instead of "body" hash why not make it a payload hash or additional hash.  The app can include a hash of data there as defined by the app, and you've reserved a spot for that.
 

________________________________

From:Eran Hammer-Lahav <eran@hueniverse.com>
To: OAuth WG <oauth@ietf.org>
Cc: Ben Adida <ben@adida.net>; "'Adam Barth (adam@adambarth.com)'" <adam@adambarth.com>
Sent: Friday, July 29, 2011 6:43 PM
Subject: [OAUTH-WG] MAC Tokens body hash
I plan to drop support for the bodyhash parameter in the next draft based on bad implementation experience. Even with simple text body, UTF encoding has introduced significant issues for us. The current draft does not work using simple JS code between a browser and node.js even when both use the same v8 engine due to differences in the body encoding. Basically, the JS string used to send a request from the browser is not the actual string sent on the wire.
 
To fix that, we need to force UTF-8 encoding on both sides. However, that is very much application specific. This will not work for non-text bodies. Instead, the specification should offer a simple way to use the ext parameter for such needs, including singing headers. And by offer I mean give examples, but leave it application specific for now.
 
I am open to suggestions but so far all the solutions I came up with will introduce unacceptable complexity that will basically make this work useless.
 
EHL

_______________________________________________
OAuth mailing list
OAuth@ietf.org
https://www.ietf.org/mailman/listinfo/oauth