mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Note that only first actor_from_request value is respected
https://github.com/datasette/datasette-profiles/issues/4#issuecomment-2758588167
This commit is contained in:
parent
7945f4fbf2
commit
d021ce97aa
1 changed files with 1 additions and 1 deletions
|
|
@ -1026,7 +1026,7 @@ actor_from_request(datasette, request)
|
|||
|
||||
This is part of Datasette's :ref:`authentication and permissions system <authentication>`. 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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue