From 8d8fdfd1b828d83292e17a98670227834d533f35 Mon Sep 17 00:00:00 2001 From: Jessica Tallon Date: Fri, 5 Dec 2014 17:22:55 +0000 Subject: [PATCH] Partial fix #1048 - Don't require as long nonce --- mediagoblin/oauth/oauth.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mediagoblin/oauth/oauth.py b/mediagoblin/oauth/oauth.py index 7dc5aa5b..100dc8eb 100644 --- a/mediagoblin/oauth/oauth.py +++ b/mediagoblin/oauth/oauth.py @@ -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"] -- 2.25.1