Re: [OAUTH-WG] OAuth vs OAuth2 in Authorization header

"Manger, James H" <James.H.Manger@team.telstra.com> Fri, 16 July 2010 04:21 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 A7A373A63CB for <oauth@core3.amsl.com>; Thu, 15 Jul 2010 21:21:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.901
X-Spam-Level:
X-Spam-Status: No, score=-0.901 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, 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 uWTAYNP7rdcr for <oauth@core3.amsl.com>; Thu, 15 Jul 2010 21:21:27 -0700 (PDT)
Received: from ipxcno.tcif.telstra.com.au (ipxcno.tcif.telstra.com.au [203.35.82.208]) by core3.amsl.com (Postfix) with ESMTP id 61F463A6452 for <oauth@ietf.org>; Thu, 15 Jul 2010 21:21:27 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.55,212,1278252000"; d="scan'208";a="6053717"
Received: from unknown (HELO ipccni.tcif.telstra.com.au) ([10.97.216.208]) by ipocni.tcif.telstra.com.au with ESMTP; 16 Jul 2010 14:21:34 +1000
X-IronPort-AV: E=McAfee;i="5400,1158,6044"; a="4665214"
Received: from wsmsg3756.srv.dir.telstra.com ([172.49.40.84]) by ipccni.tcif.telstra.com.au with ESMTP; 16 Jul 2010 14:21:37 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by wsmsg3756.srv.dir.telstra.com ([172.49.40.84]) with mapi; Fri, 16 Jul 2010 14:21:36 +1000
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: Eran Hammer-Lahav <eran@hueniverse.com>, John Kemp <john@jkemp.net>, "oauth@ietf.org" <oauth@ietf.org>
Date: Fri, 16 Jul 2010 14:21:53 +1000
Thread-Topic: [OAUTH-WG] OAuth vs OAuth2 in Authorization header
Thread-Index: AcskTQuPQEcTB0yXR/m52up+YUcDkQATLB0A
Message-ID: <255B9BB34FB7D647A506DC292726F6E112662F0D3A@WSMSG3153V.srv.dir.telstra.com>
References: <AANLkTim6az--AdwmEoew2pz3kEjhc_GyEaiyo_0UhSRr@mail.gmail.com> <F747E8F8-D022-46F7-BBCE-4219BF3B27B0@hueniverse.com> <02D7ABE3-5B51-43B6-B7A2-6CB9AA045AAA@jkemp.net> <23375931-39B5-4267-925D-5AD5698AAF15@hueniverse.com>
In-Reply-To: <23375931-39B5-4267-925D-5AD5698AAF15@hueniverse.com>
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="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [OAUTH-WG] OAuth vs OAuth2 in Authorization header
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, 16 Jul 2010 04:21:28 -0000

>> What happens if a 1.0 client receives a WWW-Authenticate header
>> from a 2.0 protected resource with the 'OAuth' mechanism specified?
>> Might it then attempt OAuth 1 with a 2.0 token service (and thus
>> just fail without being able to know what went wrong)?

> There is no such thing. Since there is no discovery for 1.0,
> all calls are hardcoded into the client today.
> There is no 'trying things out'.

There was "discovery" in OAuth 1: it was inadequate, but it was present in the spec.
RFC 5849 "OAuth 1.0", section 3.5.1 "Authorization header" <http://tools.ietf.org/html/rfc5849#section-3.5.1> defines "WWW-Authenticate: OAuth realm=..." as indicating a server supports OAuth 1.0.

   Servers MAY indicate their support for the "OAuth" auth-scheme by
   returning the HTTP "WWW-Authenticate" response header field upon
   client requests for protected resources.  As per [RFC2617], such a
   response MAY include additional HTTP "WWW-Authenticate" header
   fields:

   For example:

     WWW-Authenticate: OAuth realm="http://server.example.com/"

Perhaps it wasn't used much, but reusing the "OAuth" scheme to indicate support for OAuth2 is incompatible. It adds human confusion, regardless of any technical ability to distinguish OAuth 1 & 2.

-- 
James Manger