Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
id
go-sso
Commits
fb63c3d1
Commit
fb63c3d1
authored
Apr 28, 2020
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some error logging on saml-server
parent
65b137a4
Pipeline
#6651
passed with stages
in 4 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
saml/saml.go
saml/saml.go
+2
-0
No files found.
saml/saml.go
View file @
fb63c3d1
...
...
@@ -180,6 +180,7 @@ func (b *userFileBackend) GetSession(w http.ResponseWriter, r *http.Request, req
// configuration, is also verified at this stage.
username
:=
httpsso
.
Username
(
r
)
if
username
==
""
{
log
.
Printf
(
"error: could not retrieve user from SSO"
)
http
.
Error
(
w
,
"No user found"
,
http
.
StatusInternalServerError
)
return
nil
}
...
...
@@ -191,6 +192,7 @@ func (b *userFileBackend) GetSession(w http.ResponseWriter, r *http.Request, req
user
,
ok
:=
b
.
users
[
username
]
if
!
ok
{
log
.
Printf
(
"error: user %s is authenticated but unknown"
,
username
)
http
.
Error
(
w
,
"User not found"
,
http
.
StatusInternalServerError
)
return
nil
}
...
...
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