Re: WWW-Authenticate with webauthn?

"Soni L." <fakedme+http@gmail.com> Mon, 17 May 2021 11:02 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@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 0AF963A331E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 17 May 2021 04:02:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.75
X-Spam-Level:
X-Spam-Status: No, score=-2.75 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01KDTgrui15L for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 17 May 2021 04:02:31 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 583603A331B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 17 May 2021 04:02:30 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1liayd-0008PO-NV for ietf-http-wg-dist@listhub.w3.org; Mon, 17 May 2021 10:59:59 +0000
Resent-Date: Mon, 17 May 2021 10:59:59 +0000
Resent-Message-Id: <E1liayd-0008PO-NV@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <fakedme+http@gmail.com>) id 1liaya-0008Od-Iw for ietf-http-wg@listhub.w3.org; Mon, 17 May 2021 10:59:56 +0000
Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <fakedme+http@gmail.com>) id 1liayY-0006JQ-8B for ietf-http-wg@w3.org; Mon, 17 May 2021 10:59:56 +0000
Received: by mail-oo1-xc2a.google.com with SMTP id i8-20020a4aa1080000b0290201edd785e7so1375107ool.1 for <ietf-http-wg@w3.org>; Mon, 17 May 2021 03:59:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=jS4cbfnzImCwpDsQ9vRjRUYRIviijEtXJBPIm5bNNx0=; b=r96LNoCJrfSmw+T7JBCA3I3dvpDJBihkfakydWjyBxvJn0zterqX0dIbGUshiI1GKz Wv4Mxji5WBkjtgM2MQ2thCwzNQlQj5EGf2pGOrVW6AcbqdLRua30Ec9q3fQmYzXAHB3x g4PhaCpj+cXdK/1kAciTsI6uYcbqjVzXydh56wDAPNms8KS1Xy529qSwFIwydGVc0ySA W1Q7+GKYg5Vp/uORvN7Q+3ZHLb0r+O1hpvElKOwBADM0Y3ENfBd4E1eZ05m8Ap0fwIF4 VqMPC09a80Xg/XFYPyMENPU8X/jdJ7dpXHY4rVioidTtfawSPtEbpLhMQQgl1k2rh0zN 2smg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=jS4cbfnzImCwpDsQ9vRjRUYRIviijEtXJBPIm5bNNx0=; b=Z05fxB4OtoZVBo16mIOt2dUCyDs28snv1C353Np7ai0VWgzdAEEVDWvBqlDgugeuzv L7xMKs4klPqkYjOhyIISgLH44LUbtzNu8VnonrWOscSunQAwp0mI0ZPhc10KZ+g3MYYW RFGn9RlPxSFmEesxaN5zsGcsCpJOWQXZvk1j3RfeiH/0JP9zUoZk81p4Pe/z7LwrAv/u mZRt92wtb4SYy7+3MudkBYybq5HCGPuDXBx0nyysgCd1VcRQI3b5d3xD69hqmJSAYq/W vix3OcGLJJIqfiZHVRFHmKeDvK5z+ZH52l8V9dOA7dmeDpJ2vWLwA+HyjJZRgpHrqha7 CO8A==
X-Gm-Message-State: AOAM5315IbmHi4LKPCEsoMIjf2o9qn6yU2w/yO5z5cvjjKZvoaA88Oyd tRK8LXg18XR0MPGkhqqsNI55N7XZFwc=
X-Google-Smtp-Source: ABdhPJwvHzm76Pc9yzILpWe0Mf/Uu8NcQJBnWdUB77CNzl8Woxjoz3R8VO43KnaOICNifDb0M3K6YQ==
X-Received: by 2002:a4a:3f53:: with SMTP id x19mr7646212ooe.88.1621249182724; Mon, 17 May 2021 03:59:42 -0700 (PDT)
Received: from ?IPv6:2804:431:d77d:3211::536f:6e69? ([2804:431:d77d:3211::536f:6e69]) by smtp.googlemail.com with ESMTPSA id i9sm2968484oog.17.2021.05.17.03.59.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 May 2021 03:59:42 -0700 (PDT)
Sender: "Soni L." <fakedme@gmail.com>
To: Rafal Pietrak <rafal@ztk-rp.eu>, HTTP Working Group <ietf-http-wg@w3.org>
References: <625fa880-06a3-1df3-f579-f6be9fc9f310@gmail.com> <5aa149bd-1c09-5683-3218-5dcedf412bd3@ztk-rp.eu>
From: "Soni L." <fakedme+http@gmail.com>
Message-ID: <13d0197f-3ea8-d9bf-73cf-f3dad2599b7c@gmail.com>
Date: Mon, 17 May 2021 07:59:39 -0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <5aa149bd-1c09-5683-3218-5dcedf412bd3@ztk-rp.eu>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Received-SPF: pass client-ip=2607:f8b0:4864:20::c2a; envelope-from=fakedme+http@gmail.com; helo=mail-oo1-xc2a.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=fakedme+http@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1liayY-0006JQ-8B 79bb089019df77c2277d7d793efbcebe
X-Original-To: ietf-http-wg@w3.org
Subject: Re: WWW-Authenticate with webauthn?
Archived-At: <https://www.w3.org/mid/13d0197f-3ea8-d9bf-73cf-f3dad2599b7c@gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38791
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: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>


