Re: [OAUTH-WG] defining new response types

Breno de Medeiros <breno@google.com> Tue, 12 July 2011 17:59 UTC

Return-Path: <breno@google.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 AD2F121F8D46 for <oauth@ietfa.amsl.com>; Tue, 12 Jul 2011 10:59:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.377
X-Spam-Level:
X-Spam-Status: No, score=-105.377 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_45=0.6, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 wCu2Q4IFk-sf for <oauth@ietfa.amsl.com>; Tue, 12 Jul 2011 10:59:28 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by ietfa.amsl.com (Postfix) with ESMTP id CB30521F8D45 for <oauth@ietf.org>; Tue, 12 Jul 2011 10:59:27 -0700 (PDT)
Received: from kpbe20.cbf.corp.google.com (kpbe20.cbf.corp.google.com [172.25.105.84]) by smtp-out.google.com with ESMTP id p6CHxR4Y024658 for <oauth@ietf.org>; Tue, 12 Jul 2011 10:59:27 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1310493567; bh=U1lJvjiElym2nMrgo8nkwZ5QH7o=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=itl96kiaddDXKAeuK9MnVdWpc2+8aoMKwzjtJ3xYUzR+tLlVDTKJUlQGxYpzZzgm4 PdAlkjKYBZEtTZc1SRw1w==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=dkim-signature:mime-version:in-reply-to:references:date: message-id:subject:from:to:cc:content-type:x-system-of-record; b=rodMrA8AECyefUusDGo/0KrZMwOsAeRsRoKZyg1aDUuFaC54o86S8+5ivXrjPkEFv UcXuxOPDrL2SJJBY5KPBg==
Received: from yia13 (yia13.prod.google.com [10.243.65.13]) by kpbe20.cbf.corp.google.com with ESMTP id p6CHvOao018573 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <oauth@ietf.org>; Tue, 12 Jul 2011 10:59:26 -0700
Received: by yia13 with SMTP id 13so2419466yia.0 for <oauth@ietf.org>; Tue, 12 Jul 2011 10:59:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+y4ngbMZQTpBPLPQxoKbz0NVLLanxmhI2ZzIKh0g2aw=; b=DFH6OiQOvRnngznMkRU0yjPmRz3qwzH6k9NTi+ibtmURKXFfgrf73P5wOLjm0Ko5Ud 6T4o1NzMoYPbPA5GmQ+Q==
MIME-Version: 1.0
Received: by 10.101.25.9 with SMTP id c9mr263731anj.9.1310493564033; Tue, 12 Jul 2011 10:59:24 -0700 (PDT)
Received: by 10.101.49.19 with HTTP; Tue, 12 Jul 2011 10:59:23 -0700 (PDT)
In-Reply-To: <85A6E014-25A0-4970-8741-2F174B20688E@hueniverse.com>
References: <CAGdjJpKq=90QhSt68sYbtW9TtW+OR5nxYxTSC1A1jYRA=369tg@mail.gmail.com> <85A6E014-25A0-4970-8741-2F174B20688E@hueniverse.com>
Date: Tue, 12 Jul 2011 10:59:23 -0700
Message-ID: <CAAJ++qHek0v=cPcRgWBhku5mftjMEDQzekvjABqynMGBo_p7GQ@mail.gmail.com>
From: Breno de Medeiros <breno@google.com>
To: Eran Hammer-Lahav <eran@hueniverse.com>
Content-Type: text/plain; charset="ISO-8859-1"
X-System-Of-Record: true
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] defining new response types
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: Tue, 12 Jul 2011 17:59:28 -0000

Imposing order and exact string matching on response_type's while
simultaneously supporting a special character '+' and introducing the
concept of composite response_type is a poor compromise, IMNSHO. What
is the rationale to fear allowing multiple-valued response_type as we
have for other parameters in the spec?

On Mon, Jul 11, 2011 at 18:51, Eran Hammer-Lahav <eran@hueniverse.com> wrote:
> As for the plus encoding we can choose another char or give an example.
>
> On Jul 11, 2011, at 18:07, "Marius Scurtescu" <mscurtescu@google.com> wrote:
>
>> If I read section 8.4 correctly it seems that new response types can
>> be defined but composite values must be registered explicitly.
>>
>> I don't think this approach scales too well. OpenID Connect for
>> example is adding a new response type: id_token.
>>
>> id_token can be combined with either code or token and potentially
>> with both of them, the following combinations must be registered as a
>> result:
>> code+id_token
>> token+id_token
>> code+token+id_token
>>
>> and this assumes that code+token is already registered.
>>
>> I think it makes more sense to define response_type as a space
>> separated list of items, where each item can be individually
>> registered. I do realize that this complicates things quite a bit (not
>> we have to define and deal with both composite response_type and the
>> individual items).
>>
>> As a side note, using + as separator could cause lots of problems. If
>> people naively type "code+toke" it will be decoded as "code token". No
>> one will remember the hex code for +.
>>
>> Marius
>> _______________________________________________
>> OAuth mailing list
>> OAuth@ietf.org
>> https://www.ietf.org/mailman/listinfo/oauth
>



-- 
--Breno