Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example authentication plugin #824

Closed
simonw opened this issue Jun 9, 2020 · 4 comments
Closed

Example authentication plugin #824

simonw opened this issue Jun 9, 2020 · 4 comments

Comments

@simonw
Copy link
Owner

simonw commented Jun 9, 2020

simonw/datasette-auth-github#62 will work for this.

@simonw
Copy link
Owner Author

simonw commented Jun 11, 2020

I got this working: simonw/datasette-auth-github#64

Just one problem: it uses the existing ds_actor cookie, which means it doesn't actually exercise the actor_from_request plugin!

It does use register_routes though.

@simonw
Copy link
Owner Author

simonw commented Jun 11, 2020

Alternative idea: a plugin that handles Bearer token authentication. Uses metadata.json with secret plugin values to map an incoming token to an actor dictionary, which can then be mapped to permissions.

@simonw
Copy link
Owner Author

simonw commented Jun 11, 2020

datasette-auth-tokens can be the name. I can get a simple initial version of it running pretty quickly.

@simonw
Copy link
Owner Author

simonw commented Jun 12, 2020

@simonw simonw closed this as completed Jun 12, 2020
@simonw simonw unpinned this issue Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant