Re: Question on Multiplicity of Authorization and WWW-Authenticate

Julian Reschke <julian.reschke@gmx.de> Tue, 16 April 2013 12:35 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0BAC421F96D9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 16 Apr 2013 05:35:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.849
X-Spam-Level:
X-Spam-Status: No, score=-8.849 tagged_above=-999 required=5 tests=[AWL=1.750, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 G7zzvlOKmlWl for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 16 Apr 2013 05:35:54 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 5BF3321F969B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 16 Apr 2013 05:35:54 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1US56T-0000FZ-QB for ietf-http-wg-dist@listhub.w3.org; Tue, 16 Apr 2013 12:35:17 +0000
Resent-Date: Tue, 16 Apr 2013 12:35:17 +0000
Resent-Message-Id: <E1US56T-0000FZ-QB@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1US56R-0000EL-3o for ietf-http-wg@listhub.w3.org; Tue, 16 Apr 2013 12:35:15 +0000
Received: from mout.gmx.net ([212.227.17.21]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <julian.reschke@gmx.de>) id 1US56O-0008Tr-1E for ietf-http-wg@w3.org; Tue, 16 Apr 2013 12:35:15 +0000
Received: from mailout-de.gmx.net ([10.1.76.32]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MW5VH-1U3b7i2bzl-00XMqO for <ietf-http-wg@w3.org>; Tue, 16 Apr 2013 14:34:43 +0200
Received: (qmail invoked by alias); 16 Apr 2013 12:34:43 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.105]) [217.91.35.233] by mail.gmx.net (mp032) with SMTP; 16 Apr 2013 14:34:43 +0200
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX1+RRcBD3uqR2SX065rbkwfwjnKL9DMFXVphRVrzxl UEmhVqAOhQOVdR
Message-ID: <516D4561.6090300@gmx.de>
Date: Tue, 16 Apr 2013 14:34:41 +0200
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
MIME-Version: 1.0
To: algermissen1971 <algermissen1971@me.com>
CC: Jan Algermissen <jan.algermissen@nordsc.com>, ietf-http-wg@w3.org
References: <0F597111-A3C0-45D6-84EB-E357B5AEAA26@nordsc.com> <516D3E95.6050202@gmx.de> <73861E81-194A-41C6-9E08-8E7D89362DAD@me.com>
In-Reply-To: <73861E81-194A-41C6-9E08-8E7D89362DAD@me.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Received-SPF: pass client-ip=212.227.17.21; envelope-from=julian.reschke@gmx.de; helo=mout.gmx.net
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-3.390, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1US56O-0008Tr-1E d1ffaa2696ff04bd422222abf3d55920
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Question on Multiplicity of Authorization and WWW-Authenticate
Archived-At: <http://www.w3.org/mid/516D4561.6090300@gmx.de>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17252
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 2013-04-16 14:11, algermissen1971 wrote:
>
> On 16.04.2013, at 14:05, Julian Reschke <julian.reschke@gmx.de> wrote:
>
>> On 2013-04-16 13:55, Jan Algermissen wrote:
>>> Hi,
>>>
>>> I was wondering whether there can be multiple Authorization headers in an HTTP request.
>>>
>>> AFAIU does not address the question, so I turned to [2] which suggests that there can only be one Authorization header per request. Because Authorization does not have a list value format.
>>>
>>> Is that interpretation correct?
>>>
>>> I am wondering because I understand [1] to say that WWW-Authenticate can indeed be used multiple times. However, WWW-Authenticate also does not have a list value format but is also not listed as an exception in [2], as is Set-Cookie.
>>>
>>> Can anyone clarify?
>>> ...
>>
>> WWW-Authenticate *does* use the list format, so yes, it can be repeated.
>
> Hmm, is that because the ',' separates the various challanges. So, WWW-Authenticate value is a list of the value of Authorization header, yes?
>
> Jan

It's because the ABNF uses the "#" list production. And yes, this 
implies that you can either use multiple header field instances, or 
separate multiple values by "," in a single header field.

Best regards, Julian