Implementing enhcanced security
Posted: Sun Oct 31, 2010 6:36 am
Just upgraded a solution to 5.2.2 and trying to implement enhanced security folllowing instructions in wiki.
Am splitting my logic out into 2 new modules as required: mod_login and mod_authenticator
Moved the initial login form into new solution type login (mod_login) and set this is the loginSolutionName for main solution. When solution starts this login form gets displayed as expected.
...but....
I need to to load a ValueList for the drop-down in this form. Following the model in wiki doc I added the following code to the onShow event of the form in mod_login;
var vtenants = security.authenticate('mod_authenticator','getTenants');
application.setValueListItems('Tenants',vtenants)
at the very least this should go off to the authenticator module (mod_authenticator) and try to run the getTenants function....problem is it doesnt
When I run the solution with debug breakpoints the var vtenants gets executed - but when I F5 to step into it *never* goes off to the authenticator module - so whether my code in that module is correct is irrelevant......it just doesn't go there.
So what have I got wrong. I think it must be really simple but cant spot it. What makes the login module jump to the authenticator module?
Al.
Am splitting my logic out into 2 new modules as required: mod_login and mod_authenticator
Moved the initial login form into new solution type login (mod_login) and set this is the loginSolutionName for main solution. When solution starts this login form gets displayed as expected.
...but....
I need to to load a ValueList for the drop-down in this form. Following the model in wiki doc I added the following code to the onShow event of the form in mod_login;
var vtenants = security.authenticate('mod_authenticator','getTenants');
application.setValueListItems('Tenants',vtenants)
at the very least this should go off to the authenticator module (mod_authenticator) and try to run the getTenants function....problem is it doesnt
When I run the solution with debug breakpoints the var vtenants gets executed - but when I F5 to step into it *never* goes off to the authenticator module - so whether my code in that module is correct is irrelevant......it just doesn't go there.
So what have I got wrong. I think it must be really simple but cant spot it. What makes the login module jump to the authenticator module?
Al.