Re: [OAUTH-WG] User-Agent flow and refresh tokens

Andrew Arnott <andrewarnott@gmail.com> Thu, 16 September 2010 03:53 UTC

Return-Path: <andrewarnott@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 877D93A6922 for <oauth@core3.amsl.com>; Wed, 15 Sep 2010 20:53:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.041
X-Spam-Level:
X-Spam-Status: No, score=-2.041 tagged_above=-999 required=5 tests=[AWL=0.557, BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 y6BJD4F0ul7p for <oauth@core3.amsl.com>; Wed, 15 Sep 2010 20:53:22 -0700 (PDT)
Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by core3.amsl.com (Postfix) with ESMTP id A23BB3A67FA for <oauth@ietf.org>; Wed, 15 Sep 2010 20:53:22 -0700 (PDT)
Received: by qwc9 with SMTP id 9so702957qwc.31 for <oauth@ietf.org>; Wed, 15 Sep 2010 20:53:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=VVNsqGznSU6T+2MmePBioetT5rh/qlQEwTIMy715yRI=; b=WoZBNvWkxymEFrQdCm21Z7JWIIs09gsxVwlUp1JqyTUa7sOqj+YYuc4Qys/YNATmRV Ssg9O2UySwHoWb7f9OpA8uPkLQAchOiZpIt3hyuq8sj/VVjOEOj9Ow0kM32XKMrXYfC2 Pt9n9SZn+NLEUpGDYEeqpz/8yCSVPV+WKVijU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=kJx5lGIcVCn9yV0DYixpDtE2ICw1awP3SvoyKd0xU+ZkidpYHJXHalwPvD6jwMx/Fv ZE92nUhDDcyoaW2YT3F6pmfaYWSMdeFFUBkUtWRoI5T9HYSTcWE1lJSOHTEwFCHey7iG HnPpgXkiTaIu2Fpb+3HIekHyopet9muhZJ0vY=
Received: by 10.229.238.70 with SMTP id kr6mr1810202qcb.147.1284609227562; Wed, 15 Sep 2010 20:53:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.226.140 with HTTP; Wed, 15 Sep 2010 20:53:27 -0700 (PDT)
In-Reply-To: <AANLkTikJGDUKCfiPiN_rAVXmbPF0SBN_sKNQFHw6-oqj@mail.gmail.com>
References: <4C913EE3.90704@lodderstedt.net> <AANLkTikJGDUKCfiPiN_rAVXmbPF0SBN_sKNQFHw6-oqj@mail.gmail.com>
From: Andrew Arnott <andrewarnott@gmail.com>
Date: Wed, 15 Sep 2010 20:53:27 -0700
Message-ID: <AANLkTime0dayBq1k+ee7xNp3pkBE2-Ltn-i=LNh0-XvB@mail.gmail.com>
To: Marius Scurtescu <mscurtescu@google.com>
Content-Type: multipart/alternative; boundary="001485f85e40af207504905864d6"
Cc: "OAuth WG (oauth@ietf.org)" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] User-Agent flow and refresh tokens
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, 16 Sep 2010 03:53:24 -0000

The user agent flow works for native apps that can host a web browser.  It
works pretty well in my experience.

Secrets on native apps are good!  The key is (no pun intended) that the
secret *not ship with the app*.  Each client should register for its own
client_id and secret when it is installed on the client machine.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death
your right to say it." - S. G. Tallentyre


On Wed, Sep 15, 2010 at 3:25 PM, Marius Scurtescu <mscurtescu@google.com>wrote:

> I don't see why would you use the user-agent flow with a native
> application? Maybe the spec should suggest only the web server flow.
> The device flow would also work, but that's not part of the core spec.
>
> Marius
>
>
>
> On Wed, Sep 15, 2010 at 2:47 PM, Torsten Lodderstedt
> <torsten@lodderstedt.net> wrote:
> >  I'm wondering whether it makes sense to allow for the issuance of
> refresh
> > tokens by the user-agent flow.
> >
> > Background of my considerations is the development of applications on
> mobile
> > devices (apps :-)). The draft suggests to either use the web server or
> the
> > user agent flow for the integration of such applications with an OAuth
> > authorization server. For sake of user experience, I would expect mobile
> > applications to use refresh tokens instead of sending the user through
> the
> > authorization on every application start. I also would assume that the
> > mobile client does not use a client secret because it cannot really
> protect
> > it from recovery. Instead, token theft could be encountered by replacing
> > refresh tokens with every request to the tokens endpoint.
> >
> > This scenario is feasable with the web server flow but not with the
> > user-agent flow. This is because the later does only support the issuance
> of
> > access tokens. In previous discussions this has been motivated by the
> weaker
> > security (missing client authentication) of the user-agent flow. But as
> > pointed out above, the web server flow can (and will be) used w/o client
> > secret, too.
> >
> > So why don't we allow for the  issuance of refresh tokens by the
> user-agent
> > flow?
> >
> > regards,
> > Torsten.
> >
> >
> >
> > _______________________________________________
> > 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
>