auth_fc: disable authenticator if improperly configured (#43653)

This commit is contained in:
Paul Marillonnet 2020-06-05 10:48:40 +02:00
parent 7d50310de5
commit 4c9b1fc932
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ class FcAuthenticator(BaseAuthenticator):
id = 'fc'
def enabled(self):
return app_settings.enable
return (app_settings.enable and
app_settings.client_id and
app_settings.client_secret)
def name(self):
return gettext_noop('FranceConnect')