Skip to content

Commit

Permalink
ECIL-440 Refactor ICMS to use govuk-onelogin-django.
Browse files Browse the repository at this point in the history
  • Loading branch information
MattHolmes123 committed Jan 9, 2025
1 parent ed3b2b1 commit b146a5b
Show file tree
Hide file tree
Showing 34 changed files with 152 additions and 945 deletions.
6 changes: 4 additions & 2 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
from dbt_copilot_python.utility import is_copilot
from django.forms import Field
from django_log_formatter_asim import ASIMFormatter
from govuk_onelogin_django import types as one_login_types

from config.env import env
from web.one_login import types as one_login_types
from web.utils.sentry import init_sentry

# Build paths inside the project like this: BASE_DIR / "subdir".
Expand Down Expand Up @@ -62,6 +62,8 @@
"django.contrib.sites",
# STAFF-SSO client app
"authbroker_client",
# GOV.OK One Login Client app
"govuk_onelogin_django",
]

MIDDLEWARE = [
Expand Down Expand Up @@ -464,7 +466,7 @@

# Used to change one login auth level (remove 2FA in non-production)
if env.gov_uk_one_login_authentication_level_override:
GOV_UK_ONE_LOGIN_AUTHENTICATION_LEVEL = env.gov_uk_one_login_authentication_level_override # type: ignore[assignment]
GOV_UK_ONE_LOGIN_AUTHENTICATION_LEVEL = env.gov_uk_one_login_authentication_level_override

# Site URL management
CASEWORKER_SITE_URL = env.caseworker_site_url
Expand Down
1 change: 1 addition & 0 deletions pii-ner-exclude.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5232,3 +5232,4 @@ José João Caminhão Cachaçaria Pêssegó
Jose Joao Caminhao
Cachacaria Pessego
CDS
GOV.OK One Login Client
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ module = [
"endesive.*",
"PIL.*",
"reportlab.*",
# TODO: Remove when ECIL-441 has been done
"govuk_onelogin_django.*"
]
ignore_missing_imports = true

Expand Down
Loading

0 comments on commit b146a5b

Please sign in to comment.