From d021ce97aa60c48441bad7a976112b2bb11f6ccd Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 27 Mar 2025 09:09:57 -0700 Subject: [PATCH] Note that only first actor_from_request value is respected https://github.com/datasette/datasette-profiles/issues/4#issuecomment-2758588167 --- docs/plugin_hooks.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugin_hooks.rst b/docs/plugin_hooks.rst index 84db9818..5b3baf3f 100644 --- a/docs/plugin_hooks.rst +++ b/docs/plugin_hooks.rst @@ -1026,7 +1026,7 @@ actor_from_request(datasette, request) This is part of Datasette's :ref:`authentication and permissions system `. The function should attempt to authenticate an actor (either a user or an API actor of some sort) based on information in the request. -If it cannot authenticate an actor, it should return ``None``. Otherwise it should return a dictionary representing that actor. +If it cannot authenticate an actor, it should return ``None``, otherwise it should return a dictionary representing that actor. Once a plugin has returned an actor from this hook other plugins will be ignored. Here's an example that authenticates the actor based on an incoming API key: