0001-misc-rename-authentication-frontend-to-authenticator.patch
src/authentic2_auth_fc/__init__.py | ||
---|---|---|
15 | 15 |
def get_authentication_backends(self): |
16 | 16 |
return ['authentic2_auth_fc.backends.FcBackend'] |
17 | 17 | |
18 |
def get_auth_frontends(self):
|
|
19 |
return ['authentic2_auth_fc.auth_frontends.FcFrontend']
|
|
18 |
def get_authenticators(self):
|
|
19 |
return ['authentic2_auth_fc.authenticators.FcAuthenticator']
|
|
20 | 20 | |
21 | 21 |
def redirect_logout_list(self, request, **kwargs): |
22 | 22 |
from django.core.urlresolvers import reverse |
src/authentic2_auth_fc/auth_frontends.py → src/authentic2_auth_fc/authenticators.py | ||
---|---|---|
7 | 7 |
from . import app_settings |
8 | 8 | |
9 | 9 | |
10 |
class FcFrontend(object):
|
|
10 |
class FcAuthenticator(object):
|
|
11 | 11 |
def enabled(self): |
12 | 12 |
return app_settings.enable |
13 | 13 | |
14 |
- |