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 48: | 97ce3e2f9430 |
| parent 47: | aa3ed686b9d4 |
| branch: | default |
Allow settings to override default lengths.
Changed (Δ234 bytes):
raw changeset »
oauth_provider/consts.py (5 lines added, 4 lines removed)
Up to file-list oauth_provider/consts.py:
1 |
1 |
from django.utils.translation import ugettext_lazy as _ |
2 |
from django.conf import settings |
|
2 |
3 |
|
3 |
KEY_SIZE = 16 |
|
4 |
SECRET_SIZE = 16 |
|
5 |
VERIFIER_SIZE = 10 |
|
6 |
CONSUMER_KEY_SIZE = 256 |
|
4 |
KEY_SIZE = getattr(settings, 'OAUTH_PROVIDER_KEY_SIZE', 16) |
|
5 |
SECRET_SIZE = getattr(settings, 'OAUTH_PROVIDER_SECRET_SIZE', 16) |
|
6 |
VERIFIER_SIZE = getattr(settings, 'OAUTH_PROVIDER_VERIFIER_SIZE', 10) |
|
7 |
CONSUMER_KEY_SIZE = getattr(settings, 'OAUTH_PROVIDER_CONSUMER_KEY_SIZE', 256) |
|
7 |
8 |
MAX_URL_LENGTH = 2083 # http://www.boutell.com/newfaq/misc/urllength.html |
8 |
9 |
|
9 |
10 |
PENDING = 1 |
