Skip to content

WebFinger - Resource Account Lookup #11

@benrick

Description

@benrick

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:brendoneus@our.devchatter.com
{
    "subject":"acct:brendoneus@our.devchatter.com",
    "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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions