Re: [OAUTH-WG] mistake in draft-ietf-oauth-v2-http-mac-01

Justin Richer <jricher@mitre.org> Fri, 10 August 2012 16:29 UTC

Return-Path: <jricher@mitre.org>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 80D9621F85C5 for <oauth@ietfa.amsl.com>; Fri, 10 Aug 2012 09:29:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.574
X-Spam-Level:
X-Spam-Status: No, score=-6.574 tagged_above=-999 required=5 tests=[AWL=0.024, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R1Fu3aTKdPSk for <oauth@ietfa.amsl.com>; Fri, 10 Aug 2012 09:29:26 -0700 (PDT)
Received: from smtpksrv1.mitre.org (smtpksrv1.mitre.org [198.49.146.77]) by ietfa.amsl.com (Postfix) with ESMTP id 518B221F8569 for <oauth@ietf.org>; Fri, 10 Aug 2012 09:29:26 -0700 (PDT)
Received: from smtpksrv1.mitre.org (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id EC5B021B07A9; Fri, 10 Aug 2012 12:29:25 -0400 (EDT)
Received: from IMCCAS02.MITRE.ORG (imccas02.mitre.org [129.83.29.79]) by smtpksrv1.mitre.org (Postfix) with ESMTP id ABE4621B143E; Fri, 10 Aug 2012 12:29:25 -0400 (EDT)
Received: from [129.83.50.26] (129.83.31.51) by IMCCAS02.MITRE.ORG (129.83.29.79) with Microsoft SMTP Server (TLS) id 14.2.309.2; Fri, 10 Aug 2012 12:29:25 -0400
Message-ID: <50253697.5070706@mitre.org>
Date: Fri, 10 Aug 2012 12:28:07 -0400
From: Justin Richer <jricher@mitre.org>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version: 1.0
To: Dick Hardt <dick.hardt@gmail.com>
References: <CAOKdZ1dzVcKBDt6CSLuHwc4NzUVd_hUMWdpJVS6=ncdJo05=UQ@mail.gmail.com> <502280D8.40708@mitre.org> <9AD4EEF7-6187-4A4F-A855-32819BCB8321@gmx.net> <5022D344.40600@mitre.org> <EEBC9705-16C0-4697-8F38-28660C3CB553@ve7jtb.com> <5023CC18.9090809@mitre.org> <1344531175.4871.YahooMailNeo@web31812.mail.mud.yahoo.com> <3940317E-948C-4909-9B8F-2689A6B8D4EB@gmail.com> <1344534823.39489.YahooMailNeo@web31801.mail.mud.yahoo.com> <E3386483-222B-4B71-ADD4-0E8C0C0E18ED@gmail.com> <502418C3.5080402@mitre.org> <FD699F57-C56C-4D4C-A8CD-C1A2BF846C1C@gmail.com>
In-Reply-To: <FD699F57-C56C-4D4C-A8CD-C1A2BF846C1C@gmail.com>
Content-Type: multipart/alternative; boundary="------------060109000606020408010209"
X-Originating-IP: [129.83.31.51]
Cc: "oauth@ietf.org WG" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] mistake in draft-ietf-oauth-v2-http-mac-01
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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, 10 Aug 2012 16:29:27 -0000

On 08/09/2012 06:47 PM, Dick Hardt wrote:
>
> On Aug 9, 2012, at 1:08 PM, Justin Richer wrote:
>
>> With MAC, you should be able to re-use about 80-90% of your existing 
>> codepath that's in place for Bearer, simplifying the setup below.
>
> That makes no sense, I would be adding MAC to the sites that support 
> MAC in addition to OAuth 1.0A or OAuth 2.0

You get to re-use all of the code for OAuth2 for issuing tokens (from 
server side) and requesting tokens (from client side). Apart from 
parsing the JSON value that's returned from the token endpoint (and you 
are using a generic parser there, right?), nothing changes here. The 
part where you *use* the token to access a protected resource (client), 
or *validate* a request to a protected resource (server) changes 
significantly, yes. But that's only a small part of the process.

>
>>
>> I would figure that the "variant of OAuth2" issue is a red herring 
>> because not everyone out there is fully spec compliant. If they were, 
>> you wouldn't have so many beautiful snowflakes.
>
>
> Being consistent in the spec would help, but likely would just give me 
> snowflakes that look more like each other.
>
> There are many aspects of the OAuth dance that are implementation 
> dependent and it is simpler to just have a separate method for each 
> one that deals with those unique characteristics. Note this is not 
> theory, this is practice. Different modules was not an issue. Not 
> having to use a library to sign requests and being able to use CURL or 
> a browser to see what a request returned had a HUGE productivity gain 
> for OAuth 2.0 implementations over OAuth 1.0A implemetations.
>
>>
>>  -- Justin
>>
>> On 08/09/2012 03:48 PM, Dick Hardt wrote:
>>> As an implementer, I have an app that accesses 10 different 
>>> resources. Some are OAuth 1.0A, some are a variant of OAuth 2. All 
>>> have a slightly different code path since each resource is its own 
>>> beautiful snowflake. I did not use any libraries for OAuth 2. 
>>> Supporting MAC would give me yet another library to integrate with.
>>>
>>> I'd be interested in what signing problems OAuth 1.0A has. I have my 
>>> own list of how writing to OAuth 1.0A is hard.
>>>
>>> On Aug 9, 2012, at 10:53 AM, William Mills wrote:
>>>
>>>> MAC fixes the signing problems encountered in OAuth 1.0a, yes there 
>>>> are libraries out there for OAuth 1.0a.  MAC fits in to the OAuth 2 
>>>> auth model and will provide for a single codepath for sites that 
>>>> want to use both Bearer and MAC.
>>>>
>>>> ------------------------------------------------------------------------
>>>> *From:* Dick Hardt <dick.hardt@gmail.com <mailto:dick.hardt@gmail.com>>
>>>> *To:* William Mills <wmills_92105@yahoo.com 
>>>> <mailto:wmills_92105@yahoo.com>>
>>>> *Cc:* "oauth@ietf.org <mailto:oauth@ietf.org>" <oauth@ietf.org 
>>>> <mailto:oauth@ietf.org>>
>>>> *Sent:* Thursday, August 9, 2012 10:27 Aa
>>>> *Subject:* Re: [OAUTH-WG] mistake in draft-ietf-oauth-v2-http-mac-01
>>>>
>>>>
>>>> On Aug 9, 2012, at 9:52 AM, William Mills wrote:
>>>>
>>>>> I find the idea of starting from scratch frustrating.  MAC solves 
>>>>> a set of specific problems and has a well defined use case.  It's 
>>>>> symmetric key based which doesn't work for some folks, and the 
>>>>> question is do we try to develop something that supports both PK 
>>>>> and SK, or finish the SK use case and then work on a PK based draft.
>>>>>
>>>>> I think it's better to leave them separate and finish out MAC 
>>>>> which is *VERY CLOSE* to being done.
>>>>
>>>> Who is interested in MAC? People can use OAuth 1.0 if they prefer 
>>>> that model.
>>>>
>>>> For my projects, I prefer the flexibility of a signed or encrypted 
>>>> JWT if I need holder of key.
>>>>
>>>> Just my $.02
>>>>
>>>> -- Dick
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> OAuth mailing list
>>> OAuth@ietf.org
>>> https://www.ietf.org/mailman/listinfo/oauth
>>
>