Loading CHANGES.md +9 −0 Original line number Diff line number Diff line Loading @@ -41,9 +41,18 @@ To be released. a path as <code>`${string}{handle}${string}`</code> instead of `string` so that it is more type-safe. - Added generalized object dispatchers. [[#33]] - Added `Federation.setObjectDispatcher()` method. - Added `ObjectDispatcher` type. - Added `ObjectAuthorizePredicate` type. - Added `Context.getObjectUri()` method. - Added `RequestContext.getObject()` method. [public addressing]: https://www.w3.org/TR/activitypub/#public-addressing [authorized fetch]: https://swicg.github.io/activitypub-http-signature/#authorized-fetch [LogTape]: https://github.com/dahlia/logtape [#33]: https://github.com/dahlia/fedify/issues/33 Version 0.6.1 Loading docs/.vitepress/config.mts +1 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ export default defineConfig({ { text: "Inbox listeners", link: "/manual/inbox.md" }, { text: "Sending activities", link: "/manual/send.md" }, { text: "Collections", link: "/manual/collections.md" }, { text: "Object dispatcher", link: "/manual/object.md" }, { text: "Access control", link: "/manual/access-control.md" }, { text: "NodeInfo", link: "/manual/nodeinfo.md" }, { text: "Pragmatics", link: "/manual/pragmatics.md" }, Loading docs/manual.md +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ framework. - [Inbox listeners](./manual/inbox.md) - [Send activities](./manual/send.md) - [Collections](./manual/collections.md) - [Object](./manual/object.md) - [Access control](./manual/access-control.md) - [NodeInfo](./manual/nodeinfo.md) - [Pragmatics](./manual/pragmatics.md) Loading docs/manual/access-control.md +4 −3 Original line number Diff line number Diff line Loading @@ -4,8 +4,8 @@ description: >- who can access your resources. This section explains how to use the access control system. prev: text: Collections link: ./collections.md text: Object dispatcher link: ./object.md next: text: NodeInfo link: ./nodeinfo.md Loading Loading @@ -35,7 +35,8 @@ Enabling authorized fetch To enable authorized fetch, you need to register an `AuthorizePredicate` callback with `ActorCallbackSetters.authorize()` or `CollectionCallbackSetters.authorize()`. The below example shows how to enable `CollectionCallbackSetters.authorize()`, or `ObjectAuthorizePredicate` callback with `ObjectCallbackSetters.authorize()`. The below example shows how to enable authorized fetch for the actor dispatcher: ~~~~ typescript{8-10} Loading docs/manual/collections.md +2 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,8 @@ prev: text: Sending activities link: ./send.md next: text: Access control link: ./access-control.md text: Object dispatcher link: ./object.md --- Collections Loading Loading
CHANGES.md +9 −0 Original line number Diff line number Diff line Loading @@ -41,9 +41,18 @@ To be released. a path as <code>`${string}{handle}${string}`</code> instead of `string` so that it is more type-safe. - Added generalized object dispatchers. [[#33]] - Added `Federation.setObjectDispatcher()` method. - Added `ObjectDispatcher` type. - Added `ObjectAuthorizePredicate` type. - Added `Context.getObjectUri()` method. - Added `RequestContext.getObject()` method. [public addressing]: https://www.w3.org/TR/activitypub/#public-addressing [authorized fetch]: https://swicg.github.io/activitypub-http-signature/#authorized-fetch [LogTape]: https://github.com/dahlia/logtape [#33]: https://github.com/dahlia/fedify/issues/33 Version 0.6.1 Loading
docs/.vitepress/config.mts +1 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,7 @@ export default defineConfig({ { text: "Inbox listeners", link: "/manual/inbox.md" }, { text: "Sending activities", link: "/manual/send.md" }, { text: "Collections", link: "/manual/collections.md" }, { text: "Object dispatcher", link: "/manual/object.md" }, { text: "Access control", link: "/manual/access-control.md" }, { text: "NodeInfo", link: "/manual/nodeinfo.md" }, { text: "Pragmatics", link: "/manual/pragmatics.md" }, Loading
docs/manual.md +1 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ framework. - [Inbox listeners](./manual/inbox.md) - [Send activities](./manual/send.md) - [Collections](./manual/collections.md) - [Object](./manual/object.md) - [Access control](./manual/access-control.md) - [NodeInfo](./manual/nodeinfo.md) - [Pragmatics](./manual/pragmatics.md) Loading
docs/manual/access-control.md +4 −3 Original line number Diff line number Diff line Loading @@ -4,8 +4,8 @@ description: >- who can access your resources. This section explains how to use the access control system. prev: text: Collections link: ./collections.md text: Object dispatcher link: ./object.md next: text: NodeInfo link: ./nodeinfo.md Loading Loading @@ -35,7 +35,8 @@ Enabling authorized fetch To enable authorized fetch, you need to register an `AuthorizePredicate` callback with `ActorCallbackSetters.authorize()` or `CollectionCallbackSetters.authorize()`. The below example shows how to enable `CollectionCallbackSetters.authorize()`, or `ObjectAuthorizePredicate` callback with `ObjectCallbackSetters.authorize()`. The below example shows how to enable authorized fetch for the actor dispatcher: ~~~~ typescript{8-10} Loading
docs/manual/collections.md +2 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,8 @@ prev: text: Sending activities link: ./send.md next: text: Access control link: ./access-control.md text: Object dispatcher link: ./object.md --- Collections Loading