Project

General

Profile

Revision ed87b281

IDed87b281abbf36ae424d358cad0685b466cbbeed
Parent d4338a74
Child 046c501b

Added by Vincent QUEMENER over 13 years ago

Limitation de l'authentification au seul code et non plus aux fichiers statiques pour réduire le nombre de requêtes adressées à la BDD.

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@6251 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigiboard/config/middleware.py
57 57
    """
58 58
    app = make_base_app(global_conf, full_stack=full_stack, **app_conf)
59 59

  
60
    app = make_who_with_config(
61
        app, global_conf,
62
        app_conf.get('auth.config', 'who.ini'),
63
        None,
64
        None,
65
        app_conf.get('skip_authentication')
66
    )
67

  
60 68
    # On définit 2 middlewares pour fichiers statiques qui cherchent
61 69
    # les fichiers dans le thème actuellement chargé.
62 70
    # Le premier va les chercher dans le dossier des fichiers spécifiques
......
68 76
    local_static = StaticURLParser(resource_filename(
69 77
        'vigiboard', 'public'))
70 78
    app = Cascade([app_static, common_static, local_static, app])
71

  
72
    app = make_who_with_config(
73
        app, global_conf,
74
        app_conf.get('auth.config', 'who.ini'),
75
        None,
76
        None,
77
        app_conf.get('skip_authentication')
78
    )
79 79
    # On force l'utilisation d'un logger nommé "auth"
80 80
    # pour la compatibilité avec TurboGears.
81 81
    app.logger = getLogger('auth')

Also available in: Unified diff