Skip to content

Commit

Permalink
Note in docs about new /-/create-token features, refs #1947
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Dec 14, 2022
1 parent d98a8ef commit 6e5ab9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6e5ab9e

Please sign in to comment.