Re: [OAUTH-WG] User-Agent flow and refresh tokens
Marius Scurtescu <mscurtescu@google.com> Sun, 19 September 2010 19:08 UTC
Return-Path: <mscurtescu@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 5B8153A68A4 for <oauth@core3.amsl.com>; Sun, 19 Sep 2010 12:08:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.036
X-Spam-Level:
X-Spam-Status: No, score=-105.036 tagged_above=-999 required=5 tests=[AWL=-0.548, BAYES_05=-1.11, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_MED=-4, 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 CMAnpyzNJQ2j for <oauth@core3.amsl.com>; Sun, 19 Sep 2010 12:08:52 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by core3.amsl.com (Postfix) with ESMTP id 2AD3E3A687F for <oauth@ietf.org>; Sun, 19 Sep 2010 12:08:52 -0700 (PDT)
Received: from hpaq13.eem.corp.google.com (hpaq13.eem.corp.google.com [172.25.149.13]) by smtp-out.google.com with ESMTP id o8JJ9Fej008529 for <oauth@ietf.org>; Sun, 19 Sep 2010 12:09:15 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1284923355; bh=YtT9hFISDiL7xQ9RHHRIva1QLaw=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding; b=Isrl70G1TqVnHVYxITqEnx2qAw4pM8AHRDkDfIJuT5Xb4ihnuAHTweDNi+DJD5ZKJ q4pclfzVDZx/sTQCX9DJg==
Received: from gxk6 (gxk6.prod.google.com [10.202.11.6]) by hpaq13.eem.corp.google.com with ESMTP id o8JJ9Dww027398 for <oauth@ietf.org>; Sun, 19 Sep 2010 12:09:14 -0700
Received: by gxk6 with SMTP id 6so1351821gxk.16 for <oauth@ietf.org>; Sun, 19 Sep 2010 12:09:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=291SIq1fBHjLUFlBpFH50d6dXCZFhCmVLt4gWNTduBQ=; b=HVzUubIEbJ66EiIHquFmVyUva9V1Vq3WvlBmNok6JdtkmflcOlf41SPk/lSdMxMBQM RMcGLUrZv4Dcf5ADGNng==
DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=EBIonO7KKwFsCJS9YmYaBkP6KR/vMCJfxb6XCXK7rGRHSp69YFb2TyYg0sqMFjSMHd dFpxyfWk9M/yDbg6ab9g==
Received: by 10.100.108.8 with SMTP id g8mr8247953anc.174.1284923353160; Sun, 19 Sep 2010 12:09:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.6.6 with HTTP; Sun, 19 Sep 2010 12:08:53 -0700 (PDT)
In-Reply-To: <4C961E36.1090506@lodderstedt.net>
References: <4C913EE3.90704@lodderstedt.net> <AANLkTikJGDUKCfiPiN_rAVXmbPF0SBN_sKNQFHw6-oqj@mail.gmail.com> <AANLkTime0dayBq1k+ee7xNp3pkBE2-Ltn-i=LNh0-XvB@mail.gmail.com> <0B18D334-441B-48C0-8836-8F285404B53F@lodderstedt.net> <AANLkTimL1TL57iJ5MOJTcEmog5e-9vjZNCOAyKLS4Dt1@mail.gmail.com> <6A068F15-5B15-444E-AAC3-354EFB866A4A@lodderstedt.net> <AANLkTi=KpHx0+k+Lu=0ykDVYUpvd2cWmbBFMeRMwp2uj@mail.gmail.com> <4C961E36.1090506@lodderstedt.net>
From: Marius Scurtescu <mscurtescu@google.com>
Date: Sun, 19 Sep 2010 12:08:53 -0700
Message-ID: <AANLkTinpgRLXVy4r8w2OSLrh=usnHwXqCG_=P-JDjHbK@mail.gmail.com>
To: Torsten Lodderstedt <torsten@lodderstedt.net>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
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: Sun, 19 Sep 2010 19:08:53 -0000
On Sun, Sep 19, 2010 at 7:29 AM, Torsten Lodderstedt <torsten@lodderstedt.net> wrote: > Am 16.09.2010 21:35, schrieb Marius Scurtescu: >> >> On Thu, Sep 16, 2010 at 12:00 PM, Torsten Lodderstedt >> <torsten@lodderstedt.net> wrote: >>> >>> I don't know whether I understand you correctly. Are you saying that >>> refresh tokens only make sense in Web servers? >> >> I was referring to the "web server" flow/profile. Not web servers in >> general. >> >> Why would a native app use the user-agent flow (response_type=token) >> over the web server flow (response_type=code)? > > The draft mentions both options > (http://tools.ietf.org/html/draft-ietf-oauth-v2-10#section-1.4.3) and also > states: > > "Embedded user-agents often offer a better end-user flow, as they remove the > need to switch context and open new windows." Embedded user-agent does not mean user-agent profile. The client can embed the browser (aka user-agent) and then use either the web server (response_type=code) or the user-agent (response_type=toke) profiles. "user-agent' is used in two totally different (and orthogonal) contexts. > Luke Shepard also indicated in his posting > http://www.ietf.org/mail-archive/web/oauth/current/msg03509.html that > facebook supports the user agent flow for desktop applications. Facebook's > iOS SDK seems to use the same technique for mobile apps. Yes, Facebook is recommending the User-Agent flow for desktop applications. This works for them because access tokens issued by Facebook are not short lived, I don't think they expire. The desktop app does not need a refresh token. If the authz server is issuing short lived access tokens and also refresh tokens then the user-agent profile does not work so well anymore. As far as I can tell in this case there is no reason to use this profile with desktop apps, just use the web server profile. Marius
- [OAUTH-WG] User-Agent flow and refresh tokens Torsten Lodderstedt
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Marius Scurtescu
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Andrew Arnott
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Torsten Lodderstedt
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Marius Scurtescu
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Torsten Lodderstedt
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Marius Scurtescu
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Kris Selden
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Torsten Lodderstedt
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Torsten Lodderstedt
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Marius Scurtescu
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Luke Shepard
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Kris Selden
- Re: [OAUTH-WG] User-Agent flow and refresh tokens Torsten Lodderstedt