Re: [OAUTH-WG] user-agent flow needs a rewrite

Brian Eaton <beaton@google.com> Sun, 11 July 2010 04:26 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 6BF5F3A6944 for <oauth@core3.amsl.com>; Sat, 10 Jul 2010 21:26:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.6
X-Spam-Level:
X-Spam-Status: No, score=-101.6 tagged_above=-999 required=5 tests=[AWL=0.377, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 5lfBE1mnzNVL for <oauth@core3.amsl.com>; Sat, 10 Jul 2010 21:26:06 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id CB4B83A68A4 for <oauth@ietf.org>; Sat, 10 Jul 2010 21:26:05 -0700 (PDT)
Received: from wpaz5.hot.corp.google.com (wpaz5.hot.corp.google.com [172.24.198.69]) by smtp-out.google.com with ESMTP id o6B4QBH4010451 for <oauth@ietf.org>; Sat, 10 Jul 2010 21:26:11 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1278822371; bh=mwaHKL9c+Jv+gIm07s0MHHzE1YM=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=yTXHhLbQFdrzx6eFMUsigUyQOnq1GZT0ug2IrJQIzB4ijbWlFYY/bc7Tqon6TLFk4 u09ZfXuWvJpyaM+rqv4CQ==
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=VrZy2PxXhtv1D7IZb9sKO9wF5QAvcn7QJkQaGaQXqaBwhpjmJo8yrQCWapvNy1veg KEaQgkQjVwrjLyKHB1gUw==
Received: from pxi12 (pxi12.prod.google.com [10.243.27.12]) by wpaz5.hot.corp.google.com with ESMTP id o6B4Q96x008426 for <oauth@ietf.org>; Sat, 10 Jul 2010 21:26:10 -0700
Received: by pxi12 with SMTP id 12so628363pxi.6 for <oauth@ietf.org>; Sat, 10 Jul 2010 21:26:09 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.148.10 with SMTP id v10mr1734203wfd.327.1278822369159; Sat, 10 Jul 2010 21:26:09 -0700 (PDT)
Received: by 10.142.193.19 with HTTP; Sat, 10 Jul 2010 21:26:09 -0700 (PDT)
In-Reply-To: <C85E90FD.36FB3%eran@hueniverse.com>
References: <AANLkTimYZg_PrDn9JvjHwuVHOwZuGIPZk6affFCTPQor@mail.gmail.com> <C85E90FD.36FB3%eran@hueniverse.com>
Date: Sat, 10 Jul 2010 21:26:09 -0700
Message-ID: <AANLkTilLjR9aJ-BmJ4qAwjvw3zUEYFUvsqZsEPnZL-rO@mail.gmail.com>
From: Brian Eaton <beaton@google.com>
To: Eran Hammer-Lahav <eran@hueniverse.com>
Content-Type: text/plain; charset="ISO-8859-1"
X-System-Of-Record: true
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] user-agent flow needs a rewrite
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: Sun, 11 Jul 2010 04:26:08 -0000

On Sat, Jul 10, 2010 at 9:05 PM, Eran Hammer-Lahav <eran@hueniverse.com> wrote:
> There is no user-agent flow anymore.

Yeah.  That's a bug. =(

> The request was to allow it to
> obtain both when using a web-based component together with the user-agent.

Right, this didn't use to be possible, but Brian Ellin asked for this,
and several people agreed it was a good idea.  Unfortunately when that
feature got added, it broke a bunch of other stuff:
- all of the descriptive language about the user-agent flow is inaccurate
- if anyone tries to use the verification code approach with the
user-agent flow, the user-agent flow is no longer efficient

So in the quest to add a new feature, we broke other features.  Plus
we didn't get the new feature right.  This sounds like a normal
software development project. =)

Let me know what you think of the new language I proposed.

Note that this pretty much requires that the "type" parameter return
to the authorization URL.  That's a good thing.  If authorization
servers know about the client environment, they do a better job of
meeting the client's needs.

(Also note that we tried leaving this parameter out of WRAP, and
regretted it afterwards.)

Cheers,
Brian