Re: [OAUTH-WG] native app support (was: Next draft)

Eran Hammer-Lahav <eran@hueniverse.com> Tue, 22 June 2010 23:41 UTC

Return-Path: <eran@hueniverse.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 5BB2D3A68E1 for <oauth@core3.amsl.com>; Tue, 22 Jun 2010 16:41:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.21
X-Spam-Level:
X-Spam-Status: No, score=-2.21 tagged_above=-999 required=5 tests=[AWL=0.389, 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 ULNJGKR0D5ss for <oauth@core3.amsl.com>; Tue, 22 Jun 2010 16:41:20 -0700 (PDT)
Received: from p3plex1out02.prod.phx3.secureserver.net (p3plex1out02.prod.phx3.secureserver.net [72.167.180.18]) by core3.amsl.com (Postfix) with SMTP id 686AB3A6884 for <oauth@ietf.org>; Tue, 22 Jun 2010 16:41:20 -0700 (PDT)
Received: (qmail 1635 invoked from network); 22 Jun 2010 23:41:27 -0000
Received: from unknown (HELO smtp.ex1.secureserver.net) (72.167.180.20) by p3plex1out02.prod.phx3.secureserver.net with SMTP; 22 Jun 2010 23:41:27 -0000
Received: from P3PW5EX1MB01.EX1.SECURESERVER.NET ([10.6.135.20]) by P3PW5EX1HT002.EX1.SECURESERVER.NET ([72.167.180.20]) with mapi; Tue, 22 Jun 2010 16:41:26 -0700
From: Eran Hammer-Lahav <eran@hueniverse.com>
To: Marius Scurtescu <mscurtescu@google.com>
Date: Tue, 22 Jun 2010 16:41:25 -0700
Thread-Topic: native app support (was: Next draft)
Thread-Index: AcsSYwiIysqd5dshRpC8Y1iCM/8veQAAVhig
Message-ID: <90C41DD21FB7C64BB94121FBBC2E72343B3EC841CC@P3PW5EX1MB01.EX1.SECURESERVER.NET>
References: <AANLkTikkG3T_DYKhjMbyYayi7SzZel3RJXFSguxq7SSZ@mail.gmail.com> <AANLkTilycD2urJZqbP8HaRcqUQ6bM30WAzy4c4VOmLql@mail.gmail.com> <90C41DD21FB7C64BB94121FBBC2E72343B3EC8419E@P3PW5EX1MB01.EX1.SECURESERVER.NET> <AANLkTinj6wsniocBB45Ul0P5WNsAjktz-p0antXpkyUX@mail.gmail.com> <90C41DD21FB7C64BB94121FBBC2E72343B3EC841C2@P3PW5EX1MB01.EX1.SECURESERVER.NET> <AANLkTilM3NSD0BLQk5rz5UWxsudTHSBmMbDcwmcztcVb@mail.gmail.com> <90C41DD21FB7C64BB94121FBBC2E72343B3EC841C8@P3PW5EX1MB01.EX1.SECURESERVER.NET> <AANLkTimykXBFhoAW4A3CY_GEc-v3I21SvKGKP08MjsX3@mail.gmail.com>
In-Reply-To: <AANLkTimykXBFhoAW4A3CY_GEc-v3I21SvKGKP08MjsX3@mail.gmail.com>
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] native app support (was: Next draft)
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, 22 Jun 2010 23:41:22 -0000

Write the spec then. It should be pretty short.

EHL

