Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-v2-http-mac-03.txt

William Mills <wmills_92105@yahoo.com> Thu, 28 February 2013 17:43 UTC

Return-Path: <wmills_92105@yahoo.com>
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 E789321F8C06 for <oauth@ietfa.amsl.com>; Thu, 28 Feb 2013 09:43:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.341
X-Spam-Level:
X-Spam-Status: No, score=-2.341 tagged_above=-999 required=5 tests=[AWL=0.257, BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U5COVv6tRQKH for <oauth@ietfa.amsl.com>; Thu, 28 Feb 2013 09:43:51 -0800 (PST)
Received: from nm37-vm7.bullet.mail.ne1.yahoo.com (nm37-vm7.bullet.mail.ne1.yahoo.com [98.138.229.135]) by ietfa.amsl.com (Postfix) with ESMTP id 7364921F8C08 for <oauth@ietf.org>; Thu, 28 Feb 2013 09:43:51 -0800 (PST)
Received: from [98.138.226.177] by nm37.bullet.mail.ne1.yahoo.com with NNFMP; 28 Feb 2013 17:43:43 -0000
Received: from [98.138.89.253] by tm12.bullet.mail.ne1.yahoo.com with NNFMP; 28 Feb 2013 17:43:43 -0000
Received: from [127.0.0.1] by omp1045.mail.ne1.yahoo.com with NNFMP; 28 Feb 2013 17:43:43 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 516844.42324.bm@omp1045.mail.ne1.yahoo.com
Received: (qmail 38930 invoked by uid 60001); 28 Feb 2013 17:43:43 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1362073422; bh=n1n/sU7A+rVWbVrMKggsRv8N4CvlmZ0uQ3tt+DDDfOI=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=YG1Okq3avJlOkxStGQOoAwViTXOTRtngRszaCKd/YLR8Y9QUIhXRQ3qrMPoInmTWvgQjPeIMlP1ai2OFrj8dSALe2F5Mssny4xvxSR3h0rYYl9ty27dWpNuPRYKPPd36f2HNoQokTtf+ilINc1OwJYwhMXog/TptuG8IzT6Xl6M=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=W/Ksl4fCN9X/ETCYAxVbJbke7u3iTMn0qV404FDq40l7RAWvPUB1s99BAlfs/4mbuM1z5fcy00V+xf/ExlBZaJ1P4qgvs9rfucBRhKVajChaITrylJZ5nNLYubjoI8bN+bD9STvDX+PTW3L3z86mBEyHQwd0yKT81Zd0MY3lRIc=;
X-YMail-OSG: nK8j0zUVM1loAz_tdyB1EW0v.ovh5CfcZZbHCrKQH7jnaAP TYP_hZVCZsiL5WZUqmf10NpngLpAzmuVqqR2uPZW.rOU0EEkvQVuogwf7egx Twe0U4UcaMjtHw7sqOse5iiFLAfHyJhbz9qPtmvQFgJ0Ku8KIycp40camppK gKzPzizOG5PxQ_g7Oz8NjQdNkjcJs3NIm1TQJri4KsiR6zJtGDQMyUBPTjs7 Hi0WVlWnilmDZ.iFVTKceBQx.n8JPzcW_PQzQWySrpEpYweZWoZNY00_B801 mw1osuV.6y0p6Rkmma561DJ.Qnd189ZtuQ6.UpLBIfHysChyIUZ88SMt.b9M Qmf.lzEwkybynVz0utRY__6IC4c0IPQiQQ6H6HZC4zBsWyMkaXUPOcCIHT6i 7Z8wVHbXQ03tLiNFApTBd5g76Ehn8p9p6WsYcy.qGKlgOxpMlGZLlZo3fCIP s5WeEacjymAEzKMPUdV4VRzTbAvB3xRnmlLgbVAjvFY7cD4vSSu6hLh6QTf3 SoiSe6AbTXgh.kYvGHcTuv4nwYVamhJnzMS_9IU652A--
Received: from [209.131.62.115] by web31810.mail.mud.yahoo.com via HTTP; Thu, 28 Feb 2013 09:43:42 PST
X-Rocket-MIMEInfo: 001.001, MSkgQVMgaXNzdWVzIEpXVCArIHNlY3JldCB0byBjbGllbnQuCjIpIENsaWVudCBkZWNpZGVzIHRvIGFjY2VzcyByZXNvdXJjZSwgY3JlYXRlcyB0aGUgSldUIE1BQyBKU09OIG9iamVjdCB3aGljaCBjb250YWlucyBzdHVmZiBhYm91dCB0aGUgc2lnbmF0dXJlIGFuZCB0aGUgc2lnbmF0dXJlIGl0c2VsZi4KMykgY2xpZW50IGFwcGVuZHMgdGhhdCBiYXNlNjQgZW5jb2RlZCB0aGluZyB0byB0aGUgSldUCgoxKSBTZXJ2ZXIgZ2V0cyBhIEpXVE1BQyB0b2tlbiwgdGFrZXMgYXBhcnQgdGhlIEpXVCBwYXJ0IHRvIGcBMAEBAQE-
X-Mailer: YahooMailWebService/0.8.135.514
References: <20130225124642.7425.65145.idtracker@ietfa.amsl.com> <1361956373.9883.YahooMailNeo@web31807.mail.mud.yahoo.com> <21030204-8EA7-4FB0-9DD3-2B6C8CA57E02@gmx.net> <1362057295.36069.YahooMailNeo@web31809.mail.mud.yahoo.com> <512F8F1E.3020400@mitre.org>
Message-ID: <1362073422.89847.YahooMailNeo@web31810.mail.mud.yahoo.com>
Date: Thu, 28 Feb 2013 09:43:42 -0800
From: William Mills <wmills_92105@yahoo.com>
To: Justin Richer <jricher@mitre.org>
In-Reply-To: <512F8F1E.3020400@mitre.org>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="1935884094-986886612-1362073422=:89847"
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-v2-http-mac-03.txt
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: William Mills <wmills_92105@yahoo.com>
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: Thu, 28 Feb 2013 17:43:54 -0000

1) AS issues JWT + secret to client.
2) Client decides to access resource, creates the JWT MAC JSON object which contains stuff about the signature and the signature itself.
3) client appends that base64 encoded thing to the JWT

