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
4ce1222e
Commit
4ce1222e
authored
Jun 14, 2017
by
Simon Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix valid signature"
This reverts commit
e58e295c
. This is to fix learner-1464
parent
c21b3c8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
lms/djangoapps/verify_student/models.py
+1
-3
lms/djangoapps/verify_student/views.py
+1
-3
No files found.
lms/djangoapps/verify_student/models.py
View file @
4ce1222e
...
...
@@ -887,10 +887,8 @@ class SoftwareSecurePhotoVerification(PhotoVerification):
"Content-Type"
:
"application/json"
,
"Date"
:
formatdate
(
timeval
=
None
,
localtime
=
False
,
usegmt
=
True
)
}
body_for_signature
=
{
"EdX-ID"
:
str
(
self
.
receipt_id
)}
_message
,
_sig
,
authorization
=
generate_signed_message
(
"POST"
,
headers
,
body
_for_signature
,
access_key
,
secret_key
"POST"
,
headers
,
body
,
access_key
,
secret_key
)
headers
[
'Authorization'
]
=
authorization
...
...
lms/djangoapps/verify_student/views.py
View file @
4ce1222e
...
...
@@ -1104,15 +1104,13 @@ def results_callback(request):
headers
=
{
"Authorization"
:
request
.
META
.
get
(
"HTTP_AUTHORIZATION"
,
""
),
"Content-Type"
:
"application/json"
,
"Date"
:
request
.
META
.
get
(
"HTTP_DATE"
,
""
)
}
body_for_signature
=
{
"EdX-ID"
:
body_dict
.
get
(
"EdX-ID"
)}
has_valid_signature
(
"POST"
,
headers
,
body_
for_signature
,
body_
dict
,
settings
.
VERIFY_STUDENT
[
"SOFTWARE_SECURE"
][
"API_ACCESS_KEY"
],
settings
.
VERIFY_STUDENT
[
"SOFTWARE_SECURE"
][
"API_SECRET_KEY"
]
)
...
...
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