From: Jessica Tallon Date: Fri, 5 Dec 2014 17:22:55 +0000 (+0000) Subject: Partial fix #1048 - Don't require as long nonce X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8d8fdfd1b828d83292e17a98670227834d533f35;p=mediagoblin.git Partial fix #1048 - Don't require as long nonce --- 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"]