Note
このドキュメントは2026/02/27にTranslateGemma 12bを使用して自動翻訳されました。
FEP-d556: WebFingerを使用したサーバーレベルのア殄クタの検出
このドキュメントは、WebFingerを使用して、サーバーレベルのアクタを検出する方法について説明します。
概要
ActivityPubベースの分散型ソーシャルネットワークでは、サーバーレベルのアクタ(例えば、サーバー自体を表すエンティティ)を特定し、それに関連する情報を取得することが重要です。この提案では、標準的なWebFingerプロトコルを使用して、このプロセスを簡素化し、標準化することを目指します。
目的
- サーバーレベルのアクタを検出するための標準化された方法を提供します。
- 既存のWebFingerインフラストラクチャを活用します。
- ActivityPubの実装との互換性を向上させます。
仕様
-
WebFingerリクエスト: クライアントは、サーバーのドメイン名を使用して、WebFingerリクエストを送信します。
GET /.well-known/webfinger?resource=acct:domain.com@domain.com Host: domain.comresource: 検出するリソースのURI。この場合、サーバーレベルのアクタを表すActivityPubアカウントURIです。
-
WebFingerレスポンス: サーバーは、以下の情報を含むJSON形式のレスポンスを返します。
{ "subject": "acct:domain.com@domain.com", "aliases": [ "https://domain.com/actor" ], "links": [ { "rel": "http://webfinger.net/rel/profile-page", "type": "text/html", "href": "https://domain.com/about/more?instance_actor=true" }, { "rel": "self", "type": "application/activity+json", "href": "https://domain.com/actor" }, { "rel": "http://ostatus.org/schema/1.0/subscribe", "template": "https://domain.com/authorize_interaction?uri={uri}" } ] }subject: 検出されたアクタのActivityPubアカウントURI。aliases: アクタに関連付けられた他のURI(例:サーバーの公開ページ)。links: アクタに関する追加情報へのリンク。rel: リンクの種類(例:http://webfinger.net/rel/profile-page、self)。type: リンク先のコンテンツのMIMEタイプ(例:text/html、application/activity+json)。href: リンク先のURI。
実装例
Mastodon
Mastodonは、この提案に類似した実装を提供しています。
GET /.well-known/webfinger?resource=https://mastodon.social/
Host: https://mastodon.social
または、MastodonアカウントベースのURIを使用:
GET /.well-known/webfinger?resource=acct:mastodon.social@mastodon.social
Host: https://mastodon.social
レスポンスの例:
{
"subject": "acct:mastodon.social@mastodon.social",
"aliases": [
"https://mastodon.social/actor"
],
"links": [
{
"rel": "http://webfinger.net/rel/profile-page",
"type": "text/html",
"href": "https://mastodon.social/about/more?instance_actor=true"
},
{
"rel": "self",
"type": "application/activity+json",
"href": "https://mastodon.social/actor"
},
{
"rel": "http://ostatus.org/schema/1.0/subscribe",
"template": "https://mastodon.social/authorize_interaction?uri={uri}"
}
]
}
関連する提案
参考文献
- Christine Lemmer Webber, Jessica Tallon, ActivityPub
- James M Snell, Evan Prodromou, [ActivityStreams Vocabulary]
- W3C ActivityStreams Primer - [Application type]
- W3C ActivityStreams Primer - [Service type]
- Eugen Rochko, Mastodon
- Jonne Haß, NodeInfo
- MDN, [Same-origin Policy]
- Brad Fitzpatrick, WebFinger
- WebFinger.net [Link Relations]
著作権
CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
このFediverse Enhancement Proposalの著者は、可能な限り法的に、この作品に関するすべての著作権および関連する権利を放棄しました。