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
6c62612b
Commit
6c62612b
authored
Jan 16, 2020
by
Lukas Burgey
Browse files
Revert "Add idp param when using the site"
Creates a routing loop :) This reverts commit
b6c31798
.
parent
b6c31798
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/auth/v1/views/webpage.py
View file @
6c62612b
...
...
@@ -3,8 +3,6 @@ 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
...
...
@@ -163,10 +161,7 @@ class AuthCallback(View):
# log user in for session authentication
login
(
request
,
user
)
# add idp param, so the users bookmark contain them
param_encoded
=
urlencode
({
settings
.
HTTP_PARAM_IDPHINT
:
oidc_config
.
issuer_uri
})
return
redirect
(
'/?'
+
param_encoded
)
return
redirect
(
'/'
)
class
LogoutView
(
views
.
APIView
):
...
...
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