Skip to content

Commit

Permalink
REMOVING BASIC AUTH USER
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-pettinga committed Nov 21, 2024
1 parent 5ba4c64 commit bc6d8c0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Binary file modified fitness/fitness_metrics.db
Binary file not shown.
1 change: 0 additions & 1 deletion trade_remedies_caseworker/config/cf_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class CloudFoundrySettings(BaseSettings):
ALLOWED_HOSTS: str = ""
ORGANISATION_NAME: str = "Organisation name placeholder"
ORGANISATION_INITIALISM: str = "Organisation initialism placeholder"
BASIC_AUTH_USER: Optional[str] = None
RESTRICT_IPS: bool = False
VCAP_SERVICES: Optional[VCAPServices] = {}
REDIS_DATABASE_NUMBER: int = 1
Expand Down
8 changes: 0 additions & 8 deletions trade_remedies_caseworker/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@
"config.middleware.SentryContextMiddleware",
]

# Add basic authentication if configured
basic_auth_user = env.BASIC_AUTH_USER
if basic_auth_user:
MIDDLEWARE.insert(0, "basicauth.middleware.BasicAuthMiddleware")

if env.RESTRICT_IPS:
MIDDLEWARE.insert(0, "ip_restriction.IpWhitelister")

Expand Down Expand Up @@ -260,9 +255,6 @@
"EU": "EU Customs Union",
}

if basic_auth_user:
BASICAUTH_USERS = json.loads(basic_auth_user)

SHOW_ENV_BANNER = env.SHOW_ENV_BANNER
ENV_NAME = env.ENV_NAME

Expand Down

0 comments on commit bc6d8c0

Please sign in to comment.