diff --git a/lti_consumer/lti_1p1/oauth.py b/lti_consumer/lti_1p1/oauth.py index c1a127f23f155d07604ef1a631008f830d9f2a98..4da150efd57bb4ae4af5a3c8bd1918575ec658a7 100644 --- a/lti_consumer/lti_1p1/oauth.py +++ b/lti_consumer/lti_1p1/oauth.py @@ -147,7 +147,7 @@ def log_authorization_header(request, client_key, client_secret): oauth_body_hash = str(base64.b64encode(sha1.digest())) log.debug("[LTI] oauth_body_hash = %s", oauth_body_hash) client = oauth1.Client(client_key, client_secret) - params = client.get_oauth_params(request) + params = oauth1.rfc5849.signature.collect_parameters(headers=request.headers, exclude_oauth_signature=False) params.append(('oauth_body_hash', oauth_body_hash)) mock_request = SignedRequest( uri=str(urllib.parse.unquote(request.url)),