diff options
author | Jessica Tallon <jessica@megworld.co.uk> | 2014-12-05 17:22:55 +0000 |
---|---|---|
committer | Jessica Tallon <jessica@megworld.co.uk> | 2014-12-05 17:22:55 +0000 |
commit | 8d8fdfd1b828d83292e17a98670227834d533f35 (patch) | |
tree | 6ee73a2cd13a91a203a31c1b1b4d683d1ef07e4d /mediagoblin | |
parent | 5b7e6bb8c2eaec93c9343ca3dd1acb6b2991a9f9 (diff) | |
download | mediagoblin-8d8fdfd1b828d83292e17a98670227834d533f35.tar.lz mediagoblin-8d8fdfd1b828d83292e17a98670227834d533f35.tar.xz mediagoblin-8d8fdfd1b828d83292e17a98670227834d533f35.zip |
Partial fix #1048 - Don't require as long nonce
Diffstat (limited to 'mediagoblin')
-rw-r--r-- | mediagoblin/oauth/oauth.py | 4 |
1 files changed, 4 insertions, 0 deletions
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"] |