Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-urn-sub-ns-03.txt

Hannes Tschofenig <hannes.tschofenig@gmx.net> Thu, 21 June 2012 19:48 UTC

Return-Path: <hannes.tschofenig@gmx.net>
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 94E2121F85FC for <oauth@ietfa.amsl.com>; Thu, 21 Jun 2012 12:48:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.499
X-Spam-Level:
X-Spam-Status: No, score=-102.499 tagged_above=-999 required=5 tests=[AWL=0.100, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 I+XiZSIrwsdS for <oauth@ietfa.amsl.com>; Thu, 21 Jun 2012 12:48:09 -0700 (PDT)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by ietfa.amsl.com (Postfix) with SMTP id 1E87121F85D4 for <oauth@ietf.org>; Thu, 21 Jun 2012 12:48:08 -0700 (PDT)
Received: (qmail invoked by alias); 21 Jun 2012 19:48:07 -0000
Received: from a88-115-216-191.elisa-laajakaista.fi (EHLO [192.168.100.101]) [88.115.216.191] by mail.gmx.net (mp040) with SMTP; 21 Jun 2012 21:48:07 +0200
X-Authenticated: #29516787
X-Provags-ID: V01U2FsdGVkX1/kiFQjAiLkfPd4MvPJ4V9ZS0Cypm1eywnERAq1IE /Yd168PDQ4vFQy
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Hannes Tschofenig <hannes.tschofenig@gmx.net>
In-Reply-To: <0F4BC83D-9C3E-44CD-9D8C-5784A7495486@gmx.net>
Date: Thu, 21 Jun 2012 22:48:05 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <DE39D7C5-5265-44D3-A8C0-F8CA39DBC5C1@gmx.net>
References: <20120621175317.32545.76545.idtracker@ietfa.amsl.com> <4E1F6AAD24975D4BA5B16804296739436656323F@TK5EX14MBXC283.redmond.corp.microsoft.com> <0F4BC83D-9C3E-44CD-9D8C-5784A7495486@gmx.net>
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>
X-Mailer: Apple Mail (2.1084)
X-Y-GMX-Trusted: 0
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-urn-sub-ns-03.txt
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: Thu, 21 Jun 2012 19:48:10 -0000

Btw, in a discussion with Brian we check the policies for the three extensions in the OAuth core specification

1) Section 8.3.  Defining New Authorization Grant Types

If you don't define additional token endpoint parameters then there is actually no requirement for expert review or a specification. 
It is probably FCFS. 

2) Section 8.1.  Defining Access Token Types

For URIs there seems to be no constraint either although the text talks about limited to vendor-specific implementations. 

3) client_assertion_type is created in http://tools.ietf.org/html/draft-ietf-oauth-assertions-03#section-8.3 

There is no description either for what is required to register a new assertion type into the URN class client_assertion_type. 

(For client authentication mechanisms there is actually no registry in core and therefore there is no policy either.)

Ciao
Hannes

On Jun 21, 2012, at 10:12 PM, Hannes Tschofenig wrote:

