Re: Authentication over HTTP

Amos Jeffries <squid3@treenet.co.nz> Tue, 16 July 2013 12:56 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 7B87521E8050 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 16 Jul 2013 05:56:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.57
X-Spam-Level:
X-Spam-Status: No, score=-10.57 tagged_above=-999 required=5 tests=[AWL=0.029, 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 Z3HDWinQUh9K for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 16 Jul 2013 05:56:35 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6250B21E809A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 16 Jul 2013 05:56:13 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Uz4mh-00019W-2i for ietf-http-wg-dist@listhub.w3.org; Tue, 16 Jul 2013 12:55:15 +0000
Resent-Date: Tue, 16 Jul 2013 12:55:15 +0000
Resent-Message-Id: <E1Uz4mh-00019W-2i@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Uz4mY-00018D-N4 for ietf-http-wg@listhub.w3.org; Tue, 16 Jul 2013 12:55:06 +0000
Received: from ip-58-28-153-233.static-xdsl.xnet.co.nz ([58.28.153.233] helo=treenet.co.nz) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <squid3@treenet.co.nz>) id 1Uz4mX-0002pI-Kb for ietf-http-wg@w3.org; Tue, 16 Jul 2013 12:55:06 +0000
Received: from [192.168.1.218] (ip202-27-218-168.satlan.co.nz [202.27.218.168]) by treenet.co.nz (Postfix) with ESMTP id 27D0BE6F48 for <ietf-http-wg@w3.org>; Wed, 17 Jul 2013 00:54:41 +1200 (NZST)
Message-ID: <51E5428D.7010008@treenet.co.nz>
Date: Wed, 17 Jul 2013 00:54:37 +1200
From: Amos Jeffries <squid3@treenet.co.nz>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7
MIME-Version: 1.0
To: ietf-http-wg@w3.org
References: <CE0AD74C.22464%Josh.Howlett@ja.net>
In-Reply-To: <CE0AD74C.22464%Josh.Howlett@ja.net>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=58.28.153.233; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-3.267, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Uz4mX-0002pI-Kb 1befe88500bba820ec368647a97c584f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Authentication over HTTP
Archived-At: <http://www.w3.org/mid/51E5428D.7010008@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18808
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 16/07/2013 10:04 p.m., Josh Howlett wrote:
>> That leaves only the application layer as the best suited for
>> authentication of identities (and/or resolution to attributes) that
>> the service needs for authorization (or even in the other direction).
>> This, I know, is a bit of a controversial opinion.  My proposal is
>> here: http://tools.ietf.org/html/draft-williams-http-rest-auth-01
>> (ah, I need to submit the WG version).
> I agree with this analysis. No single mechanism will meet every need. It
> is more important that HTTP has the agility to allow different mechanisms
> on a per-application basis, while maintaining a consistent presentation to
> users and application developers (as Nico's proposal allows). Binding
> specific mechanisms to the protocol, as in HTTP/1.1, would be an error IMO.

Binding what exactly? If you look through RFC 2616 there is no mention 
of authentication mechanism limits.

The mechanisms which we are all so familiar with today are defined in 
RFCs outside of the HTTP protocol spec and layered on top of HTTP 
headers. There is none of them which can be pointed at specifically and 
say "that is only possible with HTTP" or "HTTP only permits X, Y, Z 
mechanisms". HTTP simply defines some headers which are reserved for 
sending auth credentials per-hop or end-to-end, limiting to two sets of 
credentials concurrently on any hop. It is the application and 
implementations which determines which one is more appropriate to be 
used on any transaction and/or hop.

*Every single claim* that HTTP-auth is broken and needs re-designing 
seems to me to be based on the flawed assumption that HTTP-auth is not 
extensible and that the common existing schemes are the only ones HTTP 
permits. Or that somehow a user authenticating with N different and 
fragile mechanisms for one transaction is a good thing (I rather 
disagree, the UX on that would be tricky and implementation nightmares).

Amos