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.

Clone this repository (size: 114.7 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/django-oauth

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 int(request.POST['authorize_access']):
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