Partial fix #1048 - Don't require as long nonce
authorJessica Tallon <jessica@megworld.co.uk>
Fri, 5 Dec 2014 17:22:55 +0000 (17:22 +0000)
committerJessica Tallon <jessica@megworld.co.uk>
Fri, 5 Dec 2014 17:22:55 +0000 (17:22 +0000)
mediagoblin/oauth/oauth.py

index 7dc5aa5b9803acc101e784e07de11b3257b7757e..100dc8eb642c7ab69dd720de48883b4cac1bcd80 100644 (file)
@@ -28,6 +28,10 @@ class GMGRequestValidator(RequestValidator):
         self.POST = data
         super(GMGRequestValidator, self).__init__(*args, **kwargs)
 
+    @property
+    def nonce_length(self):
+        return 5, 30
+
     def save_request_token(self, token, request):
         """ Saves request token in db """
         client_id = self.POST[u"oauth_consumer_key"]