1) Server gets a JWTMAC token, takes apart the JWT part to get the signing key
2) Server looks at the JWTMAC to figure out what all it has to do to create the signature base string 
3) server constructs the SBS computes and checks the sig.

The only hairy bit right now is an arbitrary HTTP header list that may be included in the signature.

No data in the JWTMAC is duplicated from anywhere else.


________________________________
 From: Justin Richer <jricher@mitre.org>
To: William Mills <wmills_92105@yahoo.com> 
Cc: Hannes Tschofenig <hannes.tschofenig@gmx.net>; "oauth@ietf.org" <oauth@ietf.org> 
Sent: Thursday, February 28, 2013 9:08 AM
Subject: Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-v2-http-mac-03.txt
 

What I don't quite get is what exactly would be presented and processed at each step. Who needs to know what piece? We don't want to have to push everything into JSON for the signing to take place (that much is clear), and we don't want the client to be pushing the MAC secret to the RS every time (that would make it a lot less secret, after all). But if we can reuse JWT, JWS, and other JOSE mechanisms to make some parts of the MAC pattern easier for programmers, I'm for it.

 -- Justin


On 02/28/2013 08:14 AM, William Mills wrote:

I'm actually advocating that we change MAC to be a JWT extension.
>
>
>
>________________________________
> From: Hannes Tschofenig <hannes.tschofenig@gmx.net>
>To: William Mills <wmills_92105@yahoo.com> 
>Cc: Hannes Tschofenig <hannes.tschofenig@gmx.net>; "oauth@ietf.org" <oauth@ietf.org> 
>Sent: Thursday, February 28, 2013 2:28 AM
>Subject: Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-v2-http-mac-03.txt
> 
>Hi Bill, 
>
>I believe you are misreading the document. In
            draft-ietf-oauth-v2-http-mac the client still uses the MAC
            when it accesses a protected resource. 
