ahmetb / permalinker

Right click → Save to cloud → Permalink on your clipboard
https://chrome.google.com/webstore/detail/gbojiplhnhbhfhhkjacacijiglpmcpbh
Apache License 2.0
10 stars 2 forks source link

Add basic http auth #2

Closed nstanke closed 10 years ago

nstanke commented 10 years ago

Hi

Implemented basic authentication for /api/1/upload

Envenvironment variables: PERM_USER PERM_PASS

Example: http://username:password.{{your-hostname}}.com/api/1

I'm not a Python-guy, sorry if my code is a bit messed. :) - Not tested with valid AWS/Azure credentials.

-Norman

ahmetb commented 10 years ago

Great, you nailed it. I will test locally once I'm back at home and will merge. Thanks.