Re: [OAUTH-WG] Quick survey: fragment vs. query
"Gryb, Oleg" <Oleg_Gryb@intuit.com> Tue, 10 August 2010 20:21 UTC
Return-Path: <Oleg_Gryb@intuit.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 DF9FE3A6899 for <oauth@core3.amsl.com>; Tue, 10 Aug 2010 13:21:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 tYGJb+XpL3Zr for <oauth@core3.amsl.com>; Tue, 10 Aug 2010 13:21:20 -0700 (PDT)
Received: from mail1.intuit.com (mail1.intuit.com [12.149.175.11]) by core3.amsl.com (Postfix) with ESMTP id AB1013A68AD for <oauth@ietf.org>; Tue, 10 Aug 2010 13:21:20 -0700 (PDT)
DomainKey-Signature: s=default; d=intuit.com; c=nofws; q=dns; h=X-SBRS:X-IronPort-AV:Received:Received:X-MimeOLE: Content-class:MIME-Version:Content-Type: Content-Transfer-Encoding:Subject:Date:Message-ID: In-Reply-To:X-MS-Has-Attach:X-MS-TNEF-Correlator: Thread-Topic:Thread-Index:References:From:To:Cc: Return-Path:X-OriginalArrivalTime; b=qawKaWF26kIDPVZW3YYhMndmVTlPz50LcALc4AQyyziiyei7qqxs+15G wXFbe+ukZc2ZJQ2pgE7wKT8mpMNOIsQ1zs0ICt/vyDrWmqKWHQzTUWbXL o+U+gHwRh53hE0W;
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intuit.com; i=Oleg_Gryb@intuit.com; q=dns/txt; s=default; t=1281471716; x=1313007716; h=mime-version:content-transfer-encoding:subject:date: message-id:in-reply-to:references:from:to:cc; z=MIME-Version:=201.0|Content-Transfer-Encoding:=20quoted- printable|Subject:=20RE:=20[OAUTH-WG]=20Quick=20survey: =20fragment=20vs.=20query|Date:=20Tue,=2010=20Aug=202010 =2013:21:52=20-0700|Message-ID:=20<3555AD897E5CAE4BA5D9E0 8AFBD7A7490921EF6F@SDGEXEVS07.corp.intuit.net> |In-Reply-To:=20<AANLkTik5ArMTXpd5bHB+N9gEqe7cX+PzjLnQ+ =3DgrAn7M@mail.gmail.com>|References:=20<C862F736.37253%e ran@hueniverse.com><AANLkTil_MQ1-JxNC-5S3bLDo6-WhG0GMBHVX QvvN-jdv@mail.gmail.com><AANLkTi=3DA+ztAH8vbR-O8vYUxiE2cG jn-KHCpM05NE3fL@mail.gmail.com><8F6F3A55-274C-4F38-84C8-C 956D74504AE@lodderstedt.net><837544.77407.qm@web37602.mai l.mud.yahoo.com><F4265A73-F743-4E5F-BE16-5A7D31308B5A@fac ebook.com><917905.1164.qm@web37601.mail.mud.yahoo.com>=20 <AANLkTik5ArMTXpd5bHB+N9gEqe7cX+PzjLnQ+=3DgrAn7M@mail.gma il.com>|From:=20"Gryb,=20Oleg"=20<Oleg_Gryb@intuit.com> |To:=20"David=20Recordon"=20<recordond@gmail.com>|Cc:=20" Luke=20Shepard"=20<lshepard@facebook.com>,=0D=0A=09"Torst en=20Lodderstedt"=20<torsten@lodderstedt.net>,=0D=0A=09"N aitik=20Shah"=20<naitik@facebook.com>,=0D=0A=09"OAuth=20W G"=20<oauth@ietf.org>; bh=OLjfxJd67HWdRzDW7gpmQqpxOfdBlJ2CeEvtt6qOpAk=; b=j69quqAKo0AbKmxSIeNPlqGwZsgyf2RBHsPBlcGuXYVOI/H7wDLVwIZk 5r/JUKsLlcLvo8CVeOZbF34lfFeEmq6tlwdCSR7sMCxgYz+BKiq8oIPkh gYdAoicTa3cq1KV;
X-SBRS: None
X-IronPort-AV: E=Sophos;i="4.55,349,1278313200"; d="scan'208";a="245362361"
Received: from relay-ex.sd.intuit.com (HELO SDGEXBH03.corp.intuit.net) ([172.17.135.77]) by mail1.sdg.ie.intuit.com with ESMTP; 10 Aug 2010 13:21:53 -0700
Received: from SDGEXEVS07.corp.intuit.net ([172.17.135.182]) by SDGEXBH03.corp.intuit.net with Microsoft SMTPSVC(6.0.3790.4675); Tue, 10 Aug 2010 13:21:53 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 10 Aug 2010 13:21:52 -0700
Message-ID: <3555AD897E5CAE4BA5D9E08AFBD7A7490921EF6F@SDGEXEVS07.corp.intuit.net>
In-Reply-To: <AANLkTik5ArMTXpd5bHB+N9gEqe7cX+PzjLnQ+=grAn7M@mail.gmail.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [OAUTH-WG] Quick survey: fragment vs. query
Thread-Index: Acs4yUknv+mYZtcjReehRBpQN7wOTQAABMQw
References: <C862F736.37253%eran@hueniverse.com><AANLkTil_MQ1-JxNC-5S3bLDo6-WhG0GMBHVXQvvN-jdv@mail.gmail.com><AANLkTi=A+ztAH8vbR-O8vYUxiE2cGjn-KHCpM05NE3fL@mail.gmail.com><8F6F3A55-274C-4F38-84C8-C956D74504AE@lodderstedt.net><837544.77407.qm@web37602.mail.mud.yahoo.com><F4265A73-F743-4E5F-BE16-5A7D31308B5A@facebook.com><917905.1164.qm@web37601.mail.mud.yahoo.com> <AANLkTik5ArMTXpd5bHB+N9gEqe7cX+PzjLnQ+=grAn7M@mail.gmail.com>
From: "Gryb, Oleg" <Oleg_Gryb@intuit.com>
To: David Recordon <recordond@gmail.com>
X-OriginalArrivalTime: 10 Aug 2010 20:21:53.0687 (UTC) FILETIME=[AC159A70:01CB38C9]
X-Mailman-Approved-At: Tue, 10 Aug 2010 13:27:33 -0700
Cc: Naitik Shah <naitik@facebook.com>, OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Quick survey: fragment vs. query
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: Tue, 10 Aug 2010 20:23:10 -0000
Yes, but you'll need a web server client for that. I'm saying that UA profile can be POST based too. If you want, I can write an example of both client and server side code to explain what I mean. -----Original Message----- From: David Recordon [mailto:recordond@gmail.com] Sent: Tuesday, August 10, 2010 1:19 PM To: Oleg Gryb Cc: Luke Shepard; Torsten Lodderstedt; Naitik Shah; OAuth WG Subject: Re: [OAUTH-WG] Quick survey: fragment vs. query Hey Oleg, a server based "safer" version of the user agent flow is the web server flow. It doesn't pass the access token via the fragment or via any means without SSL. On Tue, Aug 10, 2010 at 11:00 AM, Oleg Gryb <oleg_gryb@yahoo.com> wrote: > Luke, > > Thanks for answering. Sorry, for been paranoid, but I think that you'll have > more qs in regards of your frame-based-cross-domain-secret-sharing solution. > > The thing is that each time when a web app with sensitive info can be run in > a frame, security people would advice to break that > frame-reads-other-frame-data logic, because it can lead to violation of same > origin policy. > > I think Torsten's suggestion is correct: somebody would need to "threat > model" the current UA flow. > > Alternatively, you might want to consider creating yet another "safer UA > flow" where access token will not be passed in a URL. It might require using > dynamic pages generated by a server, but if somebody wants to implement a > more secure solution, they'll at least have a choice. > > > > > From: Luke Shepard <lshepard@facebook.com> > To: Oleg Gryb <oleg@gryb.info> > Cc: Torsten Lodderstedt <torsten@lodderstedt.net>; David Recordon > <recordond@gmail.com>; Naitik Shah <naitik@facebook.com>; OAuth WG > <oauth@ietf.org> > Sent: Tue, August 10, 2010 10:23:56 AM > Subject: Re: [OAUTH-WG] Quick survey: fragment vs. query > > Here are the possible URLs: > http://static.facebook.com/connect/xd_proxy.php#code=10alkji&access_token=lzipa3p > http://static.facebook.com/connect/xd_proxy.php?code=10alkji#access_token=lzipa3p > Those who already use this flow in production (including Google, Facebook, > Twitter, and others) typically work like this: > - Parent frame initiates the transaction by spawning a popup or an iframe > - Response comes back to a static relay file (like the xd_proxy.php above) > - The relay interprets the URL, parses out arguments, and hands them to the > parent frame > - Parent frame then does what it wants. this could be making an API call via > JSONP, handing info to the server via Ajax, or something else. > Because the relay file is static, it isn't going to interpret the code > regardless, even if it is sent in the query parameter. So since the client > will handle it anyway, the fragment is better for two reasons: > 1/ Less code for the JS to just pull it out of the fragment > 2/ More efficient, as the relay file can be cached on the client. If you > include a code then you degrade performance because it busts the cache every > time. > > On Aug 10, 2010, at 9:35 AM, Oleg Gryb wrote: > > I was trying to understand that too (see "Is user agent profile secure" > thread). The answers that I've got were: > > 1. It's already coded this way. > 2. It's the most efficient way of doing that, because that relay.html page > is static and can be cached by a browser. > > None of the answers above looks very convincing to me, but that's where UA > is now. > > From: Torsten Lodderstedt <torsten@lodderstedt.net> > > Can someone pls. explain why code and token should both be returned in the > fragment? > > regards, > Torsten. > > _______________________________________________ > OAuth mailing list > OAuth@ietf.org > https://www.ietf.org/mailman/listinfo/oauth > > >
- [OAUTH-WG] Quick survey: fragment vs. query Eran Hammer-Lahav
- Re: [OAUTH-WG] Quick survey: fragment vs. query Brian Eaton
- Re: [OAUTH-WG] Quick survey: fragment vs. query David Recordon
- Re: [OAUTH-WG] Quick survey: fragment vs. query David Recordon
- Re: [OAUTH-WG] Quick survey: fragment vs. query Luke Shepard
- Re: [OAUTH-WG] Quick survey: fragment vs. query Naitik Shah
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Oleg Gryb
- Re: [OAUTH-WG] Quick survey: fragment vs. query Luke Shepard
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Eran Hammer-Lahav
- Re: [OAUTH-WG] Quick survey: fragment vs. query Oleg Gryb
- Re: [OAUTH-WG] Quick survey: fragment vs. query David Recordon
- Re: [OAUTH-WG] Quick survey: fragment vs. query Gryb, Oleg
- Re: [OAUTH-WG] Quick survey: fragment vs. query Brian Eaton
- Re: [OAUTH-WG] Quick survey: fragment vs. query Oleg Gryb
- Re: [OAUTH-WG] Quick survey: fragment vs. query Brian Eaton
- Re: [OAUTH-WG] Quick survey: fragment vs. query Naitik Shah
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Brian Eaton
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Brian Eaton
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Eran Hammer-Lahav
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Brian Eaton
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Brian Eaton
- Re: [OAUTH-WG] Quick survey: fragment vs. query Torsten Lodderstedt
- Re: [OAUTH-WG] Quick survey: fragment vs. query Zeltsan, Zachary (Zachary)
- Re: [OAUTH-WG] Quick survey: fragment vs. query Eran Hammer-Lahav