>The only place where the JWT comes into the picture is with
            the description of the access token. This matters from a key
            distribution point of view. The session key for the MAC is
            included in the encrypted JWT. The JWT is encrypted by the
            authorization server and decrypted by the resource server. 
>
>Information about how header fields get included in the MAC
            is described in Section 5.
>
>The nonce isn't killed it is just called differently:
            seq-nr. The stuff in the original MAC specification actually
            wasn't a nonce (from the semantic point of view). 
>The extension parameter is there implicitly by allowing
            additional header fields to be included in the MAC
            computation.
>
>I need to look at the port number field again. 
>
>Ciao
>Hannes
>
>On Feb 27, 2013, at 11:12 AM, William Mills wrote:
>
>> Just read the draft quickly.  
>> 
>> Since we're now leaning on JWT do we need to include
            the token in this?  Why not just make an additional
            "Envelope MAC" thing and have the signature include the 3
            JWT parts in the signature base string?  That object then
            just becomes a JSON container for the kid, timestamp,
            signature method, signature etc. That thing then is a 4th
            base64 encoded JSON thing in the auth header.
>> 
>> How header fields get included in the signature needs
            definition.
>> 
>> Why did you kill the port number, nonce, and extension
            parameter out of the signature base string?
>> 
>> The BNF appears to have no separators between values.
>> 
>> -bill
>> 
>> 
>> From: "internet-drafts@ietf.org" <internet-drafts@ietf.org>
>> To: i-d-announce@ietf.org 
>> Cc: oauth@ietf.org 
>> Sent: Monday, February 25, 2013 4:46 AM
>> Subject: [OAUTH-WG] I-D Action:
            draft-ietf-oauth-v2-http-mac-03.txt
>> 
>> 
>> A New Internet-Draft is available from the on-line
            Internet-Drafts directories.
>> This draft is a work item of the Web Authorization
            Protocol Working Group of the IETF.
>> 
>>    Title          : OAuth 2.0 Message Authentication
            Code (MAC) Tokens
>>    Author(s)      : Justin Richer
>>                          William Mills
>>                          Hannes Tschofenig
>>    Filename        :
            draft-ietf-oauth-v2-http-mac-03.txt
>>    Pages          : 26
>>    Date            : 2013-02-25
>> 
>> Abstract:
>>  This specification describes how to use MAC Tokens in
            HTTP requests
>>  to access OAuth 2.0 protected resources.  An OAuth
            client willing to
>>  access a protected resource needs to demonstrate
            possession of a
>>  crytographic key by using it with a keyed message
            digest function to
>>  the request.
>> 
>>  The document also defines a key distribution protocol
            for obtaining a
>>  fresh session key.
>> 
>> 
>> The IETF datatracker status page for this draft is:
>> https://datatracker.ietf.org/doc/draft-ietf-oauth-v2-http-mac
>> 
>> There's also a htmlized version available at:
>>
            http://tools.ietf.org/html/draft-ietf-oauth-v2-http-mac-03
>> 
>> A diff from the previous version is available at:
>>
            http://www.ietf.org/rfcdiff?url2=draft-ietf-oauth-v2-http-mac-03
>> 
>> 
>> Internet-Drafts are also available by anonymous FTP at:
>> ftp://ftp.ietf.org/internet-drafts/
>> 
>> _______________________________________________
>> OAuth mailing list
>> OAuth@ietf.org
>> https://www.ietf.org/mailman/listinfo/oauth
>> 
>> 
>
>
>
>
>
>
>_______________________________________________
OAuth mailing list OAuth@ietf.org https://www.ietf.org/mailman/listinfo/oauth