Re: [OAUTH-WG] Clarification: Authorization scheme :: Token vs OAuth

Marius Scurtescu <mscurtescu@google.com> Mon, 19 April 2010 17:10 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 0946028C11B for <oauth@core3.amsl.com>; Mon, 19 Apr 2010 10:10:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.702
X-Spam-Level:
X-Spam-Status: No, score=-101.702 tagged_above=-999 required=5 tests=[AWL=0.275, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 jSIULxN-2Z1W for <oauth@core3.amsl.com>; Mon, 19 Apr 2010 10:10:36 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 9EB1B3A62C1 for <oauth@ietf.org>; Mon, 19 Apr 2010 10:06:52 -0700 (PDT)
Received: from hpaq3.eem.corp.google.com (hpaq3.eem.corp.google.com [10.3.21.3]) by smtp-out.google.com with ESMTP id o3JH6gSD001859 for <oauth@ietf.org>; Mon, 19 Apr 2010 19:06:43 +0200
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1271696803; bh=VIlOkTiay/1xYxbV9Ys/wcwapps=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type:Content-Transfer-Encoding; b=PmJIffmJRKAKsyFmgPrqtUI4B+dtFeAayqWAZLDHPcYd+gsuUc1xqVdsW1Y4NiHzQ yspn9CM1on+H1ZbV94cBQ==
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:content-transfer-encoding:x-system-of-record; b=f8prEAspBx5bBNW/VwN1rgV0Qe8pUlwusBdwotpI19+q8TNGAKEfgdKI2LrcdI5r3 0DkPxgo4DH39Is2JIPDWQ==
Received: from pvg16 (pvg16.prod.google.com [10.241.210.144]) by hpaq3.eem.corp.google.com with ESMTP id o3JH5pkw009950 for <oauth@ietf.org>; Mon, 19 Apr 2010 19:06:41 +0200
Received: by pvg16 with SMTP id 16so3273027pvg.12 for <oauth@ietf.org>; Mon, 19 Apr 2010 10:06:40 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.141.107.2 with HTTP; Mon, 19 Apr 2010 10:06:20 -0700 (PDT)
In-Reply-To: <90C41DD21FB7C64BB94121FBBC2E723438E30A3796@P3PW5EX1MB01.EX1.SECURESERVER.NET>
References: <9CEC5DA2-6D5F-4CDB-80CD-D24F80E19969@gmail.com> <90C41DD21FB7C64BB94121FBBC2E723438E30A3796@P3PW5EX1MB01.EX1.SECURESERVER.NET>
From: Marius Scurtescu <mscurtescu@google.com>
Date: Mon, 19 Apr 2010 10:06:20 -0700
Received: by 10.140.57.19 with SMTP id f19mr4496603rva.124.1271696800357; Mon, 19 Apr 2010 10:06:40 -0700 (PDT)
Message-ID: <s2t74caaad21004191006rb29139f6lc9082b6b94afbec9@mail.gmail.com>
To: Eran Hammer-Lahav <eran@hueniverse.com>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
X-System-Of-Record: true
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Clarification: Authorization scheme :: Token vs OAuth
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: Mon, 19 Apr 2010 17:10:40 -0000

Isn't "Token" as a scheme to generic/ambiguous?

If a protected resource accepts several types of Authorization
headers, how can it be sure this is an OAuth 2.0 token and not some
other kind?

If adding a version parameter is too verbose, how about "OAuth2" as scheme?

Marius



On Sun, Apr 18, 2010 at 10:05 PM, Eran Hammer-Lahav <eran@hueniverse.com> wrote:
> Scheme is always case-insensitive per 2617.
>
>
>
> My reasons for using Token:
>
>
>
> 1. The scheme isn’t specific to OAuth (which defines a model for obtaining
> tokens). It is a generic way to use tokens for authentication. Similar to
> how services use OAuth today for “2-legged” authentication (using the
> signature method without an access token at all), I expect services to use
> the Token scheme.
>
>
>
> 2. Doesn’t conflict with OAuth 1.0, and doesn’t require adding
> oauth_version=2.0 to every request. The fact that 1.0 used a parameter name
> prefix in the *header* was bad enough.
>
>
>
> That discussion did not reach any consensus so I used the last proposed
> text. If people have a problem with that I’ll add it to the open issues
> list.
>
>
>
> EHL
>
>
>
>
>
>
>
> From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf Of
> Dick Hardt
> Sent: Sunday, April 18, 2010 9:33 PM
> To: OAuth WG
> Subject: [OAUTH-WG] Clarification: Authorization scheme :: Token vs OAuth
>
>
>
> I recall some earlier discussion on calling the scheme Token vs OAuth and
> see that it is now Token per the example:
>
>
>
> Authorization: Token token="vF9dft4qmT"
>
>
>
> Would explain or point out the logic of using Token rather than OAuth?
>
>
>
> A related question: is the scheme case sensitive?
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>
>