Re: [OAUTH-WG] Possible alternative resolution to issue 26

Julian Reschke <julian.reschke@gmx.de> Fri, 30 September 2011 13:19 UTC

Return-Path: <julian.reschke@gmx.de>
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 DE0C121F8B5B for <oauth@ietfa.amsl.com>; Fri, 30 Sep 2011 06:19:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.347
X-Spam-Level:
X-Spam-Status: No, score=-104.347 tagged_above=-999 required=5 tests=[AWL=-1.748, 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 0vjZlbtjob00 for <oauth@ietfa.amsl.com>; Fri, 30 Sep 2011 06:19:14 -0700 (PDT)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by ietfa.amsl.com (Postfix) with SMTP id 794D621F8B57 for <oauth@ietf.org>; Fri, 30 Sep 2011 06:19:13 -0700 (PDT)
Received: (qmail invoked by alias); 30 Sep 2011 13:22:05 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.140]) [217.91.35.233] by mail.gmx.net (mp004) with SMTP; 30 Sep 2011 15:22:05 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX19zSUMeQHZz3dU3l3pd8RrNSc3Dy2ss8+wwfkzv1a lrZBWqGqThz9Y1
Message-ID: <4E85C27C.3030909@gmx.de>
Date: Fri, 30 Sep 2011 15:22:04 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0) Gecko/20110922 Thunderbird/7.0
MIME-Version: 1.0
To: Buhake Sindi <buhake@googlemail.com>
References: <4E1F6AAD24975D4BA5B16804296739435C21DD2C@TK5EX14MBXC284.redmond.corp.microsoft.com> <CABUp4f73a3zJ9Vu510-JmaGP4N4v1_thkzV5GLYS+ivh7NJfBA@mail.gmail.com>
In-Reply-To: <CABUp4f73a3zJ9Vu510-JmaGP4N4v1_thkzV5GLYS+ivh7NJfBA@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: "oauth@ietf.org" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Possible alternative resolution to issue 26
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, 30 Sep 2011 13:19:15 -0000

On 2011-09-30 14:03, Buhake Sindi wrote:
> Hi everyone,
>
> As for encoding, my understanding is that the scope parameter were scope
> fields provided by the service provider and that scope should match the
> service provider scope. Fair enough, we could argue that non-UTF-8
> characters can't be sent over HTTP response headers, so a better
> solution, I would suggest is illustrated in section 4.2, Error Handling,
> of RFC 5987.
>
> My solution: add an encoding as a value of the scope and error-desc,
> followed by a colon (:) and then the percentage-encoded message.

Why invent yet another format that's close to RFC 5987 but not the same?

> So, the message, is first encoded to the encoding specified, and then
> percentage-encoded:
>
> Example:
>
> error-descr="UTF-8: <percentage-encoded of an UTF-8 message>"
>
> The client would then:
>
>  1. Percentage decode the string and get the string based on the encoding.
>
> Problem is though, the length of the string value.

How is that a problem?

 > ...

Best regards, Julian