diff --git a/dropbox/oauth.py b/dropbox/oauth.py index c51f870d..a5ea5557 100644 --- a/dropbox/oauth.py +++ b/dropbox/oauth.py @@ -266,15 +266,15 @@ def get_dropbox_auth_flow(web_app_session): "dropbox-auth-csrf-token") # URL handler for /dropbox-auth-start - def dropbox_auth_start(web_app_session, request): - authorize_url = get_dropbox_auth_flow(web_app_session).start() + def dropbox_auth_start(web_app_session): + authorize_url = get_dropbox_auth_flow(web_app_session.session).start() redirect_to(authorize_url) # URL handler for /dropbox-auth-finish - def dropbox_auth_finish(web_app_session, request): + def dropbox_auth_finish(web_app_session): try: oauth_result = \\ - get_dropbox_auth_flow(web_app_session).finish( + get_dropbox_auth_flow(web_app_session.session).finish( request.query_params) except BadRequestException, e: http_status(400)