Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ssoauth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
django
ssoauth
Commits
3388c4dc
Commit
3388c4dc
authored
7 years ago
by
Art
Browse files
Options
Downloads
Patches
Plain Diff
Change the logging a bit.
parent
c3d416d1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ssoauth/apps.py
+0
-2
0 additions, 2 deletions
ssoauth/apps.py
ssoauth/sso_utils.py
+2
-1
2 additions, 1 deletion
ssoauth/sso_utils.py
with
2 additions
and
3 deletions
ssoauth/apps.py
+
0
−
2
View file @
3388c4dc
...
@@ -21,8 +21,6 @@ class SSOAuthConfig(AppConfig):
...
@@ -21,8 +21,6 @@ class SSOAuthConfig(AppConfig):
logger
.
error
(
"
SSO will not work. {ec}: {e}
"
.
format
(
ec
=
e
.
__class__
.
__name__
,
e
=
str
(
e
),))
logger
.
error
(
"
SSO will not work. {ec}: {e}
"
.
format
(
ec
=
e
.
__class__
.
__name__
,
e
=
str
(
e
),))
# default groups
# default groups
post_migrate
.
connect
(
self
.
post_migrate_callback
,
sender
=
self
)
post_migrate
.
connect
(
self
.
post_migrate_callback
,
sender
=
self
)
# ...
logger
.
warning
(
"
Need to ensure user.has_usable_password is False
"
)
@staticmethod
@staticmethod
def
post_migrate_callback
(
*
args
,
**
kwargs
):
def
post_migrate_callback
(
*
args
,
**
kwargs
):
...
...
This diff is collapsed.
Click to expand it.
ssoauth/sso_utils.py
+
2
−
1
View file @
3388c4dc
...
@@ -11,9 +11,10 @@ def get_idp_runtime_info(meta_url):
...
@@ -11,9 +11,10 @@ def get_idp_runtime_info(meta_url):
"""
Grab data directly from the running IDP instance
"""
"""
Grab data directly from the running IDP instance
"""
# fetch the meta
# fetch the meta
try
:
try
:
logger
.
info
(
"
Fetching IDP meta: {0}
"
.
format
(
meta_url
))
io
=
urllib
.
request
.
urlopen
(
meta_url
,
timeout
=
10
)
io
=
urllib
.
request
.
urlopen
(
meta_url
,
timeout
=
10
)
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
error
(
"
Could not download IDP meta
.
"
)
logger
.
error
(
"
Could not download IDP meta
: {0}
"
.
format
(
meta_url
)
)
raise
e
raise
e
# parse the xml
# parse the xml
try
:
try
:
...
...
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