I recently went on quite a rabbit hole regarding the .well-known directory, and wrote about it.

  • snoweM
    link
    fedilink
    English
    12 years ago

    That is really interesting. Does anyone have an example of what a web finger might contain? It says avatar data but I’m interested in how sites use it.

    • @[email protected]OP
      link
      fedilink
      English
      12 years ago

      Hey Thanks for reading, and I’m glad you found it interesting.

      To my understanding, Webfinger provides a standard API for discovering the user profile details no matter the software running on the node.

      For example,

      $ curl https://programming.dev/.well-known/webfinger\?resource\=acct:[email protected] | jq
      {
        "subject": "acct:[email protected]",
        "links": [
          {
            "rel": "http://webfinger.net/rel/profile-page",
            "type": "text/html",
            "href": "https://programming.dev/u/snowe"
          },
          {
            "rel": "self",
            "type": "application/activity+json",
            "href": "https://programming.dev/u/snowe",
            "properties": {
              "https://www.w3.org/ns/activitystreams#type": "Person"
            }
          }
        ]
      }