projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b7e6bb
)
Partial fix #1048 - Don't require as long nonce
author
Jessica Tallon
<jessica@megworld.co.uk>
Fri, 5 Dec 2014 17:22:55 +0000
(17:22 +0000)
committer
Jessica Tallon
<jessica@megworld.co.uk>
Fri, 5 Dec 2014 17:22:55 +0000
(17:22 +0000)
mediagoblin/oauth/oauth.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/oauth/oauth.py
b/mediagoblin/oauth/oauth.py
index 7dc5aa5b9803acc101e784e07de11b3257b7757e..100dc8eb642c7ab69dd720de48883b4cac1bcd80 100644
(file)
--- 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"]