Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Implement a password protection for uploads #2

Closed
lmeunier opened this issue Jul 2, 2013 · 1 comment
Closed

Implement a password protection for uploads #2

lmeunier opened this issue Jul 2, 2013 · 1 comment

Comments

@lmeunier
Copy link
Owner

lmeunier commented Jul 2, 2013

Is there a way to implement a password protection for uploads, so that only
people which know a password can upload a file?

In the first time, it could be possible to add a list of known passwords (defined in the config file), and deny file upload to users who don't supply a valid password.

Users who have a link the download a file don't need to know a valid password to get the file.

I think that a complete user authentication/authorization mechanism is beyond the scope of flaskup. A custom authentication mechanism could be added in the web server in front of flaskup (like mod_auth* in apache).

lmeunier added a commit that referenced this issue Jul 11, 2013
If FLASKUP_UPLOAD_PASSWORDS is defined (as a list of valid passwords),
Flaskup will ask users to provide a password from this list when he
upload a file. If the password is not known the upload is denied.
If FLASKUP_UPLOAD_PASSWORDS is not defined (or the list is empty),
Flaskup acts as normal: no passwords needed.
@lmeunier
Copy link
Owner Author

lmeunier commented Aug 6, 2013

Fixed in b4edc43

@lmeunier lmeunier closed this as completed Aug 6, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant