Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-spop-09.txt

John Bradley <ve7jtb@ve7jtb.com> Thu, 05 February 2015 16:49 UTC

Return-Path: <ve7jtb@ve7jtb.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BAD171A89FB for <oauth@ietfa.amsl.com>; Thu, 5 Feb 2015 08:49:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J_N1mBhI4a4k for <oauth@ietfa.amsl.com>; Thu, 5 Feb 2015 08:49:35 -0800 (PST)
Received: from mail-qg0-f47.google.com (mail-qg0-f47.google.com [209.85.192.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6945E1A07BD for <oauth@ietf.org>; Thu, 5 Feb 2015 08:49:35 -0800 (PST)
Received: by mail-qg0-f47.google.com with SMTP id l89so7000954qgf.6 for <oauth@ietf.org>; Thu, 05 Feb 2015 08:49:34 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=y6tTTIspmnpdSjzQKQM557XdQ1d+E3YwxH1WtGitoJQ=; b=RLSFOanRtIaWwFDdF5UZyxcQ0Z1LrNgW0HMZyN63LkyByxBTpjW2OO7EYMuIM07Rtn E6hSrqHTAkQuW7hs/9FBR+CrGeUm//TYr+R0hO/DHdthTDGsJ/tq2DdABDUeYFFlV8Qv 65YkkblUbg75lC54XhJ1iYDmtUP6fBWIhKFUw776rz2EOhQ1MOmCITNTi5tEAiD0QYsL 79fi2h+9KK4iki6Avtf1S/7R2S/A+AwTho6t7n+/3qib3Jx7bTwAGi0gBQDLf5EzSqut UQWOvDcM1x4N0Z8UxLm+M0+eZzCz4nkxcRARVJgGX//Gc01v8cv5Hu8rWTj6aXQQf0/5 miOQ==
X-Gm-Message-State: ALoCoQlZON4FEtplGBlHlQYmbnm5Ye685GnrTjFNBAhwKuxflAf/5z7b0fFSxlcODaZ46E/DCOBQ
X-Received: by 10.229.99.134 with SMTP id u6mr10261636qcn.10.1423154974549; Thu, 05 Feb 2015 08:49:34 -0800 (PST)
Received: from [192.168.8.100] ([181.202.19.170]) by mx.google.com with ESMTPSA id o88sm985660qge.22.2015.02.05.08.49.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Feb 2015 08:49:33 -0800 (PST)
Content-Type: multipart/signed; boundary="Apple-Mail=_A5BA1611-85EB-40CF-BA8F-3A1CE8CBC534"; protocol="application/pkcs7-signature"; micalg="sha1"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: John Bradley <ve7jtb@ve7jtb.com>
In-Reply-To: <255B9BB34FB7D647A506DC292726F6E12851EBA8C3@WSMSG3153V.srv.dir.telstra.com>
Date: Thu, 05 Feb 2015 13:49:29 -0300
Message-Id: <97C03A16-4299-44A5-B121-58C6542DF6C1@ve7jtb.com>
References: <20150204234040.19482.87437.idtracker@ietfa.amsl.com> <255B9BB34FB7D647A506DC292726F6E12851EBA8C3@WSMSG3153V.srv.dir.telstra.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
X-Mailer: Apple Mail (2.2070.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/oauth/8zTXz0oBbdW8_ijRZDhPt62ydlI>
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-spop-09.txt
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.15
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: Thu, 05 Feb 2015 16:49:37 -0000

Inline


> On Feb 4, 2015, at 10:43 PM, Manger, James <James.H.Manger@team.telstra.com> wrote:
> 
>>    Title           : Proof Key for Code Exchange by OAuth Public Clients
>> 	Filename        : draft-ietf-oauth-spop-09.txt
>> https://tools.ietf.org/html/draft-ietf-oauth-spop-09
> 
> 
> Some nits on this draft:
> 
> 1. 42 chars.
> The lower limit of 42 chars for code_verifier: is not mentioned in prose (just the upper limit); is too high (128-bits=22-chars is sufficient); and doesn't correspond to 256-bits (BASE64URL-ENCODE(32 bytes) gives 43 chars, not 42).

In my editors draft I fixed the 43 octet base64url encoding of 32bytes.  I originally had 43 but it got changed at some point  

Is there working group feedback on making the lower limit clear in the prose and if so what should it be?  22-chars (128 bits) or 43 char (256 bits)?


> 
> 2. 
> Quotes around "code_verifier" and "code_challenge" in prose are okay, though not really necessary as the underscore is enough to distinguish them as technical labels. Quotes around these terms in formula is bad as it looks like the formula applies to the 13 or 14 chars of the label. The quoting is also used inconsistently.
> Suggestion: remove all quotes around "code_verifier" and "code_challenge" in prose and formula.
> For example, change ASCII("code_verifier") to ASCII(code_verifier).
> 

I am going to leave this for a later formatting cleanup at the moment, I need to find a good style compromise that works with rfcmarkup.

> 3.
> Two ways to check code_verifier are given in appendix B, whereas only one of these is mentioned in section 4.6.
>  SHA256(verifier) === B64-DECODE(challenge)
>  B64-ENCODE(SHA256(verifier)) === challenge
> 
> I suggest only mentioning the 2nd (change 4.6 to use the 2nd, and drop the 1st from appendix B). It is simpler to mention only one. It also means base64url-decoding is never done, and doesn't need to be mentioned in the spec.
> 
Yes when I added the example I realized that the normative text was the more complicated way to do the comparison.

I will go back and refactor the main text to talk about the simpler comparison and drop the base64url-decode references.
> 
> 4.
> Expand "MTI" to "mandatory to implement".

Done in editors draft.
> 
> P.S. Suggesting code challenge method names not exceed 8 chars to be compact is a bit perverse given the field holding these values has the long name "code_challenge_method" ;)

  On the topic of the parameter  name  "code_challange_method",  James has a point in that it is a bit long.

We could shorten it to "ccm".   If we want to change the name sooner is better than later.  

It is that balance between compactness and clear parameter names for developers, that we keep running into.

I don't know that encouraging longer parameter values is the best direction.

Feedback please

John B.
> 
> --
> James Manger
> 
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth