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

Fix file submission with secret key authentication #140

Open
jasinner opened this issue Oct 2, 2015 · 1 comment
Open

Fix file submission with secret key authentication #140

jasinner opened this issue Oct 2, 2015 · 1 comment

Comments

@jasinner
Copy link
Member

jasinner commented Oct 2, 2015

While testing file submission locally I found that a DEBUG message appears and auth fails:

DEBUG: 'file' object has no attribute 'get value'

The relevant bit of code is here:

--- a/src/victims_web/handlers/security.py
+++ b/src/victims_web/handlers/security.py
@@ -146,7 +146,7 @@ def validate_signature():

     if len(request.files) > 0:
         for f in request.files.values():
  •            md5sums.append(md5(f.stream.getvalue()).hexdigest())
    
     expected = generate_signature(
         apikey, request.method, path,
    

@jasinner
Copy link
Member Author

jasinner commented Oct 2, 2015

Submitting the file with basic auth works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant