Commits

Andy Mroczkowski committed 351a6be

debugging stuff

  • Participants
  • Parent commits 6b94949
  • Branches test2

Comments (0)

Files changed (1)

File oauth_provider/utils.py

     """ Helper function to verify requests. """
     from store import store
 
+    print "Z1"
+
     # Check nonce
     if not store.check_nonce(request, oauth_request, oauth_request['oauth_nonce']):
         return False
+    
+    print "Z2"
 
     # Verify request
     try:
+        print "Z3"
         oauth_server = oauth.Server()
         oauth_server.add_signature_method(oauth.SignatureMethod_HMAC_SHA1())
         oauth_server.add_signature_method(oauth.SignatureMethod_PLAINTEXT())
         if token is not None:
             token = oauth.Token(token.key.encode('ascii', 'ignore'), token.secret.encode('ascii', 'ignore'))
 
+        print "Z4"
         oauth_server.verify_request(oauth_request, consumer, token)
     except oauth.Error, err:
         return False