Included request on parameters, needed on 3.5

This commit is contained in:
Adolfo Gómez García 2022-03-24 14:21:20 +01:00
parent 8a2e2deaf1
commit 5fed04d64d

View File

@ -110,10 +110,12 @@ def authCallback_stage2(
) -> HttpResponse:
try:
ticket = TicketStore.get(ticketId)
params: typing.Dict[str, typing.Any] = ticket['params']
params: typing.Dict[str, typing.Any] = ticket['params'].copy()
auth_uuid: str = ticket['auth']
authenticator = Authenticator.objects.get(uuid=auth_uuid)
# Add request data to params
params['_request'] = request
user = authenticateViaCallback(authenticator, params)
os = OsDetector.getOsFromUA(request.META['HTTP_USER_AGENT'])