AnsweredAssumed Answered

Web App Start-up with Validation and Bailout if Need Be

Question asked by david.plume on May 8, 2015
Latest reply on Aug 10, 2015 by AVTSPositioning

Hi - I'd like to locate logic in my application start-up to call a service and authenticate a user on that service.  If the user is OK then finish app start up.  If not OK then show message, stop loading and cleanup.  Where should this login be located?  More robustly, you could have code to dialog with the user until the user gives the correct credentials or chooses cancel.  


In Firebug I can see lots of potential locations - seems like index.html,  function loadingCallback() would be the best location but I'm open to other suggestions.


Importantly - on bailout what would be the best way to dispose of all of the WAB objects and leave the user in a sensible space?