Project

General

Profile

Revision b017726f

IDb017726f8921ba33f4b658fe9d57553406dcad27
Parent 2e753457
Child b94b9723

Added by Francois POIROTTE almost 14 years ago

Ajout des dépendances sur les différents plugins de repoze.who/what dans le setup.py de vigilo.turbogears.
Correction d'une typo dans les fichiers who.ini & ajout d'un nom pour le cookie d'authentification (authtkt),
afin de coller au nom attendu par TurboGears dans les tests unitaires.
Mise à jour des applications (config du middleware d'auth) pour utiliser repoze.who.testutil à la place de repoze.who directement,
ce qui permet de court-circuiter partiellement l'authentification dans les tests unitaires (comportement par défaut de TG2).

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

View differences:

deployment/who.ini
1 1
[plugin:auth_tkt]
2 2
use = repoze.who.plugins.auth_tkt:make_plugin
3
secret = 'vigilo'
3
secret = vigilo
4
cookie_name = authtkt
4 5

  
5 6
[plugin:basicauth]
6 7
use = repoze.who.plugins.basicauth:make_plugin
vigiboard/config/middleware.py
8 8
from pkg_resources import resource_filename
9 9
from paste.cascade import Cascade
10 10
from paste.urlparser import StaticURLParser
11
from repoze.who.config import make_middleware_with_config \
12
                            as make_who_with_config
11
from repoze.who.plugins.testutil import make_middleware_with_config \
12
                                    as make_who_with_config
13 13

  
14 14
__all__ = ['make_app']
15 15

  
......
55 55
        app_conf.get('auth.config', 'who.ini'),
56 56
        app_conf.get('auth.log_file', 'stdout'),
57 57
        app_conf.get('auth.log_level', 'debug'),
58
        app_conf.get('skip_authentication')
58 59
    )
59 60
    return app
who.ini
1 1
[plugin:auth_tkt]
2 2
use = repoze.who.plugins.auth_tkt:make_plugin
3
secret = 'vigilo'
3
secret = vigilo
4
cookie_name = authtkt
4 5

  
5 6
[plugin:basicauth]
6 7
use = repoze.who.plugins.basicauth:make_plugin

Also available in: Unified diff