Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
feudalBackend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
feudal
feudalBackend
Commits
f0de80c5
Commit
f0de80c5
authored
Mar 05, 2018
by
Lukas Burgey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change some logging
parent
3a0a7525
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
django_backend/backend/auth/v1/views.py
django_backend/backend/auth/v1/views.py
+5
-2
No files found.
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
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