Skip to content

Commit

Permalink
Merge pull request #1371 from maykinmedia/use-mock-digid-backend-in-dev
Browse files Browse the repository at this point in the history
Fix missing mock DigiD/eHerkenning backends in dev
  • Loading branch information
alextreme authored Aug 26, 2024
2 parents 2cca561 + 9a41ede commit b9e1ac8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/open_inwoner/conf/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@
"oidc": {"BACKEND": "django.core.cache.backends.dummy.DummyCache"},
}

_MOCK_AUTHENTICATION_BACKENDS = {
"digid_eherkenning.backends.DigiDBackend": "digid_eherkenning.mock.backends.DigiDBackend",
"eherkenning.backends.eHerkenningBackend": "eherkenning.mock.backends.eHerkenningBackend",
}

AUTHENTICATION_BACKENDS = [
_MOCK_AUTHENTICATION_BACKENDS.get(backend, backend)
for backend in AUTHENTICATION_BACKENDS
]


#
# Library settings
#
Expand Down

0 comments on commit b9e1ac8

Please sign in to comment.