Re: [OAUTH-WG] Proposal for single JSON response format
Justin Hart <jhart@photobucket.com> Thu, 10 June 2010 20:32 UTC
Return-Path: <jhart@photobucket.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 8D0C83A6783 for <oauth@core3.amsl.com>; Thu, 10 Jun 2010 13:32:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level:
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001]
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 eYsAsBADZMAr for <oauth@core3.amsl.com>; Thu, 10 Jun 2010 13:32:14 -0700 (PDT)
Received: from exhub003-1.exch003intermedia.net (exhub003-1.exch003intermedia.net [207.5.74.28]) by core3.amsl.com (Postfix) with ESMTP id 60CAC3A6994 for <oauth@ietf.org>; Thu, 10 Jun 2010 13:32:14 -0700 (PDT)
Received: from EXVMBX003-4.exch003intermedia.net ([207.5.74.44]) by exhub003-1.exch003intermedia.net ([207.5.74.28]) with mapi; Thu, 10 Jun 2010 13:32:16 -0700
From: Justin Hart <jhart@photobucket.com>
To: Eran Hammer-Lahav <eran@hueniverse.com>
Date: Thu, 10 Jun 2010 13:32:15 -0700
Thread-Topic: [OAUTH-WG] Proposal for single JSON response format
Thread-Index: AcsI3APo4e3qZ4sfTEm7y77nD5MoAA==
Message-ID: <C10D643A-9A1D-4BCE-B115-003E7051E188@photobucket.com>
References: <90C41DD21FB7C64BB94121FBBC2E72343B3EAF73EF@P3PW5EX1MB01.EX1.SECURESERVER.NET>
In-Reply-To: <90C41DD21FB7C64BB94121FBBC2E72343B3EAF73EF@P3PW5EX1MB01.EX1.SECURESERVER.NET>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
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: Thu, 10 Jun 2010 20:32:15 -0000
+1 for MUST JSON response, MAY form-encoded (and xml, etc etc) response via extension (response_format parameter?) ---- -- Justin Hart -- jhart@photobucket.com On Jun 10, 2010, at 2:29 PM, Eran Hammer-Lahav wrote: > After taking a break from our previous debate(s) on the issue of which response format to support, I would like to suggest the following: > > - Support a single response format (including in the user-agent fragment) using JSON. > > My reason for this is very simple, while right now we have a very limited need (key/value pairs), we already have a few proposals which require a richer syntax. As OAuth matures, I expect more and more extensions to make use of the server response to include additional parameters (flat or structured). By using JSON, we can very easily support "namespaces" (i.e. { "access_token":"xyz","ext":{...} }), multiple token in a single response, etc. > > I appreciate the simplicity in using form-encoded (both code and library dependency wise), but long term, it will create a real limitation and will require extensions to also specify a different response format. > > Those worried about the need to include a JSON library in cases where it will be hard to do (embedded devices, etc.), can always extend the protocol to provide a way to receive key/value form-encoded pairs. However, they will need to figure out how to accommodate structured responses if they wish support it. I am certain that the vast majority of implementations will have no problem including a JSON library. > > Please respond only with yes or no (+/- 1). If you have a different proposal, please post it in a new thread. If you are going to vote against this, please indicate if your objection is blocking (i.e. you are opposed to it and will block a consensus call with this approach). > > EHL > _______________________________________________ > 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