Re: [OAUTH-WG] A display parameter for user authorization requests
David Recordon <recordond@gmail.com> Fri, 11 June 2010 16:03 UTC
Return-Path: <recordond@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 9D68F28C0E1 for <oauth@core3.amsl.com>; Fri, 11 Jun 2010 09:03:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.056
X-Spam-Level:
X-Spam-Status: No, score=-2.056 tagged_above=-999 required=5 tests=[AWL=0.543, BAYES_00=-2.599]
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 IwKbe23JUBjW for <oauth@core3.amsl.com>; Fri, 11 Jun 2010 09:03:34 -0700 (PDT)
Received: from mail-yw0-f179.google.com (mail-yw0-f179.google.com [209.85.211.179]) by core3.amsl.com (Postfix) with ESMTP id 1D82A28C0DD for <oauth@ietf.org>; Fri, 11 Jun 2010 09:03:32 -0700 (PDT)
Received: by ywh9 with SMTP id 9so1453735ywh.17 for <oauth@ietf.org>; Fri, 11 Jun 2010 09:03:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=c9AZNUQSUV76s/4dY7puue2Qz7QXSaxi/VS4VIT4GoE=; b=RmiiyViAPzuNDe1e5DBmF1ReVA4m0Iu2l1VPe7uPsy5S5o+S7BI+p1llx25yoA0psy M+wrm0BmaK5kvNRdhJT/T7Nw4yCMfbjhZib2pLIxT9qVqb/zAUblAd7JX9SBar5mkUw7 Efyb6+XP0mYbwof5CRRzxsIJSxx3IFK+nVmq4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=FXOe3eGXWfdsUJ7W84kPZldsK1A7xzg6JOP0dd5DOZjPEFFa7zTNKMOD9KPeSVt+nP twy4mUSkOaklmvallYY01rIMJH0HmWBq7gdTR3Ordln0EoVcd5Ot6ozv/Hln+25BYUVo Wl2SN+v3GG1WaXPVsyv42h60uR5p4zCfBI8vs=
MIME-Version: 1.0
Received: by 10.101.132.2 with SMTP id j2mr1975802ann.44.1276272206140; Fri, 11 Jun 2010 09:03:26 -0700 (PDT)
Received: by 10.231.192.4 with HTTP; Fri, 11 Jun 2010 09:03:26 -0700 (PDT)
In-Reply-To: <C837AB6A.33EBA%atom@yahoo-inc.com>
References: <AANLkTilJcCY470WSJfWlPlal07PNjQ6lLUq9Dy1UeQXk@mail.gmail.com> <C837AB6A.33EBA%atom@yahoo-inc.com>
Date: Fri, 11 Jun 2010 09:03:26 -0700
Message-ID: <AANLkTilP4Pr1vfpAsdqtKhdNyu9VCiCP-FcEqGY5M3g5@mail.gmail.com>
From: David Recordon <recordond@gmail.com>
To: Allen Tom <atom@yahoo-inc.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] A display parameter for user authorization requests
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: Fri, 11 Jun 2010 16:03:39 -0000
Cool, want to take a stab at the security considerations section of this? #1 and #2 feel like they fit there. I agree with #3 being nice, but without an API wouldn't you make an immediate mode request, see that it failed, and then make a normal request? --David On Fri, Jun 11, 2010 at 8:59 AM, Allen Tom <atom@yahoo-inc.com> wrote: > Hi David, > > Thanks a lot for writing this up! Some feedback: > > 1) If the user is required to enter their credentials (aka their password), > the UI must be displayed in an independent browser window (not in an inlined > iframe), with the address bar displayed. The AS must return framebusting JS > code to ensure that the login form is not iframed > > 2) It might be desirable to inline/lightbox the approval UI, if the user > already is logged into the AS and does not have to enter their password to > approve the request. In this case, the AS does not need to return > framebusting code, but should return anti-clickjacking code to protect the > approval button from being clickjacked > > 3) #2 implies that the client will have a way of determining if the user is > already logged into the AS before spawning either a popup window (if the > user is not logged in) or displaying an inline lightbox (if the user is > already logged in) An API similar to the OpenID openid.ui.mode=x-has-session > parameter or the FB.getLoginStatus() API is needed. > > http://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus > http://code.google.com/apis/accounts/docs/OpenID.html#Parameters > > I'll be happy to contribute some of the text. > > Thanks > Allen > > > > On 6/10/10 9:13 PM, "David Recordon" <recordond@gmail.com> wrote: > >> http://github.com/daveman692/OAuth-2.0/raw/master/draft-recordon-oauth-v2-ux-0 >> 1.txt >> >> >> On Thu, Jun 10, 2010 at 5:32 PM, David Recordon <recordond@gmail.com> wrote: >>> +1 for moving immediate here as well. >>> >>> >>> On Thu, Jun 10, 2010 at 4:18 PM, Eran Hammer-Lahav <eran@hueniverse.com> >>> wrote: >>>> Since these are all extensions to the end-user endpoint, I'd suggest we move >>>> the 'immediate' parameter here as well. >>>> >>>> <t hangText='immediate'> >>>> <vspace /> >>>> OPTIONAL. The parameter value must be set to <spanx >>>> style='verb'>true</spanx> or >>>> <spanx style='verb'>false</spanx>. If set to >>>> <spanx style='verb'>true</spanx>, the authorization server >>>> MUST NOT prompt the >>>> end-user to authenticate or approve access. Instead, the >>>> authorization server >>>> attempts to establish the end-user's identity via other means >>>> (e.g. browser >>>> cookies) and checks if the end-user has previously approved >>>> an identical access >>>> request by the same client and if that access grant is still >>>> active. If the >>>> authorization server does not support an immediate check or >>>> if it is unable to >>>> establish the end-user's identity or approval status, it MUST >>>> deny the request >>>> without prompting the end-user. Defaults to <spanx >>>> style='verb'>false</spanx> if >>>> omitted. >>>> </t> >>>> EHL >>>> >>>>> -----Original Message----- >>>>> From: David Recordon [mailto:recordond@gmail.com] >>>>> Sent: Wednesday, June 09, 2010 12:06 PM >>>>> To: Eran Hammer-Lahav; Allen Tom; Breno de Medeiros; Luke Shepard >>>>> Cc: OAuth WG >>>>> Subject: Re: [OAUTH-WG] A display parameter for user authorization >>>>> requests >>>>> >>>>> First draft of the UX Extension is at >>>>> http://github.com/daveman692/OAuth-2.0/raw/master/draft-recordon- >>>>> oauth-v2-ux-00.txt. >>>>> >>>>> Eran, I'm more than happy to have you take over as editor. >>>>> >>>>> I included Allen and Breno as authors since I followed Allen's suggestion >>>>> and >>>>> adopted the language preference parameter from the OpenID extension. I >>>>> also included Luke as an author since he wrote the first pass of a display >>>>> parameter. That said, none of them have seen this draft yet. >>>>> >>>>> --David >>>>> >>>>> >>>>> On Tue, Apr 13, 2010 at 12:36 PM, Allen Tom <atom@yahoo-inc.com> wrote: >>>>>> At least with regards to the language preference, how about if we just >>>>>> copy the openid.ui.lang parameter from the OpenID UI Extension? >>>>>> >>>>>> http://svn.openid.net/repos/specifications/user_interface/1.0/trunk/op >>>>>> enid-user-interface-extension-1_0.html#anchor3 >>>>>> >>>>>> In flows in which the client redirects the user's web browser to >>>>>> authorize access, the client MAY send the Authorization Server a hint >>>>>> regarding the user's preferred language by sending the following >>>>> parameter: >>>>>> >>>>>> lang >>>>>> The user's preferred languages as a [BCP 47] language priority >>>>>> list, represented as a comma-separated list of BCP 47 basic language >>>>>> ranges in decending priority order. For instance, the value >>>>>> "fr-CA,fr-FR,en- >>>>> CA" >>>>>> represents the preference for French spoken in Canada, French spoken >>>>>> in France, followed by English spoken in Canada. >>>>>> >>>>>> The language preference hint SHOULD take precedence over the >>>>>> Accept-Language HTTP header sent by the user's browser, and SHOULD >>>>>> take precedence over the language preference inferred by the user's IP >>>>> Address. >>>>>> >>>>>> BCP 47: http://tools.ietf.org/html/bcp47 >>>>>> >>>>>> Allen >>>>>> >>>>>> >>>>>> On 4/12/10 1:32 PM, "Eran Hammer-Lahav" <eran@hueniverse.com> >>>>> wrote: >>>>>> >>>>>> Between language preferences, display configuration, and immediate >>>>>> check, I think it might be worth to move that work to another draft. >>>>>> Timeline-wise, this has the potential of slowing us down. I also fear >>>>>> getting what is now a pretty simple spec much more complicated. >>>>>> >>>>>> Anyone cares to try a first draft or outline? I can do the editorial >>>>>> work if needed, but someone needs to write something first. >>>>>> >>>>>> EHL >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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-WG] A display parameter for user authoriza… David Recordon
- Re: [OAUTH-WG] A display parameter for user autho… Marius Scurtescu
- Re: [OAUTH-WG] A display parameter for user autho… Richard Barnes
- Re: [OAUTH-WG] A display parameter for user autho… David Recordon
- Re: [OAUTH-WG] A display parameter for user autho… Raffi Krikorian
- Re: [OAUTH-WG] A display parameter for user autho… Justin Hart
- Re: [OAUTH-WG] A display parameter for user autho… Peter Saint-Andre
- Re: [OAUTH-WG] A display parameter for user autho… Richard Barnes
- Re: [OAUTH-WG] A display parameter for user autho… Eran Hammer-Lahav
- Re: [OAUTH-WG] A display parameter for user autho… Raffi Krikorian
- Re: [OAUTH-WG] A display parameter for user autho… Brian Eaton
- Re: [OAUTH-WG] A display parameter for user autho… Anthony Nadalin
- Re: [OAUTH-WG] A display parameter for user autho… Marius Scurtescu
- Re: [OAUTH-WG] A display parameter for user autho… Eran Hammer-Lahav
- Re: [OAUTH-WG] A display parameter for user autho… Luke Shepard
- Re: [OAUTH-WG] A display parameter for user autho… Eran Hammer-Lahav
- Re: [OAUTH-WG] A display parameter for user autho… Allen Tom
- Re: [OAUTH-WG] A display parameter for user autho… Torsten Lodderstedt
- Re: [OAUTH-WG] A display parameter for user autho… Chuck Mortimore
- Re: [OAUTH-WG] A display parameter for user autho… Evan Gilbert
- Re: [OAUTH-WG] A display parameter for user autho… Luke Shepard
- Re: [OAUTH-WG] A display parameter for user autho… Eran Hammer-Lahav
- Re: [OAUTH-WG] A display parameter for user autho… Allen Tom
- Re: [OAUTH-WG] A display parameter for user autho… David Recordon
- Re: [OAUTH-WG] A display parameter for user autho… Breno de Medeiros
- Re: [OAUTH-WG] A display parameter for user autho… David Recordon
- Re: [OAUTH-WG] A display parameter for user autho… Breno de Medeiros
- Re: [OAUTH-WG] A display parameter for user autho… Eran Hammer-Lahav
- Re: [OAUTH-WG] A display parameter for user autho… Eran Hammer-Lahav
- Re: [OAUTH-WG] A display parameter for user autho… David Recordon
- Re: [OAUTH-WG] A display parameter for user autho… David Recordon
- Re: [OAUTH-WG] A display parameter for user autho… Allen Tom
- Re: [OAUTH-WG] A display parameter for user autho… David Recordon
- Re: [OAUTH-WG] A display parameter for user autho… Marius Scurtescu
- Re: [OAUTH-WG] A display parameter for user autho… Eran Hammer-Lahav
- Re: [OAUTH-WG] A display parameter for user autho… Evan Gilbert
- Re: [OAUTH-WG] A display parameter for user autho… Eran Hammer-Lahav
- Re: [OAUTH-WG] A display parameter for user autho… Naitik Shah
- Re: [OAUTH-WG] A display parameter for user autho… Eran Hammer-Lahav