david / django-oauth (http://oauth.net/)
Support of OAuth in Django. Note that http://code.welldev.org/django-oauth-plus will use python-oauth2 if you're interested in it.
| commit 36: | e2acef365281 |
| parent 35: | c7686a691925 |
| branch: | default |
Allows consumer key & secret to be zero length (null=True, blank=True) - this is fine according to the OAuth spec, see
http://groups.google.com/group/oauth/browse_thread/thread/15c5efb10d0a3813 for details, thanks Toby White
11 months ago
Changed (Δ46 bytes):
raw changeset »
oauth_provider/models.py (2 lines added, 2 lines removed)
Up to file-list oauth_provider/models.py:
| … | … | @@ -65,8 +65,8 @@ class Token(models.Model): |
65 |
65 |
ACCESS = 2 |
66 |
66 |
TOKEN_TYPES = ((REQUEST, u'Request'), (ACCESS, u'Access')) |
67 |
67 |
|
68 |
key = models.CharField(max_length=KEY_SIZE) |
|
69 |
secret = models.CharField(max_length=SECRET_SIZE) |
|
68 |
key = models.CharField(max_length=KEY_SIZE, null=True, blank=True) |
|
69 |
secret = models.CharField(max_length=SECRET_SIZE, null=True, blank=True) |
|
70 |
70 |
token_type = models.SmallIntegerField(choices=TOKEN_TYPES) |
71 |
71 |
timestamp = models.IntegerField(default=long(time())) |
72 |
72 |
is_approved = models.BooleanField(default=False) |
