Re: [OAUTH-WG] Partially standardized format for access tokens?

"Manger, James H" <James.H.Manger@team.telstra.com> Tue, 08 June 2010 00:25 UTC

Return-Path: <James.H.Manger@team.telstra.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 3203D3A6844 for <oauth@core3.amsl.com>; Mon, 7 Jun 2010 17:25:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.698
X-Spam-Level: *
X-Spam-Status: No, score=1.698 tagged_above=-999 required=5 tests=[AWL=-0.001, BAYES_50=0.001, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RELAY_IS_203=0.994]
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 Os58z+lEOczP for <oauth@core3.amsl.com>; Mon, 7 Jun 2010 17:25:55 -0700 (PDT)
Received: from ipxavo.tcif.telstra.com.au (ipxavo.tcif.telstra.com.au [203.35.135.200]) by core3.amsl.com (Postfix) with ESMTP id 9EA8C3A6842 for <oauth@ietf.org>; Mon, 7 Jun 2010 17:25:50 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.53,381,1272808800"; d="scan'208";a="4028163"
Received: from unknown (HELO ipcavi.tcif.telstra.com.au) ([10.97.217.200]) by ipoavi.tcif.telstra.com.au with ESMTP; 08 Jun 2010 10:25:47 +1000
X-IronPort-AV: E=McAfee;i="5400,1158,6006"; a="2916027"
Received: from wsmsg3751.srv.dir.telstra.com ([172.49.40.172]) by ipcavi.tcif.telstra.com.au with ESMTP; 08 Jun 2010 10:25:48 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3751.srv.dir.telstra.com ([172.49.40.172]) with mapi; Tue, 8 Jun 2010 10:25:48 +1000
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: John Kemp <john@jkemp.net>
Date: Tue, 08 Jun 2010 10:25:46 +1000
Thread-Topic: [OAUTH-WG] Partially standardized format for access tokens?
Thread-Index: AcsGX/Rca8ZktcuzTNG45QqHt/RqgwAPZnaQ
Message-ID: <255B9BB34FB7D647A506DC292726F6E11263EBF638@WSMSG3153V.srv.dir.telstra.com>
References: <AANLkTinQTV9JJPiftquRbvdqAOHxUXk7QQKCMrmQ4LLK@mail.gmail.com> <B549E6C4-A24D-4032-8A26-89ED58EBAA34@facebook.com> <4C090B6C.9030707@aol.com> <B6D1E6FF-D65F-4FD6-B148-C17550421FC9@facebook.com> <AANLkTilj0xG6SjHrzkd9Ca-N67J7IlsTNAOkyFdjQ62I@mail.gmail.com> <ED86A2AA-56D5-4DC6-B896-48A850EED3B2@facebook.com> <4C0930B2.80802@aol.com> <AANLkTimupEDpBUjg4iwwhPQ41ZKcryMcpVjJumXNIjP0@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E11263E5DA7C@WSMSG3153V.srv.dir.telstra.com> <383A9188-1AA6-49FE-95FC-5D6316BD18CD@jkemp.net>
In-Reply-To: <383A9188-1AA6-49FE-95FC-5D6316BD18CD@jkemp.net>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US, en-AU
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: "OAuth WG (oauth@ietf.org)" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Partially standardized format for access 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: Tue, 08 Jun 2010 00:25:56 -0000

John,

>>  access_token=saml.fhHFhgf6575fhgFGrytr

> What is the advantage of doing it this way over having a separate field?

Client simplicity (code and mental model).

> What if the format is a URI?

That is a choice between the AS and PR that is irrelevant to the client app -- so why should the client app have to worry about it (and any extra escaping it entails).


>> There can be an IANA registry for prefixes if that is helpful.

> Personally, I'd like to see this solution be a bit more distributed, and a registry isn't.

I hope there aren't so many common, shared formats that a distributed solution is necessary. But you can make the prefix a domain name, or a base64url-encoded URI, or a hash of a URI etc if you really want it distributed.


Andrew Arnott said:
> But token_format is not the idea I think.  It's more like token_origin.

I hope we don't need a 3rd "opaque string" for the client app to transfer from the AS to PR.

--
James Manger