Skip to content

Commit a617d38

Browse files
committed
revert PDS/MNS secret: comment only
1 parent 6eca0fd commit a617d38

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lambdas/mns_subscription/src/mns_setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ def get_mns_service(mns_env: str = "int"):
1212
boto_config = Config(region_name="eu-west-2")
1313
cache = Cache(directory="/tmp")
1414
logging.info("Creating authenticator...")
15+
# TODO: MNS and PDS need separate secrets
1516
authenticator = AppRestrictedAuth(
16-
service=Service.MNS,
17+
service=Service.PDS,
1718
secret_manager_client=boto3.client("secretsmanager", config=boto_config),
1819
environment=mns_env,
1920
cache=cache,

lambdas/shared/src/common/authentication.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212

1313

1414
class Service(Enum):
15-
# TODO: PDS and MNS need separate secrets
1615
PDS = "pds"
17-
MNS = "pds"
1816
IMMUNIZATION = "imms"
1917

2018

@@ -25,7 +23,7 @@ def __init__(self, service: Service, secret_manager_client, environment, cache:
2523
self.cache_key = f"{service.value}_access_token"
2624

2725
self.expiry = 30
28-
self.secret_name = f"imms/pds/{environment}/jwt-secrets" if service == "pds" else \
26+
self.secret_name = f"imms/pds/{environment}/jwt-secrets" if service == Service.PDS else \
2927
f"imms/immunization/{environment}/jwt-secrets"
3028

3129
self.token_url = f"https://{environment}.api.service.nhs.uk/oauth2/token" \

0 commit comments

Comments
 (0)