Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #17 from gkoberger/master

Fine tuning log and error messages looks good r+
  • Loading branch information...
commit 1ab1b4412bb3cc6663299b803862c4293cc73a92 2 parents b71dfd8 + c28e8e7
@ozten ozten authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 django_browserid/auth.py
View
8 django_browserid/auth.py
@@ -134,14 +134,18 @@ def verify(self, assertion, audience):
"""Verify assertion using an external verification service."""
verify_url = getattr(settings, 'BROWSERID_VERIFICATION_URL',
DEFAULT_VERIFICATION_URL)
+
+ log.info("Verification URL: %s" % verify_url)
+
result = self._verify_http_request(verify_url, urllib.urlencode({
'assertion': assertion,
'audience': audience
}))
if result['status'] == OKAY_RESPONSE:
return result
- log.error("BrowserID verification failure. Assertion: %r Audience: %r"
- " Response: %r" % (assertion, audience, result))
+ log.error("BrowserID verification failure. Response: %r"
+ " Audience: %r" % (result, audience))
+ log.error("BID assert: %r" % assertion)
return False
def filter_users_by_email(self, email):
Please sign in to comment.
Something went wrong with that request. Please try again.