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 40: | f1b7357ed7ba |
| parent 39: | 444b2446c572 |
| branch: | default |
More robust authorize access test. Thanks Toby White.
11 months ago
Changed (Δ12 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 bool(request.POST.get('authorize_access', False)): |
|
91 |
91 |
# authorize the token |
92 |
92 |
token = oauth_server.authorize_token(token, request.user) |
93 |
93 |
# return the token key |
