-
-
Notifications
You must be signed in to change notification settings - Fork 772
Closed
Milestone
Description
API authentication will be via Authorization: Bearer XXX
request headers.
I'm inclined to add a default token mechanism to Datasette based on tokens that are signed with the DATASETTE_SECRET
. Maybe the root user can access /-/create-token
which provides a UI for generating a time-limited signed token? Could also have a datasette token
command for creating such tokens at the command-line.
Plugins can then define alternative ways of creating tokens, such as the existing https://datasette.io/plugins/datasette-auth-tokens plugin.
Originally posted by @simonw in #1850 (comment)