> Hi Mike, 
> 
> Thanks for your mail. 
> 
> First, I would like to argue for a registry that has more than one level. We need a two level registry because the different extensions have (and will also in the future) have different extension policies. 
> 
> The structure of the registry is: urn:ietf:params:oauth:<class>:<id>
> 
> On the first level, the <class> part, we have high level functionality that was defined in the core specification. This includes things like 
> 
> 1) authorization grants (which you call grant-type in your registration request in http://tools.ietf.org/html/draft-ietf-oauth-saml2-bearer-12) 
> 
> So, this would be urn:ietf:params:oauth:grant-type
> 
> 2) client authentication mechanism (which you call client-assertion-type in http://tools.ietf.org/html/draft-ietf-oauth-saml2-bearer-12 but should rather mean something like client-auth-type) 
> 
> So, this could be something like urn:ietf:params:oauth:client-auth-type
> 
> 3) Access Token Types (which is called 'token-type' in http://www.ietf.org/id/draft-ietf-oauth-json-web-token-00.txt)
> 
> This is urn:ietf:params:oauth:token-type. 
> 
> [PS: The text in the http://tools.ietf.org/html/draft-ietf-oauth-v2-28#section-8.1 for registering new access token types is a bit confusing and I am not sure whether an absolute URI would actually be required even though it makes a lot of sense.]
> 
> While I believe that our initial requirement for "RFC required" for adding these top level classes makes sense since these basic extension features to OAuth are really core to the protocol functionality it is good that the group checks them carefully. 
> 
> Then, at the <id> level the individual values reside. For the authorization grant this is 'saml2-bearer' as defined in http://tools.ietf.org/html/draft-ietf-oauth-saml2-bearer-12#section-6. 
> 
> So, what is the right policy for adding values under urn:ietf:params:oauth:grant-type? http://tools.ietf.org/html/draft-ietf-oauth-v2-28#section-8.3 says what the policy is. So, instead of re-deciding a new policy for adding entries here it would be good to get it inline with what the policy is in the core spec. 
> 
> What could go wrong if the two are not aligned? I actually had that case in the DIME working group. Without going into the details the registry had a much stronger policy (RFC required) than the protocol specification (which only required a specification, if I remember it). The consequence was that people couldn't easily register new values from other organizations since they would fail in the last step when a new registry value had to be created (since IANA then told them 'RFC Required'). Consequently, these other organizations who wanted to get their work done then avoided doing so by misusing other extensions, which was really not good.  
> 
> Mike, you have actually been suggesting that a three level category for certain classes of sub-registries is actually OK as well. That may be true and we could relax the text to say that whoever defines the class also decides about the structure of the child elements underneath it.  
> 
> What I believe we need to add in the document is to populate the registry with the three URIs (from above; referring to the classes) and pointing to the policy from the core specification. Then, other docs (like draft-ietf-oauth-json-web-token-00.txt) can just put their values in there. 
> 
> Ciao
> Hannes
> 
> 
> On Jun 21, 2012, at 9:14 PM, Mike Jones wrote:
> 
>> This draft is much clearer.  Thanks for the quick turn-around.
>> 
>> One question:  You added:
>> *Index value: values subordinate to urn:ietf:params:oauth are of the from urn:ietf:params:oauth:<class>:<id> with <class>:<id> as the index value
>> Why bake the assumption of a two-level structure into the registry?
>> 
>> For instance, you could easily imagine legal and useful registrations of the form <class>:<subclass>:<id>, etc.
>> 
>> Maybe change this to say:
>> *Index value: values subordinate to urn:ietf:params:oauth are of the from urn:ietf:params:oauth:<value> with <value> as the index value.  It is suggested that <value> include both a "class" and an "identifier-within-class" component, with the two components being separated by a colon (":"); other compositions of the <value> may also be used.
>> 
>> 				-- Mike
>> 
>> -----Original Message-----
>> From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf Of internet-drafts@ietf.org
>> Sent: Thursday, June 21, 2012 10:53 AM
>> To: i-d-announce@ietf.org
>> Cc: oauth@ietf.org
>> Subject: [OAUTH-WG] I-D Action: draft-ietf-oauth-urn-sub-ns-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           : An IETF URN Sub-Namespace for OAuth
>> 	Author(s)       : Brian Campbell
>>                         Hannes Tschofenig
>> 	Filename        : draft-ietf-oauth-urn-sub-ns-03.txt
>> 	Pages           : 7
>> 	Date            : 2012-06-21
>> 
>> Abstract:
>>  This document establishes an IETF URN Sub-namespace for use with
>>  OAuth related specifications.
>> 
>> 
>> The IETF datatracker status page for this draft is:
>> https://datatracker.ietf.org/doc/draft-ietf-oauth-urn-sub-ns
>> 
>> There's also a htmlized version available at:
>> http://tools.ietf.org/html/draft-ietf-oauth-urn-sub-ns-03
>> 
>> A diff from previous version is available at:
>> http://tools.ietf.org/rfcdiff?url2=draft-ietf-oauth-urn-sub-ns-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
>