Re: [httpapi] Request for adoption: Link relationship types for authentication

Asbjørn Ulsberg <asbjorn@ulsberg.no> Tue, 24 January 2023 10:59 UTC

Return-Path: <asbjorn@ulsberg.no>
X-Original-To: httpapi@ietfa.amsl.com
Delivered-To: httpapi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9D988C1522BD for <httpapi@ietfa.amsl.com>; Tue, 24 Jan 2023 02:59:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ulsberg.no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BGfONT-XKdFP for <httpapi@ietfa.amsl.com>; Tue, 24 Jan 2023 02:58:56 -0800 (PST)
Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 93423C14CF0D for <httpapi@ietf.org>; Tue, 24 Jan 2023 02:58:56 -0800 (PST)
Received: by mail-pj1-x102d.google.com with SMTP id x2-20020a17090a46c200b002295ca9855aso18169782pjg.2 for <httpapi@ietf.org>; Tue, 24 Jan 2023 02:58:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ulsberg.no; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FlQJpmPmv1PxprmzNLDUvavUsxJIu5utHPqvTyWXcuo=; b=ZfauRBr0Qxi4CvjkljsYL51hDUoa5DEqCT3if50HPFx9iNYuzFmwouJ7jCFaSTKGY5 oRqEPlH3kM2bmUbBXOIthqTAEk7CpP3tiJjU5HA6nqJXtcbLAAKtaPmc+88dOSf6zkrc rQp9rxvx0MGolLRaEWq8xljfOyIPFd+WtTRgK1qBkh6buuqQF+gAkF4+qdUl18AOALM9 ll2pnAOrJ7t1xEeBHDY+c+LabgwnvjwO2KOFNTKNQgZU9LTo8Mne+kYTWgr9RsOljHrf qDNMfWcfkVRIh97lj1ir+dzHbu/3j9z0tDOD7ImfEbWZ72t8rbzuSW982DtdpfQhwETJ +8mg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FlQJpmPmv1PxprmzNLDUvavUsxJIu5utHPqvTyWXcuo=; b=DwTWoh4evMz2Ke1IWsvLA8cAse0eoACDSDyiq7UQQ7HpUpSwiGTSBRHCpJwoFKfuEH V+49v0vGCHMzwDvxv+xvOJduPN2lw9OQ4F2Q67jWT6Y17b653enzN9vxo7TWbtsiTe9I K3v4SOo6ok/NB8jyN5JtSMxHgFRMxjY8px7S1MXnBEDaN0tReceXfM7w8sNB9EOf2Ctm vtjZzT6i1wXXRXjfDOzU0pLSp7CeKflyb+jPHgXsNHZK/tdoVUzLCOQMPqdIE1zUz0Pg Eds9OeKCiDMM9sWhyjEPsX/YCw20Jdptn34lpbHJnYkPB9AHzQDmy60j11MM2uoPlIM1 GXfw==
X-Gm-Message-State: AFqh2krrMik6xRe3PgUz7e22ZDXYS4u/SIVdzOiSmBo1qnz+NiBor2PF x28Z0yuJYjwW0zHtVgBRDyHuqNW2rHbtiHKrHwlS5hGf
X-Google-Smtp-Source: AMrXdXsDScsq4gvMT3il46V3KiFrg+KmXjcXyFlU5C6C05TuvXtiEazeIiRlqe27/VEIFb+JRot3Vw==
X-Received: by 2002:a17:902:bd97:b0:190:fc28:8cca with SMTP id q23-20020a170902bd9700b00190fc288ccamr27388321pls.10.1674557935273; Tue, 24 Jan 2023 02:58:55 -0800 (PST)
Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com. [209.85.210.174]) by smtp.gmail.com with ESMTPSA id x5-20020a170902ea8500b00194caf3e975sm1357396plb.208.2023.01.24.02.58.54 for <httpapi@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 02:58:54 -0800 (PST)
Received: by mail-pf1-f174.google.com with SMTP id 207so10924345pfv.5 for <httpapi@ietf.org>; Tue, 24 Jan 2023 02:58:54 -0800 (PST)
X-Received: by 2002:aa7:949d:0:b0:574:a3dd:d47f with SMTP id z29-20020aa7949d000000b00574a3ddd47fmr2472869pfk.33.1674557934382; Tue, 24 Jan 2023 02:58:54 -0800 (PST)
MIME-Version: 1.0
References: <69512a2f-44a1-892c-151e-11854d4a63ab@evertpot.com> <F94D4457-1965-4EDA-B512-7E115401CF75@mnot.net> <a27418bc-f7ff-8f78-84bc-0a4954b9e81c@evertpot.com> <B9B294F2-212C-4318-844D-940A10FF29DB@mnot.net>
In-Reply-To: <B9B294F2-212C-4318-844D-940A10FF29DB@mnot.net>
From: Asbjørn Ulsberg <asbjorn@ulsberg.no>
Date: Tue, 24 Jan 2023 11:58:43 +0100
X-Gmail-Original-Message-ID: <CAEdRHi74nFYX_7D94N-_Rxf-pk2X2NqWAZ4Bg1iWTCzfJ1PFiw@mail.gmail.com>
Message-ID: <CAEdRHi74nFYX_7D94N-_Rxf-pk2X2NqWAZ4Bg1iWTCzfJ1PFiw@mail.gmail.com>
To: Mark Nottingham <mnot=40mnot.net@dmarc.ietf.org>
Cc: Evert Pot <me@evertpot.com>, "httpapi@ietf.org" <httpapi@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/httpapi/lA-tM7fKP5ZJOSlbDbXHQnu83LI>
Subject: Re: [httpapi] Request for adoption: Link relationship types for authentication
X-BeenThere: httpapi@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Building Blocks for HTTP APIs <httpapi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/httpapi>, <mailto:httpapi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/httpapi/>
List-Post: <mailto:httpapi@ietf.org>
List-Help: <mailto:httpapi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/httpapi>, <mailto:httpapi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Jan 2023 10:59:00 -0000

fre. 20. jan. 2023 kl. 03:56 skrev Mark Nottingham
<mnot=40mnot.net@dmarc.ietf.org>:

> That makes sense. However, I wonder if it'd be more accurate to give them
> names like "logout-page" to clarify that this isn't a relation that forms part
> of a logout protocol; rather, it's merely a link to a web page that lets you
> log out.

I agree that the verb "logout" may give the impression that following
the link will cause the client to become logged out, which I don't
think is the case. Although IANA already contains link relations that
are of similar nature, such as "pingback", "search", and "webmention",
it would be preferable to find a noun that unambiguously describes the
relationship instead of a verb.

However, as the media type of the referenced URI is neither defined
nor mandated, I think the word "page" sounds a bit too restrictive,
almost as if it requires the response to be HTML.

As the "logout" URI may respond with, say, JSON-LD providing
hypermedia controls to perform the logout operation, I think we should
find another word than "page". It may also be worth noting that none
of the existing link relationships contain the word "page". How about
"resource"?

-- 
Asbjørn Ulsberg           -=|=-        asbjorn@ulsberg.no
«He's a loathsome offensive brute, yet I can't look away»