www-bocal/bocal_auth/apps.py
Théophile Bastian eed3653d22 Use rhosts file to grant permissions to users.
Whenever a user logs in through CAS, their username is looked up in the
.rhosts file provided through settings. If it is found, the user is
granted staff status and BOcal group (cf fixture).

The rights are re-evaluated at each login and at each access to
/admin/login.

Close #2.
2017-10-14 19:36:13 +02:00

8 lines
146 B
Python

from django.apps import AppConfig
class BocalAuthConfig(AppConfig):
name = 'bocal_auth'
def ready(self):
from . import signals