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
d702082d
Commit
d702082d
authored
Aug 31, 2012
by
Carlos Andrés Rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[34078525] Add test settings for openid
parent
27fe80d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
common/djangoapps/external_auth/views.py
+2
-1
lms/envs/dev.py
+1
-1
lms/envs/test.py
+5
-0
No files found.
common/djangoapps/external_auth/views.py
View file @
d702082d
...
...
@@ -244,7 +244,8 @@ def ssl_login(request):
# try the direct apache2 SSL key
cert
=
request
.
_req
.
subprocess_env
.
get
(
certkey
,
''
)
except
Exception
:
pass
cert
=
None
if
not
cert
:
# no certificate information - go onward to main index
return
student_views
.
index
(
request
)
...
...
lms/envs/dev.py
View file @
d702082d
...
...
@@ -116,7 +116,7 @@ OPENID_UPDATE_DETAILS_FROM_SREG = True
OPENID_SSO_SERVER_URL
=
'https://www.google.com/accounts/o8/id'
# TODO: accept more endpoints
OPENID_USE_AS_ADMIN_LOGIN
=
False
OPENID_PROVIDER_TRUSTED_ROOTS
=
[
'*'
]
OPENID_PROVIDER_TRUSTED_ROOTS
=
[
'*'
]
################################ MIT Certificates SSL Auth #################################
MITX_FEATURES
[
'AUTH_USE_MIT_CERTIFICATES'
]
=
True
...
...
lms/envs/test.py
View file @
d702082d
...
...
@@ -123,6 +123,11 @@ CACHES = {
# Dummy secret key for dev
SECRET_KEY
=
'85920908f28904ed733fe576320db18cabd7b6cd'
################################## OPENID ######################################
MITX_FEATURES
[
'AUTH_USE_OPENID'
]
=
True
MITX_FEATURES
[
'AUTH_USE_OPENID_PROVIDER'
]
=
True
OPENID_PROVIDER_TRUSTED_ROOTS
=
[
'*'
]
############################ FILE UPLOADS (ASKBOT) #############################
DEFAULT_FILE_STORAGE
=
'django.core.files.storage.FileSystemStorage'
MEDIA_ROOT
=
TEST_ROOT
/
"uploads"
...
...
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