source: Dev/trunk/src/client/qed-client/index.js @ 468

Last change on this file since 468 was 468, checked in by hendrikvanantwerpen, 12 years ago

Improved authentication

  • Authentication cannot be cancelled, removing a lot of weird race conditions.
  • We offer a request provider that has automatic retry in case of authentication failures.
  • Reduced dependency on LoginDialog? by having it act independent based on events. Other modules can just depend on 'session'.
File size: 594 bytes
Line 
1define([
2    "./app/Content",
3    "./app/Page",
4    "./app/Router",
5    "./routes",
6    "./session",
7    "./store",
8    "./store/request",
9    "./ui/LoginDialogWrapper",
10    "./ui/MainMenu",
11    "dojo/_base/array",
12    "dojo/parser",
13    "./stddeps",
14    "dojo/domReady!"
15], function(Content, Page, Router, routes, session, store,
16            request, LoginDialogWrapper, MainMenu, array, parser) {
17
18    parser.parse();
19
20    new MainMenu({},"menu").startup();
21
22    array.forEach(routes,function(route){
23        Router.register(route);
24    });
25    Router.startup();
26
27    session.restore();
28
29});
Note: See TracBrowser for help on using the repository browser.