Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
1d03f4aa
Commit
1d03f4aa
authored
Sep 18, 2013
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "reformat for readability"
This reverts commit
acd23ad9
.
parent
4ad0d8e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
common/lib/xmodule/xmodule/lti_module.py
+5
-9
No files found.
common/lib/xmodule/xmodule/lti_module.py
View file @
1d03f4aa
...
...
@@ -227,17 +227,13 @@ class LTIModule(LTIFields, XModule):
body
=
body
,
headers
=
headers
)
except
ValueError
:
# scheme not in url
# Stubbing headers for now:
#https://github.com/idan/oauthlib/blob/master/oauthlib/oauth1/rfc5849/signature.py#L136
#Stubbing headers for now:
headers
=
{
u'Content-Type'
:
u'application/x-www-form-urlencoded'
,
u'Authorization'
:
u'oAuth '
# cont..
u'oauth_nonce="80966668944732164491378916897", '
# cont..
u'oauth_timestamp="1378916897", '
# cont..
u'oauth_version="1.0", '
# cont..
u'oauth_signature_method="HMAC-SHA1", '
# cont..
u'oauth_consumer_key="", '
# cont..
u'oauth_signature="frVp4JuvT1mVXlxktiAUjQ7
%2
F1cw
%3
D"'
,
}
u'Authorization'
:
u'OAuth oauth_nonce="80966668944732164491378916897",
\
oauth_timestamp="1378916897", oauth_version="1.0", oauth_signature_method="HMAC-SHA1",
\
oauth_consumer_key="", oauth_signature="frVp4JuvT1mVXlxktiAUjQ7
%2
F1cw
%3
D"'
}
params
=
headers
[
'Authorization'
]
# parse headers to pass to template as part of context:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment