Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
b6c31798
Commit
b6c31798
authored
Jan 16, 2020
by
Lukas Burgey
Browse files
Add idp param when using the site
parent
440c2437
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/auth/v1/views/webpage.py
View file @
b6c31798
...
...
@@ -3,6 +3,8 @@ import json
import
logging
import
urllib
from
urllib.parse
import
urlencode
from
django.contrib.auth
import
authenticate
,
login
,
logout
from
django.core.exceptions
import
ImproperlyConfigured
from
django.http
import
HttpResponse
...
...
@@ -161,7 +163,10 @@ class AuthCallback(View):
# log user in for session authentication
login
(
request
,
user
)
return
redirect
(
'/'
)
# add idp param, so the users bookmark contain them
param_encoded
=
urlencode
({
settings
.
HTTP_PARAM_IDPHINT
:
oidc_config
.
issuer_uri
})
return
redirect
(
'/?'
+
param_encoded
)
class
LogoutView
(
views
.
APIView
):
...
...
ubedv
@lukasburgey
mentioned in commit
6c62612b
·
Jan 16, 2020
mentioned in commit
6c62612b
mentioned in commit 6c62612b5896772627c06a142ce744e7781aee22
Toggle commit list
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