Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
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
OpenEdx
edx-proctoring
Commits
9c48a485
Commit
9c48a485
authored
Aug 08, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use standard edx-platform configuration to specify if we can accept HTTPS callacks
parent
2c0bcc34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
edx_proctoring/api.py
+4
-2
settings.py
+1
-0
No files found.
edx_proctoring/api.py
View file @
9c48a485
...
@@ -355,12 +355,14 @@ def create_exam_attempt(exam_id, user_id, taking_as_proctored=False):
...
@@ -355,12 +355,14 @@ def create_exam_attempt(exam_id, user_id, taking_as_proctored=False):
external_id
=
None
external_id
=
None
if
taking_as_proctored
:
if
taking_as_proctored
:
callback_url
=
'http://{hostname}{path}'
.
format
(
scheme
=
'https'
if
getattr
(
settings
,
'HTTPS'
,
'on'
)
==
'on'
else
'http'
callback_url
=
'{scheme}://{hostname}{path}'
.
format
(
scheme
=
scheme
,
hostname
=
settings
.
SITE_NAME
,
hostname
=
settings
.
SITE_NAME
,
path
=
reverse
(
path
=
reverse
(
'edx_proctoring.anonymous.proctoring_launch_callback.start_exam'
,
'edx_proctoring.anonymous.proctoring_launch_callback.start_exam'
,
args
=
[
attempt_code
]
args
=
[
attempt_code
]
)
)
,
)
)
# get the name of the user, if the service is available
# get the name of the user, if the service is available
...
...
settings.py
View file @
9c48a485
...
@@ -18,6 +18,7 @@ TIME_ZONE = {}
...
@@ -18,6 +18,7 @@ TIME_ZONE = {}
SECRET_KEY
=
'SHHHHHH'
SECRET_KEY
=
'SHHHHHH'
PLATFORM_NAME
=
'Open edX'
PLATFORM_NAME
=
'Open edX'
FEATURES
=
{}
FEATURES
=
{}
HTTPS
=
'off'
DATABASES
=
{
DATABASES
=
{
'default'
:
{
'default'
:
{
...
...
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