Some servers require authentication for all requests made via ActivityPub, even for GET requests on public objects addressed to as:Public
. This violates the requirement that anything addressed to as:Public
is made available without requiring authentication. This FEP proposes an alternative addressing that may be used in such scenarios, signaling that the object is not fully public but is otherwise available to any actor.
(This section is non-normative.)
ActivityPub issue 339 discusses the shortcomings of as:Public
and proposed a new delivery/addressing target of as:Authenticated
, but this proposal was never adopted. The distinction between the two is as follows:
Issues raised with this approach include:
The concern with semantic clarity is unaddressed, as replacing as:Public with a different mechanism to signal fully public objects is out-of-scope for this FEP. However, this mechanism is still useful for addressing different concerns:
In WAC, there is a distinction made between an “agent” (http://xmlns.com/foaf/0.1/Agent
) and an “authenticated agent” (http://www.w3.org/ns/auth/acl#AuthenticatedAgent
). This FEP proposes an addressing target for the latter.
In addition to collections and objects, Activities may additionally be addressed to a special “authenticated” collection, with the identifier http://www.w3.org/ns/auth/acl#AuthenticatedAgent
.
Activities addressed to this special URI shall be accessible to all actors, with authentication. Implementations MUST NOT deliver to the “authenticated” special collection; it is not capable of receiving actual activities.
An activity SHOULD NOT be addressed to both “public” and “authenticated”. In such a case, addressing to “authenticated” has no effect while also addressed to “public”.
to
or cc
or includes in the audience
the “authenticated agents” special identifier.Pixelfed intends to implement this FEP when “signed fetch” is enabled, such that the resulting data returned after a signed fetch does not include as:Public
.
http://www.w3.org/ns/auth/acl#AuthenticatedAgent
CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
To the extent possible under law, the authors of this Fediverse Enhancement Proposal have waived all copyright and related or neighboring rights to this work.