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
767feb93
Commit
767feb93
authored
Mar 21, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2948 from carsongee/cg/cas_attribute_callback
Adding ability to give an attribute callback for CAS
parents
c086cbc3
ccbb909b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
cms/envs/aws.py
+8
-0
lms/envs/aws.py
+8
-0
No files found.
cms/envs/aws.py
View file @
767feb93
...
...
@@ -191,6 +191,14 @@ if FEATURES.get('AUTH_USE_CAS'):
)
INSTALLED_APPS
+=
(
'django_cas'
,)
MIDDLEWARE_CLASSES
+=
(
'django_cas.middleware.CASMiddleware'
,)
CAS_ATTRIBUTE_CALLBACK
=
ENV_TOKENS
.
get
(
'CAS_ATTRIBUTE_CALLBACK'
,
None
)
if
CAS_ATTRIBUTE_CALLBACK
:
import
importlib
CAS_USER_DETAILS_RESOLVER
=
getattr
(
importlib
.
import_module
(
CAS_ATTRIBUTE_CALLBACK
[
'module'
]),
CAS_ATTRIBUTE_CALLBACK
[
'function'
]
)
################ SECURE AUTH ITEMS ###############################
# Secret things: passwords, access keys, etc.
...
...
lms/envs/aws.py
View file @
767feb93
...
...
@@ -268,6 +268,14 @@ if FEATURES.get('AUTH_USE_CAS'):
)
INSTALLED_APPS
+=
(
'django_cas'
,)
MIDDLEWARE_CLASSES
+=
(
'django_cas.middleware.CASMiddleware'
,)
CAS_ATTRIBUTE_CALLBACK
=
ENV_TOKENS
.
get
(
'CAS_ATTRIBUTE_CALLBACK'
,
None
)
if
CAS_ATTRIBUTE_CALLBACK
:
import
importlib
CAS_USER_DETAILS_RESOLVER
=
getattr
(
importlib
.
import_module
(
CAS_ATTRIBUTE_CALLBACK
[
'module'
]),
CAS_ATTRIBUTE_CALLBACK
[
'function'
]
)
HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS
=
ENV_TOKENS
.
get
(
'HOSTNAME_MODULESTORE_DEFAULT_MAPPINGS'
,{})
...
...
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