Answering my own question: the #activitypub specification is very ill-defined on authorization in general: https://www.w3.org/TR/activitypub/#authorization
The most detailed information I found about the #mastodon server-to-server protocol is https://github.com/tootsuite/mastodon/issues/4208