Re: [OAUTH-WG] Quick survey: fragment vs. query

David Recordon <recordond@gmail.com> Wed, 14 July 2010 18:11 UTC

Return-Path: <recordond@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 63B7F3A69E0 for <oauth@core3.amsl.com>; Wed, 14 Jul 2010 11:11:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.288
X-Spam-Level:
X-Spam-Status: No, score=-2.288 tagged_above=-999 required=5 tests=[AWL=0.310, 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 v2N78DxWiigk for <oauth@core3.amsl.com>; Wed, 14 Jul 2010 11:11:03 -0700 (PDT)
Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.214.172]) by core3.amsl.com (Postfix) with ESMTP id 6DEFE3A6A9C for <oauth@ietf.org>; Wed, 14 Jul 2010 11:11:01 -0700 (PDT)
Received: by iwn38 with SMTP id 38so29321iwn.31 for <oauth@ietf.org>; Wed, 14 Jul 2010 11:11:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=olmy8YjGmuTM8X/CGln2EBOKE02ZLZG2HowxqENbaVA=; b=QXDG7/nHrF+JvqtoWAQ759dq89MAD7iAH9c27lEZq2IQbiTMKlSm3xtHxVChQVLUTy GFbkdX1sl7pj9kWlsOPxg1VUClJjQpZcz4GhR8HDgtDs733NC9wXuRm3zScEShgLjwz6 jaqaGqMnzS1UdxZyaY6zOjkzQjRcLG/Hmsy1c=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xSSCACFzLPO4XgNGDFJh8Lf7/Z0w95HkGLZdKxesNfICDMAjBgY39HHRqXxlZLREnH Fgaqlycab5O5P5OyyvZHbmfqoY/8if0J3BhKlmJVTt86d7BskVo7nU0DkKs0BCudDWgG BT+JbayfnYOFIC1qQk1QwLp5QrUlLRyjJQG9A=
MIME-Version: 1.0
Received: by 10.231.166.9 with SMTP id k9mr15830125iby.127.1279131071236; Wed, 14 Jul 2010 11:11:11 -0700 (PDT)
Received: by 10.231.196.88 with HTTP; Wed, 14 Jul 2010 11:11:11 -0700 (PDT)
In-Reply-To: <AANLkTil_MQ1-JxNC-5S3bLDo6-WhG0GMBHVXQvvN-jdv@mail.gmail.com>
References: <C862F736.37253%eran@hueniverse.com> <AANLkTil_MQ1-JxNC-5S3bLDo6-WhG0GMBHVXQvvN-jdv@mail.gmail.com>
Date: Wed, 14 Jul 2010 11:11:11 -0700
Message-ID: <AANLkTimP3Ltml0YQ04QPctSeo4Ld59EaC2KR_jJa9IBG@mail.gmail.com>
From: David Recordon <recordond@gmail.com>
To: Brian Eaton <beaton@google.com>
Content-Type: multipart/alternative; boundary="005045013dcc1f4c3c048b5ce927"
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Quick survey: fragment vs. query
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: Wed, 14 Jul 2010 18:11:14 -0000

I caught up on the thread and with Luke yesterday afternoon and am fine with
the user-agent flow using the fragment in the token and code case.


On Wed, Jul 14, 2010 at 10:04 AM, Brian Eaton <beaton@google.com> wrote:

> I can't parse this diagam, but here's my take:
>
> - web server flow should always return just a code.
>   parameter always goes in the query string
>   it would be sort of reasonable to have the code exchange return
> just an access token, instead of a refresh token and an access token.
> Or a refresh token with a shorter lifetime than indefinite.
>
> - user-agent flow can reasonably return either just a token, or a
> token and a code
>   both parameters always go in the fragment, to avoid busting the browser
> cache
>   same comments about lifetime of refresh tokens...
>
> Cheers,
> Brian
>
> On Wed, Jul 14, 2010 at 5:10 AM, Eran Hammer-Lahav <eran@hueniverse.com>
> wrote:
> > Please answer this based on actual use cases. When returning parameters
> > using the redirection URI call, which of these combinations make sense?
> >
> >         | Code | Token | Code & Token
> > ---------+------+-------+--------------
> > Fragment |  a   |   1   |   3
> > Query    |  2   |   b   |   c
> > Split*   | n/a  |  n/a  |   d
> >
> > * token in fragment, code in query
> >
> > Known use cases:
> >
> > 1 - current user-agent flow
> > 2 - current web-server flow
> > 3 - as described by Brian and Naitik
> >
> > Do you need any of these?
> >
> > a -
> > b -
> > c -
> > d - current -10 code-and-token proposal
> >
> > 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
>