Re: [OAUTH-WG] A display parameter for user authorization requests

Allen Tom <atom@yahoo-inc.com> Fri, 11 June 2010 16:01 UTC

Return-Path: <atom@yahoo-inc.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 CA8703A68A3 for <oauth@core3.amsl.com>; Fri, 11 Jun 2010 09:01:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.869
X-Spam-Level:
X-Spam-Status: No, score=-15.869 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334, MIME_QP_LONG_LINE=1.396, USER_IN_DEF_WHITELIST=-15]
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 Jn1fmuHeZK1h for <oauth@core3.amsl.com>; Fri, 11 Jun 2010 09:01:35 -0700 (PDT)
Received: from mrout2-b.corp.re1.yahoo.com (mrout2-b.corp.re1.yahoo.com [69.147.107.21]) by core3.amsl.com (Postfix) with ESMTP id 6242C3A6935 for <oauth@ietf.org>; Fri, 11 Jun 2010 09:01:35 -0700 (PDT)
Received: from SNV-EXBH01.ds.corp.yahoo.com (snv-exbh01.ds.corp.yahoo.com [207.126.227.249]) by mrout2-b.corp.re1.yahoo.com (8.13.8/8.13.8/y.out) with ESMTP id o5BFxOjd072292; Fri, 11 Jun 2010 08:59:24 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; s=serpent; d=yahoo-inc.com; c=nofws; q=dns; h=received:user-agent:date:subject:from:to:cc:message-id: thread-topic:thread-index:in-reply-to:mime-version:content-type: content-transfer-encoding:x-originalarrivaltime; b=uipH2abv1qos27RsM8Z4sK6pxu2GoQsnfgolzBJaLnRAWKJuzOv/W7ksaYxYhjqT
Received: from SNV-EXVS03.ds.corp.yahoo.com ([207.126.227.235]) by SNV-EXBH01.ds.corp.yahoo.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 11 Jun 2010 08:59:23 -0700
Received: from 10.72.244.162 ([10.72.244.162]) by SNV-EXVS03.ds.corp.yahoo.com ([207.126.227.239]) via Exchange Front-End Server snv-webmail.corp.yahoo.com ([207.126.227.59]) with Microsoft Exchange Server HTTP-DAV ; Fri, 11 Jun 2010 15:59:23 +0000
User-Agent: Microsoft-Entourage/12.24.0.100205
Date: Fri, 11 Jun 2010 08:59:22 -0700
From: Allen Tom <atom@yahoo-inc.com>
To: David Recordon <recordond@gmail.com>, Eran Hammer-Lahav <eran@hueniverse.com>
Message-ID: <C837AB6A.33EBA%atom@yahoo-inc.com>
Thread-Topic: [OAUTH-WG] A display parameter for user authorization requests
Thread-Index: AcsJfw6PLrH8YmhcTE6JZEZcqei59g==
In-Reply-To: <AANLkTilJcCY470WSJfWlPlal07PNjQ6lLUq9Dy1UeQXk@mail.gmail.com>
Mime-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
X-OriginalArrivalTime: 11 Jun 2010 15:59:23.0859 (UTC) FILETIME=[0FAB9230:01CB097F]
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:01:36 -0000

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