Smilodon icon indicating copy to clipboard operation
Smilodon copied to clipboard

WebFinger - Resource Account Lookup

Open benrick opened this issue 2 years ago • 0 comments

Mastodon uses Webfinger to find information from the server where someone's account is located. To do this, it uses the Webfinger spec, because ActivityPub alone doesn't have this lookup. We'll need to support requests like this:

https://our.devchatter.com/.well-known/webfinger?resource=acct:[email protected]
{
    "subject":"acct:[email protected]",
    "aliases":[
        "https://our.devchatter.com/@brendoneus",
        "https://our.devchatter.com/users/brendoneus"
    ],
    "links":[
        {
            "rel":"http://webfinger.net/rel/profile-page",
            "type":"text/html",
            "href":"https://our.devchatter.com/@brendoneus"
        },
        {
            "rel":"self",
            "type":"application/activity+json",
            "href":"https://our.devchatter.com/users/brendoneus"
        },
        {
            "rel":"http://ostatus.org/schema/1.0/subscribe",
            "template":"https://our.devchatter.com/authorize_interaction?uri={uri}"
        }
    ]
}

Mastodon Docs on Webfinger Usage: https://docs.joinmastodon.org/spec/webfinger/ Official Webfinger Site: https://webfinger.net/

benrick avatar Nov 21 '22 00:11 benrick