> -----Original Message-----
> From: Marius Scurtescu [mailto:mscurtescu@google.com]
> Sent: Tuesday, June 22, 2010 4:31 PM
> To: Eran Hammer-Lahav
> Cc: OAuth WG (oauth@ietf.org)
> Subject: Re: native app support (was: Next draft)
> 
> On Tue, Jun 22, 2010 at 4:26 PM, Eran Hammer-Lahav
> <eran@hueniverse.com> wrote:
> > In that case, I suggest an extension. But I just don't think this needs it. Why
> involve the server at all in this? The client should just host a web page
> somewhere with the format it wants or the language for the user.
> >
> > With $10 hosting, every client can host a web page somewhere.
> 
> Hard to tell, you could be right. Keep in mind that this page has to be reliable
> and secure, $10 will probably not give you that. An authz server can easily
> provide all this at almost no cost.
> 
> Marius
> 
> >
> > EHL
> >
> >> -----Original Message-----
> >> From: Marius Scurtescu [mailto:mscurtescu@google.com]
> >> Sent: Tuesday, June 22, 2010 4:17 PM
> >> To: Eran Hammer-Lahav
> >> Cc: OAuth WG (oauth@ietf.org)
> >> Subject: Re: native app support (was: Next draft)
> >>
> >> On Tue, Jun 22, 2010 at 4:07 PM, Eran Hammer-Lahav
> >> <eran@hueniverse.com> wrote:
> >> >
> >> >> -----Original Message-----
> >> >> From: Marius Scurtescu [mailto:mscurtescu@google.com]
> >> >> Sent: Tuesday, June 22, 2010 3:35 PM
> >> >> To: Eran Hammer-Lahav
> >> >> Cc: OAuth WG (oauth@ietf.org)
> >> >> Subject: Re: native app support (was: Next draft)
> >> >>
> >> >> On Tue, Jun 22, 2010 at 3:14 PM, Eran Hammer-Lahav
> >> >> <eran@hueniverse.com> wrote:
> >> >> > In OAuth 1.0a, we needed it for the patch. I don't think this
> >> >> > needs to be in
> >> >> the spec because it doesn't help interop. If the server supports
> >> >> such a scheme, it should document it. It also falls under
> >> >> "previously established redirection URI" which happens to point at the
> server.
> >> >>
> >> >> OK, that makes sense.
> >> >>
> >> >> What about:
> >> >> > Also, this page should put the verification code and the client
> >> >> > state (code and state) in the page title in a standard way such
> >> >> > that the native app can extract them from the window title. WRAP
> >> >> > defined how the title should be formed.
> >> >>
> >> >> Extension?
> >> >
> >> > I don't think this needs a spec. Just something provided by the
> >> > server. Does
> >> the client need any special handling? It can always just use a static
> >> web page to do this, no?
> >>
> >> A spec would help so all servers provide code and state in a
> >> consistent format. Client libraries can then provide methods to parse
> >> this. Also, client apps connecting to multiple servers can expect some
> consistency.
> >>
> >> Marius
> >>
> >> >
> >> > EHL
> >> >
> >> >>
> >> >> Marius
> >> >>
> >> >> >
> >> >> > EHL
> >> >> >
> >> >> >> -----Original Message-----
> >> >> >> From: Marius Scurtescu [mailto:mscurtescu@google.com]
> >> >> >> Sent: Tuesday, June 22, 2010 1:02 PM
> >> >> >> To: Eran Hammer-Lahav
> >> >> >> Cc: OAuth WG (oauth@ietf.org)
> >> >> >> Subject: Re: native app support (was: Next draft)
> >> >> >>
> >> >> >> On Tue, Jun 8, 2010 at 10:46 AM, Marius Scurtescu
> >> >> >> <mscurtescu@google.com> wrote:
> >> >> >> > In order to properly support native applications I suggest
> >> >> >> > the following changes:
> >> >> >> > [...]
> >> >> >> > 2. optional redirect_uri (default result page)
> >> >> >> >
> >> >> >> > Some native apps do not have a redirect_uri, as a result two
> >> >> >> > things are
> >> >> >> needed:
> >> >> >> >
> >> >> >> > 2.1 Either make redirect_uri optional or define a standard
> >> >> >> > value that signals that the client does not have such a page.
> >> >> >> >
> >> >> >> > 2.2 The authz server must supply a default result page, if
> >> >> >> > there is no redirect_uri. Also, this page should put the
> >> >> >> > verification code and the client state (code and state) in
> >> >> >> > the page title in a standard way such that the native app can
> >> >> >> > extract them from the window title. WRAP defined how the title
> should be formed.
> >> >> >>
> >> >> >> Should this also go to an extension? It is not introducing any
> >> >> >> new parameters, not sure if it belongs there. OAuth 1 at least
> >> >> >> defined the
> >> >> "oob" special value.
> >> >> >>
> >> >> >> Marius
> >> >> >
> >> >
> >