Implement Webfinger profile discovery
The ActivityPub spec doesn't cover profile discovery. However, per ActivityPub? Well, it’s not that bad:
Most current implementers have integrated Webfinger for that purpose, since users like to work with handles rather than URLs. So although not explicitly specified, this is a fine solution for the problem.
For example, Webfinger is implemented in Mastodon and is the recommended way to implement interoperability per this tutorial.
Ours is not the only use case, so probably need to post a stand-alone Webfinger module.
I've posted a first alpha release of a Webfinger module, https://www.drupal.org/project/webfinger. To integrate, we'll register an event subscriber similar to the one in the Webfinger module, https://git.drupalcode.org/project/webfinger/blob/8.x-1.x/src/EventSubscriber/WebfingerProfileSubscriber.php.