From 95f57ef4bbf1c2f9e63c95dc24ece007e8829ff4 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Wed, 6 Mar 2019 14:43:45 +0100 Subject: [PATCH] misc: rename authentication "frontend" to "authenticator" (#14475) --- src/authentic2_auth_fedict/__init__.py | 4 ++-- .../{auth_frontends.py => authenticators.py} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/authentic2_auth_fedict/{auth_frontends.py => authenticators.py} (98%) diff --git a/src/authentic2_auth_fedict/__init__.py b/src/authentic2_auth_fedict/__init__.py index cb7ba1e..2d48290 100644 --- a/src/authentic2_auth_fedict/__init__.py +++ b/src/authentic2_auth_fedict/__init__.py @@ -42,8 +42,8 @@ class Plugin(object): def get_authentication_backends(self): return ['authentic2_auth_fedict.backends.FedictBackend'] - def get_auth_frontends(self): - return ['authentic2_auth_fedict.auth_frontends.FedictFrontend'] + def get_authenticators(self): + return ['authentic2_auth_fedict.authenticators.FedictAuthenticator'] def redirect_logout_list(self, request, next_url=None): from mellon.views import logout diff --git a/src/authentic2_auth_fedict/auth_frontends.py b/src/authentic2_auth_fedict/authenticators.py similarity index 98% rename from src/authentic2_auth_fedict/auth_frontends.py rename to src/authentic2_auth_fedict/authenticators.py index 6194a1d..a51a5be 100644 --- a/src/authentic2_auth_fedict/auth_frontends.py +++ b/src/authentic2_auth_fedict/authenticators.py @@ -25,7 +25,7 @@ from authentic2.utils import redirect_to_login from . import app_settings -class FedictFrontend(object): +class FedictAuthenticator(object): id = 'fedict' def enabled(self):