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
RevLine 
[443]1define([
[463]2    "./app/Content",
3    "./app/Page",
4    "./app/Router",
5    "./routes",
[466]6    "./session",
[463]7    "./store",
8    "./store/request",
[468]9    "./ui/LoginDialogWrapper",
[463]10    "./ui/MainMenu",
11    "dojo/_base/array",
12    "dojo/parser",
13    "./stddeps",
14    "dojo/domReady!"
[468]15], function(Content, Page, Router, routes, session, store,
16            request, LoginDialogWrapper, MainMenu, array, parser) {
[463]17
[443]18    parser.parse();
[466]19
20    new MainMenu({},"menu").startup();
21
22    array.forEach(routes,function(route){
23        Router.register(route);
[443]24    });
[468]25    Router.startup();
[466]26
[468]27    session.restore();
28
[443]29});
Note: See TracBrowser for help on using the repository browser.