You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.7 KiB

  1. ## ActivityPub federation in Mastodon
  2. Mastodon largely follows the ActivityPub server-to-server specification but it makes uses of some non-standard extensions, some of which are required for interacting with Mastodon at all.
  3. Supported vocabulary: https://docs.joinmastodon.org/spec/activitypub/
  4. ### Required extensions
  5. #### Webfinger
  6. In Mastodon, users are identified by a `username` and `domain` pair (e.g., `Gargron@mastodon.social`).
  7. This is used both for discovery and for unambiguously mentioning users across the fediverse. Furthermore, this is part of Mastodon's database design from its very beginnings.
  8. As a result, Mastodon requires that each ActivityPub actor uniquely maps back to an `acct:` URI that can be resolved via WebFinger.
  9. More information and examples are available at: https://docs.joinmastodon.org/spec/webfinger/
  10. #### HTTP Signatures
  11. In order to authenticate activities, Mastodon relies on HTTP Signatures, signing every `POST` and `GET` request to other ActivityPub implementations on behalf of the user authoring an activity (for `POST` requests) or an actor representing the Mastodon server itself (for most `GET` requests).
  12. Mastodon requires all `POST` requests to be signed, and MAY require `GET` requests to be signed, depending on the configuration of the Mastodon server.
  13. More information on HTTP Signatures, as well as examples, can be found here: https://docs.joinmastodon.org/spec/security/#http
  14. ### Optional extensions
  15. - Linked-Data Signatures: https://docs.joinmastodon.org/spec/security/#ld
  16. - Bearcaps: https://docs.joinmastodon.org/spec/bearcaps/
  17. - Followers collection synchronization: https://git.activitypub.dev/ActivityPubDev/Fediverse-Enhancement-Proposals/src/branch/main/feps/fep-8fcf.md