Re: [OAUTH-WG] Indicating sites where a token is valid

Evan Gilbert <uidude@google.com> Fri, 14 May 2010 00:02 UTC

Return-Path: <uidude@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 4A6853A6942 for <oauth@core3.amsl.com>; Thu, 13 May 2010 17:02:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.37
X-Spam-Level:
X-Spam-Status: No, score=-100.37 tagged_above=-999 required=5 tests=[AWL=-0.994, BAYES_50=0.001, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 UwTmm1tqWGQa for <oauth@core3.amsl.com>; Thu, 13 May 2010 17:02:56 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id A47C73A6864 for <oauth@ietf.org>; Thu, 13 May 2010 17:02:55 -0700 (PDT)
Received: from hpaq6.eem.corp.google.com (hpaq6.eem.corp.google.com [172.25.149.6]) by smtp-out.google.com with ESMTP id o4E02ifd005814 for <oauth@ietf.org>; Thu, 13 May 2010 17:02:44 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1273795364; bh=RVgOqxnNNYvtmZUNxZOdncvbTn4=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LJLSAlfAswZPPpIZqkDIpLUFEdXpXKZMGqZAbFuAaHTFt6jWN0SDplQtFBVYnGzLn im7DPpvnR66sFZCSwsnxQ==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:from:date:message-id: subject:to:cc:content-type:x-system-of-record; b=RK1+5B53yb/l7CAjprwkvPBLu76gpTC+TghNszhfmkN9dE/D+3MMXe1zV3QYRP+GC BGsD6PiVFZF5OPqdBBkaQ==
Received: from qyk17 (qyk17.prod.google.com [10.241.83.145]) by hpaq6.eem.corp.google.com with ESMTP id o4E02ccU009014 for <oauth@ietf.org>; Thu, 13 May 2010 17:02:43 -0700
Received: by qyk17 with SMTP id 17so2301493qyk.12 for <oauth@ietf.org>; Thu, 13 May 2010 17:02:43 -0700 (PDT)
Received: by 10.224.123.3 with SMTP id n3mr90570qar.211.1273795363152; Thu, 13 May 2010 17:02:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.7.136 with HTTP; Thu, 13 May 2010 17:02:23 -0700 (PDT)
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E112634659EC@WSMSG3153V.srv.dir.telstra.com>
References: <255B9BB34FB7D647A506DC292726F6E11263073D6D@WSMSG3153V.srv.dir.telstra.com> <90C41DD21FB7C64BB94121FBBC2E72343B3AB46E1F@P3PW5EX1MB01.EX1.SECURESERVER.NET> <D24C564ACEAD16459EF2526E1D7D605D0C8D22ED62@IMCMBX3.MITRE.ORG> <AANLkTilkUA9i-WZPv8PqPsxiJf5_1SuiCb_GOTdcwtPX@mail.gmail.com> <AANLkTilNNyKvpbzCYfc__AvY1rJKqXE7KN8VL-m_CF-L@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E112633D9594@WSMSG3153V.srv.dir.telstra.com> <AANLkTim0PNhUJAi1ZuDjB8feKh2Sb_OMoNz7AlDTYO6P@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E112634655A4@WSMSG3153V.srv.dir.telstra.com> <AANLkTil7gTRNmqTAwsvFEdMLmlgeakpy8o1wyPTcTbLF@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E112634659EC@WSMSG3153V.srv.dir.telstra.com>
From: Evan Gilbert <uidude@google.com>
Date: Thu, 13 May 2010 17:02:23 -0700
Message-ID: <AANLkTim91Jr6zKE_BYYtDDkqFFoyitxqiAh3QoU5owUP@mail.gmail.com>
To: "Manger, James H" <James.H.Manger@team.telstra.com>
Content-Type: multipart/alternative; boundary="00c09f8e5fb42322d2048682980d"
X-System-Of-Record: true
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Indicating sites where a token is valid
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: Fri, 14 May 2010 00:02:57 -0000

On Thu, May 13, 2010 at 4:54 PM, Manger, James H <
James.H.Manger@team.telstra.com> wrote:

> Evan,
>
> > we have no API endpoints that are only arrived at by links
>
> This doesn't sound very web-friendly. Your APIs don't have to follow a
> web-style, but an IETF spec should support web-style APIs.


I didn't say that our endpoints can't be arrived at by links. I said our
APIs all can be called directly and clients need to know how to call them
directly.

Clients need to have a way of finding out:
1. The available endpoint URLs, and
2. The scopes to ask for to access these URLs

"sites" by itself is insufficient to be useful to our developers.


> I am a bit surprised with your statement as a whole lot of Google APIs do
> have API endpoints arrived at by links. I thought most Google Data APIs
> followed the Atom Publishing Protocol. This uses links extensively. For
> instance, <link rel="edit" href="..."/> tells the client the API endpoint to
> at which an entry can be updated.
>
> There are lots and lots of <link rel="..." href="..."/> relations defined:
> in the Atom spec, in the APP spec, in GData docs (not specific to particular
> APIs) etc.
>
> Definitions of none of these link relations state that they MUST or MUST
> NOT be part of the same API.
>
>
>
> > Another note: Where do we anticipate clients storing the sites parameter
> in the User-Agent flow? Right now the access token can be set as an HTTP
> cookie by the client. Do we expect them to set a separate "sites" cookie and
> respect this on their server when making requests? This seems complicated.
>
> Presumably the client needs to store the access token, the expiry date,
> perhaps the scopes etc. Easy solution: store the base64-encoding of the JSON
> representation of the token details.
>

Currently the client side flow is really simple:
1. Set access token as a cookie, with
2. An expiration matching the expires_in time

Are you suggesting the client parse the URL parameters, create a JSON block,
base64 encode the block, and then write an HTTP cookie?


>
> --
> James Manger
>
>