Skip to content

Commit

Permalink
Merge pull request #9 from Expyron/fix-password-colon
Browse files Browse the repository at this point in the history
Fix colons in password for HTTP Basic Auth
  • Loading branch information
Ritesh Kadmawala committed Aug 6, 2018
2 parents af8f35a + 83eda7c commit 5ddbf62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion falcon_auth/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _extract_credentials(self, req):
challenges=None)

try:
username, password = token.split(':')
username, password = token.split(':', 1)
except ValueError:
raise falcon.HTTPUnauthorized(
title='401 Unauthorized',
Expand Down

0 comments on commit 5ddbf62

Please sign in to comment.