Commit 6c62612b authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Revert "Add idp param when using the site"

Creates a routing loop :)

This reverts commit b6c31798.
parent b6c31798
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment