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
270ab7f9
Commit
270ab7f9
authored
Nov 19, 2015
by
Kevin Falcone
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10685 from edx/jibsheet/saml-pull
Management commands should no longer access args[]
parents
3c1109fb
57a4df73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
common/djangoapps/third_party_auth/management/commands/saml.py
+4
-6
No files found.
common/djangoapps/third_party_auth/management/commands/saml.py
View file @
270ab7f9
...
...
@@ -12,16 +12,14 @@ class Command(BaseCommand):
""" manage.py commands to manage SAML/Shibboleth SSO """
help
=
'''Configure/maintain/update SAML-based SSO'''
def
handle
(
self
,
*
args
,
**
options
):
if
len
(
args
)
!=
1
:
raise
CommandError
(
"saml requires one argument: pull"
)
def
add_arguments
(
self
,
parser
):
parser
.
add_argument
(
'--pull'
,
action
=
'store_true'
,
help
=
"Pull updated metadata from external IDPs"
)
def
handle
(
self
,
*
args
,
**
options
):
if
not
SAMLConfiguration
.
is_enabled
():
raise
CommandError
(
"SAML support is disabled via SAMLConfiguration."
)
subcommand
=
args
[
0
]
if
subcommand
==
"pull"
:
if
options
[
'pull'
]:
log_handler
=
logging
.
StreamHandler
(
self
.
stdout
)
log_handler
.
setLevel
(
logging
.
DEBUG
)
log
=
logging
.
getLogger
(
'third_party_auth.tasks'
)
...
...
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