Re: #78: Relationship between 401, Authorization and WWW-Authenticate

Willy Tarreau <w@1wt.eu> Sun, 24 July 2011 18:12 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 B4DDB21F8A64 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 24 Jul 2011 11:12:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.322
X-Spam-Level:
X-Spam-Status: No, score=-9.322 tagged_above=-999 required=5 tests=[AWL=1.277, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 9IySdtp6L7wV for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 24 Jul 2011 11:12:22 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 27E6721F8A57 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 24 Jul 2011 11:12:22 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.69) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Ql39u-0002Il-PF for ietf-http-wg-dist@listhub.w3.org; Sun, 24 Jul 2011 18:12:10 +0000
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.69) (envelope-from <w@1wt.eu>) id 1Ql39n-0002Hl-Mj for ietf-http-wg@listhub.w3.org; Sun, 24 Jul 2011 18:12:03 +0000
Received: from 1wt.eu ([62.212.114.60]) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1Ql39m-00066d-9Y for ietf-http-wg@w3.org; Sun, 24 Jul 2011 18:12:03 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id p6OIBcUu026982; Sun, 24 Jul 2011 20:11:38 +0200
Date: Sun, 24 Jul 2011 20:11:38 +0200
From: Willy Tarreau <w@1wt.eu>
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <20110724181138.GW22405@1wt.eu>
References: <798C1D1A-C0C7-40DD-8993-31DB735A4961@mnot.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <798C1D1A-C0C7-40DD-8993-31DB735A4961@mnot.net>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-3.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RP_MATCHES_RCVD=-1.193, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Ql39m-00066d-9Y fcc71655875855f3736000eeb831494a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: #78: Relationship between 401, Authorization and WWW-Authenticate
Archived-At: <http://www.w3.org/mid/20110724181138.GW22405@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/11053
X-Loop: ietf-http-wg@w3.org
Sender: ietf-http-wg-request@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>
Resent-Message-Id: <E1Ql39u-0002Il-PF@frink.w3.org>
Resent-Date: Sun, 24 Jul 2011 18:12:10 +0000

On Sun, Jul 24, 2011 at 02:06:17PM -0400, Mark Nottingham wrote:
> <http://trac.tools.ietf.org/wg/httpbis/trac/ticket/78>
> 
> Proposal:
> 
> 1) Clarify that WWW-Authenticate can appear on any response, and that when it appears on any other than a 401, it means that the client can optionally present the request again with a credential.

Does this mean it's only for other 4xx or for any status ? It might have
implications with non-idempotent requests if a client can repost a request
that led to a 200 for instance.

> and,
> 
> 2) Clarify that an Authentication scheme that uses WWW-Authenticate and/or 401 MUST use the Authorization header in the request, because of its implications for caching. Schemes MAY specify additional headers to be used alongside it.

This looks important indeed !

Willy