Commit b6c31798 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Add idp param when using the site

parent 440c2437
......@@ -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):
......
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