Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
f0de80c5
Commit
f0de80c5
authored
Mar 05, 2018
by
Lukas Burgey
Browse files
Change some logging
parent
3a0a7525
Changes
1
Hide whitespace changes
Inline
Side-by-side
django_backend/backend/auth/v1/views.py
View file @
f0de80c5
...
...
@@ -23,6 +23,7 @@ def idp_id_from_request(request):
if
idp_id
is
not
None
:
return
idp_id
LOGGER
.
info
(
'idp_id cookie was not set on request %s'
,
request
)
return
default_idp
().
id
...
...
@@ -118,8 +119,10 @@ class AuthCallback(View):
else
:
# user authenticated -> back to frontend
login
(
request
,
user
)
LOGGER
.
debug
(
'AuthCallback: IdP %s authenticated user as %s'
,
oidc_config
,
user
)
response
.
set_cookie
(
'sessionid'
,
request
.
COOKIES
[
'sessionid'
])
LOGGER
.
info
(
'AuthCallback: IdP %s authenticated user as %s'
,
oidc_config
,
user
)
# TODO is this needed?
# response.set_cookie('sessionid', request.COOKIES['sessionid'])
return
response
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment