forked from shaba/openuds
added "launcher" for ticketing auth
This commit is contained in:
parent
3b05a06336
commit
3568f43fc8
File diff suppressed because one or more lines are too long
@ -28,6 +28,13 @@ gettext("Download UDS client for your platform");
|
||||
gettext("You can access UDS Open Source code at");
|
||||
gettext("UDS has been developed using these components:");
|
||||
gettext("If you find that we missed any component, please let us know");
|
||||
gettext("UDS Service launcher");
|
||||
gettext("The service you have requested is being launched.");
|
||||
gettext("Please, note that reloading this page will not work.");
|
||||
gettext("To relaunch service, you will have to do it from origin.");
|
||||
gettext("If the service does not launchs automatically, probably you dont have the UDS plugin installed");
|
||||
gettext("You can obtain it from the");
|
||||
gettext("UDS Plugin download page");
|
||||
gettext("Username");
|
||||
gettext("Password");
|
||||
gettext("Authenticator");
|
||||
|
@ -121,6 +121,8 @@ def udsJs(request):
|
||||
'galleryImage': reverse('webapi.galleryImage', kwargs={ 'idImage': 'param1' }),
|
||||
'transportIcon': reverse('webapi.transportIcon', kwargs={'idTrans': 'param1'}),
|
||||
'static': static(''),
|
||||
# Launcher URL if exists
|
||||
'launch': request.session.get('launch', ''),
|
||||
}
|
||||
}
|
||||
|
||||
@ -167,5 +169,8 @@ def udsJs(request):
|
||||
'data': request.session.get('data')
|
||||
}
|
||||
|
||||
# Reset some 1 time values...
|
||||
request.session['launch'] = '';
|
||||
|
||||
return 'var udsData = ' + json.dumps(uds) + ';\n'
|
||||
|
||||
|
@ -218,8 +218,8 @@ def ticketAuth(request, ticketId):
|
||||
else:
|
||||
link = html.udsAccessLink(request, 'A' + userService.uuid, transport.uuid)
|
||||
|
||||
request.session['data'] = link;
|
||||
response = HttpResponseRedirect(reverse('page.index'))
|
||||
request.session['launch'] = link;
|
||||
response = HttpResponseRedirect(reverse('page.ticket.launcher'))
|
||||
else:
|
||||
response = HttpResponsePermanentRedirect(reverse('page.index'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user