diff --git a/src/open_inwoner/conf/ci.py b/src/open_inwoner/conf/ci.py index b1b10cff61..71003f62f9 100644 --- a/src/open_inwoner/conf/ci.py +++ b/src/open_inwoner/conf/ci.py @@ -28,20 +28,21 @@ } ) -# Allow logging in with both username+password and email+password + +_MOCK_AUTHENTICATION_BACKENDS = { + "digid_eherkenning.backends.DigiDBackend": "digid_eherkenning.mock.backends.DigiDBackend", + "eherkenning.backends.eHerkenningBackend": "eherkenning.mock.backends.eHerkenningBackend", +} + AUTHENTICATION_BACKENDS = [ - "open_inwoner.accounts.backends.CustomAxesBackend", - "open_inwoner.accounts.backends.UserModelEmailBackend", - "open_inwoner.accounts.backends.Verify2FATokenBackend", + _MOCK_AUTHENTICATION_BACKENDS.get(backend, backend) + for backend in AUTHENTICATION_BACKENDS +] + [ + # Allow logging in with both username+password and email+password "django.contrib.auth.backends.ModelBackend", - # mock login like dev.py - "digid_eherkenning.mock.backends.DigiDBackend", - "eherkenning.mock.backends.eHerkenningBackend", - "digid_eherkenning_oidc_generics.backends.OIDCAuthenticationDigiDBackend", - "digid_eherkenning_oidc_generics.backends.OIDCAuthenticationEHerkenningBackend", - "open_inwoner.accounts.backends.CustomOIDCBackend", ] + ELASTIC_APM["DEBUG"] = True ELASTICSEARCH_DSL_AUTO_REFRESH = False