Commit 440c2437 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Make the idp hint param variable

parent 6fb2a408
......@@ -8,6 +8,7 @@ from django.core.exceptions import ImproperlyConfigured
from django.http import HttpResponse
from django.shortcuts import redirect
from django.views import View
from django.conf import settings
from oic import rndstr
from oic.oic.message import AuthorizationResponse, MissingRequiredAttribute, MissingRequiredValue
......@@ -22,12 +23,9 @@ from ..models.serializers import AuthInfoSerializer
LOGGER = logging.getLogger(__name__)
IDP_PARAMETER = 'idphint'
def oidc_config_from_param(request):
issuer_uri_urlenc = request.GET.get(IDP_PARAMETER, None)
issuer_uri_urlenc = request.GET.get(settings.HTTP_PARAM_IDPHINT, None)
if issuer_uri_urlenc is None:
return None
......
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