Jul 05, 2014 05:42 AM|francesco abbruzzese|LINK
The best place where to verify user authorizations is the SPA component that Load the Views. In that place you may verify the required View against a set of access rules. Unlikely, in most of the more famous the only available hook is in the router (that
is involved just before the View loader), so you have to hook all routers(if you have several routers) in your applications.
Otherwise, you might implement your custom SPA View engine by using knockout.js. The forecoming release should have all needed module to build a SPA. Our custom SPA framework is knockout.js based and applies customizable "context rule" immediately before
loading a view. The default context rules verifies each View against authorization rules, and possibly load a complaint View or the login view instead of the required View.