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 41: | dccb76f25f3f |
| parent 40: | f1b7357ed7ba |
| branch: | default |
Partly revert previous commit, authorize_access wasn't evaluated as a boolean.
11 months ago
Changed (Δ5 bytes):
raw changeset »
oauth_provider/views.py (1 lines added, 1 lines removed)
Up to file-list oauth_provider/views.py:
| … | … | @@ -87,7 +87,7 @@ def user_authorization(request): |
87 |
87 |
if request.session.get('oauth', '') == token.key: |
88 |
88 |
request.session['oauth'] = '' |
89 |
89 |
try: |
90 |
if |
|
90 |
if int(request.POST.get('authorize_access', 0)): |
|
91 |
91 |
# authorize the token |
92 |
92 |
token = oauth_server.authorize_token(token, request.user) |
93 |
93 |
# return the token key |
