mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Note in docs about new /-/create-token features, refs #1947
This commit is contained in:
parent
d98a8effb1
commit
6e5ab9e7b3
1 changed files with 2 additions and 0 deletions
|
|
@ -405,6 +405,8 @@ Datasette includes a default mechanism for generating API tokens that can be use
|
|||
|
||||
Authenticated users can create new API tokens using a form on the ``/-/create-token`` page.
|
||||
|
||||
Tokens created in this way can be further restricted to only allow access to specific actions, or to limit those actions to specific databases, tables or queries.
|
||||
|
||||
Created tokens can then be passed in the ``Authorization: Bearer $token`` header of HTTP requests to Datasette.
|
||||
|
||||
A token created by a user will include that user's ``"id"`` in the token payload, so any permissions granted to that user based on their ID can be made available to the token as well.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue