not sure if the onOpen method will be fired if a session already exists in another tabpanel.
But it will look more or less the same as I showed you in the other method.
I wouldn’t do this anyway, the username and password would travel in clear from the browser to the server, they could be logged by proxies, routers and sniffed by virtually anyone.
ngervasi:
I wouldn’t do this anyway, the username and password would travel in clear from the browser to the server, they could be logged by proxies, routers and sniffed by virtually anyone.
Harjo:
indeed!, use https, or use for example not a password, but an generated UUID-token…
If you use UUID for your user records, you can pass this UUID for example.
I used a UUID myself in a kind of blog-system.
Login to the solution was only validated by the existance of the UUID of a certain blog-item
This case the UUID is different for each deeplink to the solution. (as long as your pointing to different blogrecords…)
ngervasi:
I wouldn’t do this anyway, the username and password would travel in clear from the browser to the server, they could be logged by proxies, routers and sniffed by virtually anyone.
Harjo:
indeed!, use https, or use for example not a password, but an generated UUID-token…
If you use UUID for your user records, you can pass this UUID for example.
I used a UUID myself in a kind of blog-system.
Login to the solution was only validated by the existance of the UUID of a certain blog-item
This case the UUID is different for each deeplink to the solution. (as long as your pointing to different blogrecords…)
Yes, we are using UUID for the username. The password is from the URL is encrypted. I just sited an example.
Can I ask a simple question about this deeplinking with advanced security:
if i link to http://{url}/ss/s/mysolution/a/myargument
and i have a login solution call my solution_login, which is a module of my solution with advanced security.
then will the onOpen method of the login solution return
application.output(arguments[0]) as ‘myargument’ ??
In order to restore a webclient deeplink, I am finding it hard to get to first base, which appears to be the need to have my argument passed into the Login modules onOpen. It wont go to the solution onOpen as this is only triggered after login!
Simple guidance for anyone else trying this in Servoy 6.
You must not use a method simply a single argument (but can split it with a eliminator: http://www.yoursite.com/servoy-webclien … -argument2 (I use -!- as a deliminator as no one would be stupid enough to put that in a normal sentance!)
This argument is received by the Login module in your advanced security solution in the onOpen method
function CxLogin_onSolutionOpen(arguments) {
if (arguments){
var args=arguments.split('-!-')
globals.login_username=args[0]
globals.login_password=args[1]
//This runs a login from deeplink - used to process corex local cases
application.output(globals.login_username+ ' '+globals.login_password)
forms.login.bypasslogin();
}
}
I have used a method on my login form to bypass the normal login script as I was using this from another solution and didn’t want to see a visual output. If you wanted to login then there would be nom harm in actually triggering your normal login method as you have pre-populated in this case the username and password.
Following that the onOpen method of your main solution will then be triggered as normal.