Skip to content

Commit a0019e8

Browse files
committed
fix: use ALL3_ANY in preprod and prod
1 parent d98cb9d commit a0019e8

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

application/CohortManager/src/Web/app/lib/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const NHS_CIS2: OAuthConfig<Profile> = {
1515
clientSecret: process.env.AUTH_CIS2_CLIENT_SECRET,
1616
authorization: {
1717
params: {
18-
acr_values: "AAL2_OR_AAL3_ANY",
18+
acr_values: process.env.AUTH_CIS2_ACR_VALUES || "AAL2_OR_AAL3_ANY",
1919
scope: "openid profile nationalrbacaccess",
2020
response_type: "code",
2121
max_age: 240, // 4 minutes [Required by CIS2]

infrastructure/tf-core/environments/preprod.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,7 @@ linux_web_app = {
12041204
AUTH_TRUST_HOST = "true"
12051205
NEXTAUTH_URL = "https://cohort-pre.screening.nhs.uk/api/auth"
12061206
SERVICE_NAME = "Cohort Manager"
1207+
AUTH_CIS2_ACR_VALUES = "AAL3_ANY"
12071208
}
12081209
from_key_vault = {
12091210
# env_var_name = "key_vault_secret_name"

infrastructure/tf-core/environments/production.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,7 @@ linux_web_app = {
12401240
AUTH_TRUST_HOST = "true"
12411241
NEXTAUTH_URL = "https://cohort.screening.nhs.uk/api/auth"
12421242
SERVICE_NAME = "Cohort Manager"
1243+
AUTH_CIS2_ACR_VALUES = "AAL3_ANY"
12431244
}
12441245
from_key_vault = {
12451246
# env_var_name = "key_vault_secret_name"

0 commit comments

Comments
 (0)