On 2021-05-17 4:00 a.m., Rafal Pietrak wrote:
> Hello,
>
> W dniu 17.05.2021 o 06:00, Soni L. pisze:
> > Are there any plans to support WWW-Authenticate with webauthn? (ideally
> > only once per session, so something like a timeout=0 flag and converting
> > the authentication into a session cookie would probably be needed.)
> > 
>
> Pls forgive MHO - I'm not an active participant in IETF works/groups.
> I'm just an occasional web service developer. Keeping that in mind (IMHO):
>
> 1. I perceive WWW-Authenticate useful only in rare cases when developer
> does not particularly care about authentication, AND does not intend to
> put any effort into it (and into future account maintenance) ... BUT
> needs to protect the content somehow. BASIC authentication (and
> variants) is then the primary choice.
>
> 2. (IMHO) in grand majority of other cases, web designer prefers to
> provide it's own "login page", one that have required features (like
> registration, or password reset) and one that is aesteticly coordinated
> with remaining service content. Such page comes from web-server, not
> like WWW-Authenticata, being provided by local web-browser.
>
> 3. www-Authenticate could possibly be useful in cases of
> proxy-authenticate. In those cases one may assume, that one server (the
> proxy server) is in administrative domain separate from the other server
> (the web-application server) administrative domain. In such cases,
> points from (2) above does not apply, so web-browser provided
> authentication panel may be useful.
>
> I'm no authority here, but I personally would avoid putting much effort
> into web-browser support for (browser locally generated) authentication
> "panels", which would translate authentication values into
> authentication HTTP headers being supplied transparently by the browser
> into all HTTP requests, the browser makes.
>
> Still, as you mentioned, www-authenticate would eventually need to be
> conveyed into cookies or something.
>
> IMHO, this should rather turn design efforts into cookie definition
> itself, aiming towards giving web designer the best possible tool for
> every use scenario (that web designer may need for it's implementation).
>
> That's why I'd like to ask you all to consider discussion (towards
> acceptance/ improvement/ ... or an EXPLICIT decline, if proved to be
> "unreperrable") of my recently updated proposal regarding additional
> attribute for cookies:
> https://datatracker.ietf.org/doc/draft-pietrak-cookie-scope/
>
> With best regards,
>
> R

This perception of WWW-Authenticate is frankly dangerous. Webforms are
vulnerable to Logger.debug(password) whereas many WWW-Authenticate
methods aren't (basic notwithstanding). There are even PAKE-based
methods like RFC 8120 which provide additional features beyond simple
authentication, but I digress.

But, please stop bringing up your proposal in replies to my posts.