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

Discussion about an admin_token #30

Open
gaelL opened this issue Dec 20, 2015 · 1 comment
Open

Discussion about an admin_token #30

gaelL opened this issue Dec 20, 2015 · 1 comment

Comments

@gaelL
Copy link
Collaborator

gaelL commented Dec 20, 2015

Idea is to provide a "admin_token" in the config file.
Request with the admin_token in the header could have more option than an other user.

For example, we could add in the config file, list of method only for admin :
admin_only_urls : ls,delete, ...

@gaelL
Copy link
Collaborator Author

gaelL commented Jan 29, 2016

Random idea :

  • admin token can delete and list all files
  • When a regular user upload a file, give a token in the response header. This token is stored in th db and should be provided by regular user to remove this file.

Other idea of feature is a protected file : You need URL and the token to get the file.

Token could be generated by the server or given by the user at the upload "user password"

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

2 participants