Re: [OAUTH-WG] Quick survey: fragment vs. query
Brian Eaton <beaton@google.com> Thu, 12 August 2010 16:25 UTC
Return-Path: <beaton@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 961613A68EF for <oauth@core3.amsl.com>; Thu, 12 Aug 2010 09:25:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.023
X-Spam-Level:
X-Spam-Status: No, score=-104.023 tagged_above=-999 required=5 tests=[AWL=1.953, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, 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 93sysEgeshWr for <oauth@core3.amsl.com>; Thu, 12 Aug 2010 09:25:04 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 709D53A6853 for <oauth@ietf.org>; Thu, 12 Aug 2010 09:25:04 -0700 (PDT)
Received: from hpaq2.eem.corp.google.com (hpaq2.eem.corp.google.com [172.25.149.2]) by smtp-out.google.com with ESMTP id o7CGPfKp009737 for <oauth@ietf.org>; Thu, 12 Aug 2010 09:25:41 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281630341; bh=Zat2wB+LsBjjglfBJUR35rGY/i8=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=D805TM+K5UR+DMk0YD/0imsdZuj+GgJApx9iBD9usveaT8NrmDd1HFVpDI63hGkWr v4JYuFjQGguZ6ioTzdRdQ==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=sZbp+hKJYDj5ANGN2v5VqGpmPkWhRKM4ezrBLSY/i2rSpNgYTgH+el+bfbzBJrKgr 1ofg608mR2Px9/8NXJGBQ==
Received: from pwj8 (pwj8.prod.google.com [10.241.219.72]) by hpaq2.eem.corp.google.com with ESMTP id o7CGPdgP008532 for <oauth@ietf.org>; Thu, 12 Aug 2010 09:25:39 -0700
Received: by pwj8 with SMTP id 8so543066pwj.1 for <oauth@ietf.org>; Thu, 12 Aug 2010 09:25:38 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.156.16 with SMTP id d16mr269041wfe.120.1281630337777; Thu, 12 Aug 2010 09:25:37 -0700 (PDT)
Received: by 10.143.46.3 with HTTP; Thu, 12 Aug 2010 09:25:37 -0700 (PDT)
In-Reply-To: <674292.82385.qm@web37604.mail.mud.yahoo.com>
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> <AANLkTikrLCnFyn-03QvBwRC6cuf_XW9xgb=RnoxpPyWk@mail.gmail.com> <674292.82385.qm@web37604.mail.mud.yahoo.com>
Date: Thu, 12 Aug 2010 09:25:37 -0700
Message-ID: <AANLkTimN5LWQX4pMa6y2Tny4dOGJiJX1zi1OigSOp6G9@mail.gmail.com>
From: Brian Eaton <beaton@google.com>
To: Oleg Gryb <oleg@gryb.info>
Content-Type: multipart/alternative; boundary="000e0cd17c880442e2048da2d1de"
X-System-Of-Record: true
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: Thu, 12 Aug 2010 16:25:06 -0000
Hi Oleg - "There are two kinds of information here: thirdparty.com state (e.g. list of selected photos on Facebook) and access token, which is really a printing.com secret. If you store access token in a printing.com cookie you don't need to share it with thirdparty.com." The goal of the flow is for third-party.com to access printing.com. That is what the user wants to have happen, and the service provider wants to allow it. Cheers, Brian On Thu, Aug 12, 2010 at 8:26 AM, Oleg Gryb <oleg_gryb@yahoo.com> wrote: > > > > > ----- Original Message ---- > > From: Brian Eaton <beaton@google.com> > > To: Oleg Gryb <oleg@gryb.info> > > Cc: Naitik Shah <naitik@facebook.com>; OAuth WG <oauth@ietf.org> > > Sent: Wed, August 11, 2010 11:03:12 AM > > Subject: Re: [OAUTH-WG] Quick survey: fragment vs. query > > > > On Tue, Aug 10, 2010 at 11:00 AM, Oleg Gryb <oleg_gryb@yahoo.com> wrote: > > > 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. > > > > This is incorrect. The security of this flow is based entirely on the > > same-origin policy. > > It is not: you get an access token from authz server and want to share it > with > thirdparty.com domain, which is in a different domain. You do it through > frames > running in a browser. Do a threat modeling as others suggested here. Why > the > access token needs to be shared with thirdparty.com is still not clear. > > > Note that both the web-server and the user-agent flows are entirely > > about passing information to third-party web sites, so suggesting that > > these flows should not pass information across domains is not really > > helpful. =) > > There are two kinds of information here: thirdparty.com state (e.g. list > of > selected photos on Facebook) and access token, which is really a > printing.com > secret. If you store access token in a printing.com cookie you don't need > to > share it with thirdparty.com. > > > > Yes, but you'll need a web server client for that. I'm saying that UA > >profile can > > > be POST based too. > > > > (a) The POST would bust the browser cache. > > (b) Javascript can't read POST bodies. (At least not to my knowledge. > > No, it can't and I never said it could. Busting the browser cache by > writing a > server side logic doesn't look like a big issue or performance lost to me. > You > could aqcwire access token once, persist it (e.g. through a cookie in > printing.com domain) and reuse until it's expired. > > > If we were willing to accept the performance penalty of busting the > > browser-cache, we would use the web-server flow. > > I'm still struggling to undertand what you're trying to achieve with UA > profile. > If it's getting rid of web server client, you didn't aachieve it, because > you > still have thridparty.com, which is actually a web server client. > > Here are some qs to the existing spec (v.10) related to that: > > "The user-agent profile is suitable for client applications residing > in a user-agent, typically implemented in a browser using a scripting > language such as JavaScript"Client application (JavaScript) resides and > is > implemented on thrirdparty.com. Browser only executes it, so you actually > do > have a web server client, it just you don't want to use server side code > and > server side objects, right? If this is the case, why don't you say it > explicitly? > > > "These clients cannot keep client > secrets confidential"What is wrong with cookies? > > I think, in your UA flow you'll also need to reflect: > > 1. thirdparty.com and it's role. > 2. the cross-domain secret sharing logic that we've discussed here and why > you > need it. > > > _______________________________________________ > > 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