forked from shaba/openuds
Included request on parameters, needed on 3.5
This commit is contained in:
parent
8a2e2deaf1
commit
5fed04d64d
@ -110,10 +110,12 @@ def authCallback_stage2(
|
|||||||
) -> HttpResponse:
|
) -> HttpResponse:
|
||||||
try:
|
try:
|
||||||
ticket = TicketStore.get(ticketId)
|
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']
|
auth_uuid: str = ticket['auth']
|
||||||
authenticator = Authenticator.objects.get(uuid=auth_uuid)
|
authenticator = Authenticator.objects.get(uuid=auth_uuid)
|
||||||
|
|
||||||
|
# Add request data to params
|
||||||
|
params['_request'] = request
|
||||||
user = authenticateViaCallback(authenticator, params)
|
user = authenticateViaCallback(authenticator, params)
|
||||||
|
|
||||||
os = OsDetector.getOsFromUA(request.META['HTTP_USER_AGENT'])
|
os = OsDetector.getOsFromUA(request.META['HTTP_USER_AGENT'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user