Re: [OAUTH-WG] JMAP's experience with proposing an Authentication model

Evert Pot <me@evertpot.com> Tue, 23 February 2021 22:36 UTC

Return-Path: <me@evertpot.com>
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 B85CC3A0E0B for <oauth@ietfa.amsl.com>; Tue, 23 Feb 2021 14:36:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H3=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 (1024-bit key) header.d=evertpot.com header.b=aPyNQI0h; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=t7uqGyf+
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 rIrJmDFxKz6M for <oauth@ietfa.amsl.com>; Tue, 23 Feb 2021 14:36:29 -0800 (PST)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 70FF53A0E09 for <oauth@ietf.org>; Tue, 23 Feb 2021 14:36:29 -0800 (PST)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 9D7B85C00A8 for <oauth@ietf.org>; Tue, 23 Feb 2021 17:36:28 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 23 Feb 2021 17:36:28 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=evertpot.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type; s=mesmtp; bh=FDn6hQTncgjOe6DdtU6roiv9 yUCNQkhzgSuviUAvaq4=; b=aPyNQI0hJesUqc2PO86bGfsiHhW1enoUaKXu5OF3 Rbk35MUp9eLYeCH2C7IxhZPzLTJkGMgZlX2iaxmvoleTXrSKFOjMUH6P8XZ+eHj+ Ee+3FTq1rpaslfEWsrUQpZ++CefHjRZy7foB9NXjwSoiToVyP3UFmSqxrYVxbYqi rjE=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=FDn6hQ TncgjOe6DdtU6roiv9yUCNQkhzgSuviUAvaq4=; b=t7uqGyf+a38s1fbHJBGVxZ zn/ShG+wQD/7Q6NkFdUZE6Rf5OUehopOYIGVlYrHxpJ29lJgctfWDtSp7OB1x3Wn 2BwdpeZJw6o/4VBV9Qb76ihySbeb/xmgoHLgVObzB8sa83Xq19D4N2Rz9YHezv4F omTCixHL6rCSZdk4F4P4qBqo+rsmV82CiP+jEih9SYdeihwMqpy5rlDzCaP36Fu3 RBbQ8gSMxl+scueIojJyw53Tf0XFasOUctxrEWiHy6yp1tC1ujW1wWlwFSK+RAGg VlZ+vFqWnWLSR7SJpGpJ3iytIAqufPDO8AjgfYz8oTC9kpDusbC4m7NqAJucE87w ==
X-ME-Sender: <xms:bIM1YImgkY9Rx4EWUqrzHuU6DgNHmWStoE1tfnRUBeJwaPiKC7hebA> <xme:bIM1YH2Mfgtl57rFZ71PNynjAGNPMcXI1T47kd1nl9xXOK5TmoMamK4iYrFDsNcQq nGR25u9kLa3KSIx>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrkeehgdduiedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgesrgdtre ertdefjeenucfhrhhomhepgfhvvghrthcurfhothcuoehmvgesvghvvghrthhpohhtrdgt ohhmqeenucggtffrrghtthgvrhhnpefhueehgfejtdduheehgeevveeijeffffejueefgf eiudekhffhvedukedvteeiudenucffohhmrghinhephhhtthhptghlihgvnhhtshgsuhht shgukhhsfhhorhgvrggthhhsvghrvhhitggvrdhtohenucfkphepudegvddruddviedrud eiiedrvddtjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehmvgesvghvvghrthhpohhtrdgtohhm
X-ME-Proxy: <xmx:bIM1YGp3tnfYiSBUu8iu5eDMTktsCBokCO5sfGH5sl3nFPuf_OQkhw> <xmx:bIM1YEmAlS5EtGSLa9mGxDRNfOeeQsZl_p8zaeEB-SyGzXcFuvxjIQ> <xmx:bIM1YG35ePTgWvHUqhdwn5ctlCVV0B3I6Nq-dY4PFsHHq99FGEDR6g> <xmx:bIM1YHAzmMvPuaP5IuqaRqoxuigV7EtypIUddh1pOzCF6j5trDYxxw>
Received: from [192.168.2.61] (unknown [142.126.166.207]) by mail.messagingengine.com (Postfix) with ESMTPA id 550301080069 for <oauth@ietf.org>; Tue, 23 Feb 2021 17:36:28 -0500 (EST)
To: oauth@ietf.org
References: <37eecb9b-f0eb-e21c-b162-b1f0339e4981@si6networks.com> <3c2d646d-f18d-4d88-b458-29dbd486432b@beta.fastmail.com> <AM0PR08MB371669108E9CEA561BEC9EF6FA809@AM0PR08MB3716.eurprd08.prod.outlook.com> <d6648437-332b-4668-a1c7-591f2c287539@dogfood.fastmail.com> <AM0PR08MB371608D64FF113417D8B3C2DFA809@AM0PR08MB3716.eurprd08.prod.outlook.com> <98f539f4-1207-4a03-ae1f-f377d6964122@dogfood.fastmail.com> <CAJot-L2wyN0eQTHYeJVN0kg-7erKMWbtWwxf3+uHwYwLmUu7tQ@mail.gmail.com> <76e71db0-5cd5-4f95-8c44-9c476a1adb24@dogfood.fastmail.com> <CAJot-L2th=moqiRvKBw=-1AaVU15EicTQnx3PoajQoAc8kbZzw@mail.gmail.com> <CA+k3eCQNbNei2c4LSEbrxLo4H4xTEjd2cCy2KhZnEDbn-7xvpw@mail.gmail.com> <24452E46-B957-4C35-BAEC-BC2D75B25923@independentid.com> <50a62bd2-5a1c-481a-b58b-3f90ec703f88@dogfood.fastmail.com>
From: Evert Pot <me@evertpot.com>
Message-ID: <7cc82198-4eed-50d3-4de4-30dc0919cdcc@evertpot.com>
Date: Tue, 23 Feb 2021 17:36:24 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1
MIME-Version: 1.0
In-Reply-To: <50a62bd2-5a1c-481a-b58b-3f90ec703f88@dogfood.fastmail.com>
Content-Type: multipart/alternative; boundary="------------7C5F7D1643A80C064BF47411"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/Gv_QPNvNAX8MhXL5VHrrvUhcPlo>
Subject: Re: [OAUTH-WG] JMAP's experience with proposing an Authentication model
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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: Tue, 23 Feb 2021 22:36:31 -0000

> If every client and every server needs to implement "/all the popular 
> mechanisms/" then that's not such a big deal when you're shipping the 
> client code for your own server as part of a website, but it's a big 
> deal if you're trying to create a general client and don't want to 
> have to hard-code the specific magic for each server provider.
>
> So the reason to encode the authentication mechanism into JMAP was 
> precisely to reduce the number of possibilities.

I want to echo this as a something I also feel OAuth2 has failed at 
(thusfar). We used to be able to point our user-agent at an endpoint, 
get a WWW-Authenticate & 401, and the agent would be able to figure out 
how to log the user in. I can't point my browser to an OAuth2 protected 
endpoint and discover what an API offers.

With OAuth2 we need a ton of out-of-band information. I think this is 
partially contributing to people not building generic HTTP clients, but 
SDKs for each service. To some extent I think it's breaking the web.

I hope a future version of OAuth prioritizes server-driven oauth2 
configuration.

Evert

P.S.: I do appreciate all the work that has gone in OAuth2, and this 
specific criticism is not intended as an overall sentiment.