Re: [OAUTH-WG] Proposal for single JSON response format
Evan Gilbert <uidude@google.com> Sun, 13 June 2010 09:47 UTC
Return-Path: <uidude@google.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 D93A13A67D3 for <oauth@core3.amsl.com>; Sun, 13 Jun 2010 02:47:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.492
X-Spam-Level:
X-Spam-Status: No, score=-100.492 tagged_above=-999 required=5 tests=[BAYES_50=0.001, FM_FORGED_GMAIL=0.622, GB_I_LETTER=-2, HTML_FONT_FACE_BAD=0.884, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100]
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 SVuFjkWYH4Ay for <oauth@core3.amsl.com>; Sun, 13 Jun 2010 02:47:03 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id D10E03A68F0 for <oauth@ietf.org>; Sun, 13 Jun 2010 02:47:02 -0700 (PDT)
Received: from hpaq13.eem.corp.google.com (hpaq13.eem.corp.google.com [172.25.149.13]) by smtp-out.google.com with ESMTP id o5D9l4Bn016203 for <oauth@ietf.org>; Sun, 13 Jun 2010 02:47:04 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1276422424; bh=bWkrACRqSG+0oVKRiicv/fpJjP0=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=fjpWwJQz3LoShUgBzYpuZfqyyOVUixw1qs7IxRV2qlupLx0un5kltheYiKWtUoPaX 7Gk724d1kh/IyOlvs6Pmw==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:from:date:message-id: subject:to:cc:content-type; b=KulTLkJuvOLLBfrfCL3HRW9PHX6fH8lROsVUL4RqdH/aoCvcLJ7JgeINM8uozc2gV s5I0Uq+X9NTyKgD9pkJ0Q==
Received: from vws16 (vws16.prod.google.com [10.241.21.144]) by hpaq13.eem.corp.google.com with ESMTP id o5D9l2b6016749 for <oauth@ietf.org>; Sun, 13 Jun 2010 02:47:03 -0700
Received: by vws16 with SMTP id 16so3705427vws.26 for <oauth@ietf.org>; Sun, 13 Jun 2010 02:47:02 -0700 (PDT)
Received: by 10.224.81.84 with SMTP id w20mr1416658qak.259.1276422422184; Sun, 13 Jun 2010 02:47:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.107.13 with HTTP; Sun, 13 Jun 2010 02:46:42 -0700 (PDT)
In-Reply-To: <AANLkTikdUoT_K9ls4kwCH4zbmWiUTzIYGM1eeIi2d8xB@mail.gmail.com>
References: <90C41DD21FB7C64BB94121FBBC2E72343B3EAF73EF@P3PW5EX1MB01.EX1.SECURESERVER.NET> <255B9BB34FB7D647A506DC292726F6E11263FEC9FC@WSMSG3153V.srv.dir.telstra.com> <4A5E1C55-D589-4F25-9D45-E640BA7C833F@facebook.com> <AANLkTik1HYTYa-Bc5kImyr6Oh6OLR0tqPgHiP7Hjeeu7@mail.gmail.com> <AANLkTikdUoT_K9ls4kwCH4zbmWiUTzIYGM1eeIi2d8xB@mail.gmail.com>
From: Evan Gilbert <uidude@google.com>
Date: Sun, 13 Jun 2010 02:46:42 -0700
Message-ID: <AANLkTinEJsrBHuW73XqF3fCWk7Ts2SpvgbgYO6X1Fl3P@mail.gmail.com>
To: Robert Sayre <sayrer@gmail.com>
Content-Type: multipart/alternative; boundary="00148531a6130ec47f0488e641f1"
Cc: "OAuth WG (oauth@ietf.org)" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Proposal for single JSON response format
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: Sun, 13 Jun 2010 09:47:05 -0000
-1 I disagree very strongly with this approach if I'm understanding correctly. Let me paraphrase to make sure I understand: All responses, even those encoded in a browser URL redirect back from the AS (redirect with verification code in the web server flow and the redirect with token in the user-agent flow) will be JSON This means that we will have a URL-encoded JSON blob as a form parameter (as it has to play nicely with existing URL parameters). So the response back in the web server flow would be: https://client.com/receiveVerificationCode?existingParam=value&oauth2=%7Bcode%3A'abc123'%2C+state%3A+'randomstatedata'%7D and the response back in the user-agent flow would be https://client.com/page?existingParam=value&oauth2=%7Baccess_token%3A+'accesstoken1234'%2Cexpires_in%3A3600%2Cstate%3A'randomstatedata'%7D Reasons why this is of concern: - Requires clients to do URL decoding *and* JSON decoding - Encourages unsafe JSON handling in the User-Agent flow (eval(JSON) = XSS hole) - Breaks the simple model we've been creating in these flows. Evan On Fri, Jun 11, 2010 at 1:51 PM, Robert Sayre <sayrer@gmail.com> wrote: > +1 > > On Fri, Jun 11, 2010 at 1:17 AM, Naitik Shah <n@daaku.org> wrote: > > +1 > > > > On Thu, Jun 10, 2010 at 5:50 PM, Luke Shepard <lshepard@facebook.com> > wrote: > >> > >> +1 > >> > >> On Jun 10, 2010, at 5:46 PM, Manger, James H wrote: > >> > >> > +1 > >> > > >> > -- > >> > James Manger > >> > > >> > ---------- > >> > From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On > Behalf > >> > Of Eran Hammer-Lahav > >> > Sent: Friday, 11 June 2010 6:29 AM > >> > To: OAuth WG (oauth@ietf.org) > >> > Subject: [OAUTH-WG] Proposal for single JSON response format > >> > > >> > - Support a single response format (including in the user-agent > >> > fragment) using JSON. > >> > _______________________________________________ > >> > 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 > > > > > > _______________________________________________ > > OAuth mailing list > > OAuth@ietf.org > > https://www.ietf.org/mailman/listinfo/oauth > > > > > > > > -- > > Robert Sayre > > "I would have written a shorter letter, but I did not have the time." > _______________________________________________ > OAuth mailing list > OAuth@ietf.org > https://www.ietf.org/mailman/listinfo/oauth >
- [OAUTH-WG] Proposal for single JSON response form… Eran Hammer-Lahav
- Re: [OAUTH-WG] Proposal for single JSON response … Justin Hart
- Re: [OAUTH-WG] Proposal for single JSON response … Eran Hammer-Lahav
- Re: [OAUTH-WG] Proposal for single JSON response … Brian Eaton
- Re: [OAUTH-WG] Proposal for single JSON response … Dick Hardt
- Re: [OAUTH-WG] Proposal for single JSON response … Dick Hardt
- Re: [OAUTH-WG] Proposal for single JSON response … Michael D Adams
- Re: [OAUTH-WG] Proposal for single JSON response … David Recordon
- Re: [OAUTH-WG] Proposal for single JSON response … Justin Richer
- Re: [OAUTH-WG] Proposal for single JSON response … Torsten Lodderstedt
- Re: [OAUTH-WG] Proposal for single JSON response … Chuck Mortimore
- Re: [OAUTH-WG] Proposal for single JSON response … Brian Eaton
- Re: [OAUTH-WG] Proposal for single JSON response … Nat
- Re: [OAUTH-WG] Proposal for single JSON response … Manger, James H
- Re: [OAUTH-WG] Proposal for single JSON response … Luke Shepard
- Re: [OAUTH-WG] Proposal for single JSON response … Naitik Shah
- Re: [OAUTH-WG] Proposal for single JSON response … Robert Sayre
- Re: [OAUTH-WG] Proposal for single JSON response … Evan Gilbert
- Re: [OAUTH-WG] Proposal for single JSON response … Eran Hammer-Lahav
- Re: [OAUTH-WG] Proposal for single JSON response … Evan Gilbert
- Re: [OAUTH-WG] Proposal for single JSON response … Dick Hardt
- Re: [OAUTH-WG] Proposal for single JSON response … Evan Gilbert
- Re: [OAUTH-WG] Proposal for single JSON response … Dick Hardt
- Re: [OAUTH-WG] Proposal for single JSON response … Eran Hammer-Lahav
- Re: [OAUTH-WG] Proposal for single JSON response … Evan Gilbert
- Re: [OAUTH-WG] Proposal for single JSON response … Dirk Balfanz