Re: [OAUTH-WG] OAuth Signature
Nat <sakimura@gmail.com> Wed, 28 July 2010 04:26 UTC
Return-Path: <sakimura@gmail.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 EBF7E3A6869 for <oauth@core3.amsl.com>; Tue, 27 Jul 2010 21:26:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.556
X-Spam-Level:
X-Spam-Status: No, score=-0.556 tagged_above=-999 required=5 tests=[AWL=-0.646, BAYES_00=-2.599, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=1.396, MISSING_HEADERS=1.292]
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 Acj9jG0xHhZR for <oauth@core3.amsl.com>; Tue, 27 Jul 2010 21:26:56 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 404FC3A681C for <oauth@ietf.org>; Tue, 27 Jul 2010 21:26:56 -0700 (PDT)
Received: by vws10 with SMTP id 10so4369423vws.31 for <oauth@ietf.org>; Tue, 27 Jul 2010 21:27:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:references:from :content-type:x-mailer:in-reply-to:message-id:date:cc :content-transfer-encoding:mime-version; bh=bsD3IFaQ4jC/M0ZlPgRFtpzrgoiP53iKhkwX/MD5FtA=; b=sIMks+FoxX8w0JkqS+FE9tqEm7nib2DUEZ+zYyVVoPonfv8JbNBNRsDvxwh4+i2KWW Mot9q00VNtZ4Bjf4pnWXFlZKQjJliUtS3XdbHD9HHquaIUmHf8Bsya1Mt8vleiRU+eL7 LnGx/ybOqbRXGdTDbyMbybesZ38Uo2CmqaOyQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:cc:content-transfer-encoding:mime-version; b=IiNVh6Zht4MTsO5exFVyN7VwYiLT49h9Dp/34szP+tPCyDBI/sxAuLlfXUBIrKwoDW q/k2RDvvQNYCQ9zY0ydGHbpc2rPARBQDAjENhhls3GhZUHz7A3bLZ2s8zZO25ud6jEmO KDhjBqaJGfOZxEMAOrD4p8qwp0ZcgYDeernak=
Received: by 10.220.89.212 with SMTP id f20mr5732449vcm.120.1280291235746; Tue, 27 Jul 2010 21:27:15 -0700 (PDT)
Received: from [172.16.217.87] ([12.157.157.133]) by mx.google.com with ESMTPS id v11sm3834599vbb.3.2010.07.27.21.27.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Jul 2010 21:27:14 -0700 (PDT)
References: <AANLkTi=XYFSVeNxA43k+zYwt6yoGDtioa3kR47eaNYB+@mail.gmail.com> <AANLkTikStNbY_qQr0vivO80HRNyxMpuBtaA799CwG_n9@mail.gmail.com> <AANLkTi=uxiXSD5AQc9Ugz2j1GrLtzZB0uK5gey-mdFac@mail.gmail.com> <AANLkTimgySKrj+B5avoFmV=PgF38-wPtyKP=JW7SR_H5@mail.gmail.com> <90C41DD21FB7C64BB94121FBBC2E72343B3EF903F7@P3PW5EX1MB01.EX1.SECURESERVER.NET>
From: Nat <sakimura@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail-2--811114340"
X-Mailer: iPhone Mail (8A306)
In-Reply-To: <90C41DD21FB7C64BB94121FBBC2E72343B3EF903F7@P3PW5EX1MB01.EX1.SECURESERVER.NET>
Message-Id: <763AD7DB-CBC1-4D2B-BE20-7092CE144367@gmail.com>
Date: Tue, 27 Jul 2010 21:27:56 -0700
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (iPhone Mail 8A306)
Cc: oauth <oauth@ietf.org>
Subject: Re: [OAUTH-WG] OAuth Signature
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: Wed, 28 Jul 2010 04:26:58 -0000
If nobody does, I could since this is one of the most crucial piece that I need. =nat @ Tokyo via iPhone On 2010/07/27, at 17:36, Eran Hammer-Lahav <eran@hueniverse.com> wrote: > Is someone going to turn this into an I-D anytime soon? > > > > EHL > > > > From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf Of Dirk Balfanz > Sent: Tuesday, July 27, 2010 4:04 PM > To: Nat Sakimura > Cc: oauth > Subject: Re: [OAUTH-WG] OAuth Signature > > > > > > On Tue, Jul 27, 2010 at 3:35 PM, Nat Sakimura <sakimura@gmail.com> wrote: > > On Wed, Jul 28, 2010 at 1:12 AM, Dirk Balfanz <balfanz@google.com> wrote: > > > > > > On Tue, Jul 27, 2010 at 12:34 AM, Nat Sakimura <sakimura@gmail.com> wrote: > >> > >> I have a fundamental question. > >> > >> While separating signature and payload by a dot "." seems ok, > >> I still have not the answer for the question "why not make everything > >> into JSON and base64url it?". > >> > >> i.e., Right now, you are proposing: > >> > >> base64url_encode(JSON(payload,envelope)).base64url_encode(signature) > >> > >> Why not > >> > >> base64url_encode(JSON(payload,envelope,signature) > > > > You need to say what exactly the signature is over. Presumably, it's over > > some representation of the payload and envelope, but you need to specify > > exactly which representation. So in this case you would have to say > > something like "the signature is over the concatenation of the > > base64-encodings of the JSON-encodings of the payload and envelope", or > > something along those lines. If you did exactly this, then you would base-64 > > encode twice. Similar issues come up if you change the definition of what > > the signature is over slightly. > > I did not spell out my question correctly. The pseudo code was very misleading. > By "JSON()" I was meaning something similar to magic signature json encoding > or something similar because I was mainly comparing JSON Token and > Magic Signature. > Of course, that cannot be read from what I wrote. Sorry for that. > > My question is: > "why not just use a profiled/modified version of Magic Signature" > > > > I think that's a fair question - in fact, I was sort of aiming for just that. Once I get a free minute, I'll see whether there is a way to write this as an MS profile... > > > > Dirk. > > > > > I do not want to have two signature methods. > If the currently proposed signature method can be unified with magic signature, > it would be great. > > > > > >> > >> It probably is less hassle in terms of coding. (It is true that some > >> parameters gets base64url encoded twice but > > > > How is encoding things twice "less hassle"? > > > >> > >> BTW, some of the envelope parameters such as alg needs to be signed as > >> well to thwart the algorithm replacing attack. > > > > Yes, of course. Remember that in the current proposal I don't have an > > envelope - everything is in the payload. That's partly because I didn't want > > to decide what gets signed and what doesn't - everything is signed. Which in > > this case is easy (alternatively, I guess, you could just say that both the > > envelope and the payload are signed). But it gets harder when you want to > > encrypt the token. In this case you really need to leave some parts > > unencrypted (so the recipient has _some_ information on how to decrypt the > > thing) - presumably those parts would go into an envelope. > > Dirk. > > > > > >> > >> -- > >> Nat Sakimura (=nat) > >> http://www.sakimura.org/en/ > >> http://twitter.com/_nat_en > > > > > > > > -- > > Nat Sakimura (=nat) > http://www.sakimura.org/en/ > http://twitter.com/_nat_en > >
- [OAUTH-WG] OAuth Signature Nat Sakimura
- Re: [OAUTH-WG] OAuth Signature Dirk Balfanz
- Re: [OAUTH-WG] OAuth Signature Dick Hardt
- Re: [OAUTH-WG] OAuth Signature Nat Sakimura
- Re: [OAUTH-WG] OAuth Signature Nat Sakimura
- Re: [OAUTH-WG] OAuth Signature Dirk Balfanz
- Re: [OAUTH-WG] OAuth Signature Eran Hammer-Lahav
- Re: [OAUTH-WG] OAuth Signature Nat
- Re: [OAUTH-WG] OAuth Signature Nat