Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
270ab7f9
Commit
270ab7f9
authored
9 years ago
by
Kevin Falcone
Browse files
Options
Downloads
Plain Diff
Merge pull request #10685 from edx/jibsheet/saml-pull
Management commands should no longer access args[]
parents
3c1109fb
57a4df73
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/djangoapps/third_party_auth/management/commands/saml.py
+4
-6
4 additions, 6 deletions
...n/djangoapps/third_party_auth/management/commands/saml.py
with
4 additions
and
6 deletions
common/djangoapps/third_party_auth/management/commands/saml.py
+
4
−
6
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
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment