Commit c486eadd by Adam Palay

add more lti logging around oauth (TNL-2980)

parent 1de9fc64
...@@ -626,6 +626,11 @@ class LTIModule(LTIFields, LTI20ModuleMixin, XModule): ...@@ -626,6 +626,11 @@ class LTIModule(LTIFields, LTI20ModuleMixin, XModule):
except ValueError: # Scheme not in url. except ValueError: # Scheme not in url.
# https://github.com/idan/oauthlib/blob/master/oauthlib/oauth1/rfc5849/signature.py#L136 # https://github.com/idan/oauthlib/blob/master/oauthlib/oauth1/rfc5849/signature.py#L136
# Stubbing headers for now: # Stubbing headers for now:
log.info(
u"LTI module %s in course %s does not have oauth parameters correctly configured.",
self.location,
self.location.course_key,
)
headers = { headers = {
u'Content-Type': u'application/x-www-form-urlencoded', u'Content-Type': u'application/x-www-form-urlencoded',
u'Authorization': u'OAuth oauth_nonce="80966668944732164491378916897", \ u'Authorization': u'OAuth oauth_nonce="80966668944732164491378916897", \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment