diff options
author | Jessica Tallon <jessica@megworld.co.uk> | 2014-07-08 15:39:24 +0100 |
---|---|---|
committer | Jessica Tallon <jessica@megworld.co.uk> | 2014-07-22 23:13:16 +0100 |
commit | 24e12cb133ac7b87094f8c6ec7efa03464ce4474 (patch) | |
tree | 40919a39ea4f4c3d09a2b2795880d21f07272fe5 /mediagoblin/oauth | |
parent | 6781ff3cb1a26752a0f4bca224813fa374a7f248 (diff) | |
download | mediagoblin-24e12cb133ac7b87094f8c6ec7efa03464ce4474.tar.lz mediagoblin-24e12cb133ac7b87094f8c6ec7efa03464ce4474.tar.xz mediagoblin-24e12cb133ac7b87094f8c6ec7efa03464ce4474.zip |
Fix problem in OAuth views
Diffstat (limited to 'mediagoblin/oauth')
-rw-r--r-- | mediagoblin/oauth/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/oauth/views.py b/mediagoblin/oauth/views.py index f424576b..5ade7a8d 100644 --- a/mediagoblin/oauth/views.py +++ b/mediagoblin/oauth/views.py @@ -252,6 +252,7 @@ def authorize(request): if oauth_request.verifier is None: orequest = GMGRequest(request) + orequest.resource_owner_key = token request_validator = GMGRequestValidator() auth_endpoint = AuthorizationEndpoint(request_validator) verifier = auth_endpoint.create_verifier(orequest, {}) @@ -333,7 +334,7 @@ def access_token(request): error = "Missing required parameter." return json_response({"error": error}, status=400) - + request.resource_owner_key = parsed_tokens["oauth_consumer_key"] request.oauth_token = parsed_tokens["oauth_token"] request_validator = GMGRequestValidator(data) av = AccessTokenEndpoint(request_validator) |