Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion application/CohortManager/src/Web/app/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const NHS_CIS2: OAuthConfig<Profile> = {
clientSecret: process.env.AUTH_CIS2_CLIENT_SECRET,
authorization: {
params: {
acr_values: "AAL2_OR_AAL3_ANY",
acr_values: process.env.AUTH_CIS2_ACR_VALUES || "AAL2_OR_AAL3_ANY",
scope: "openid profile nationalrbacaccess",
response_type: "code",
max_age: 240, // 4 minutes [Required by CIS2]
Expand Down
7 changes: 4 additions & 3 deletions infrastructure/tf-core/environments/preprod.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ function_apps = {
}
]
env_vars_static = {
RetrievePdsParticipantURL = "https://int.api.service.nhs.uk/personal-demographics/FHIR/R4/Patient"
RetrievePdsParticipantURL = "https://api.service.nhs.uk/personal-demographics/FHIR/R4/Patient"
Kid = "RetrievePdsDemographic-prod"
Audience = "https://api.service.nhs.uk/oauth2/token"
AuthTokenURL = "https://api.service.nhs.uk/oauth2/token"
Expand Down Expand Up @@ -1199,11 +1199,12 @@ linux_web_app = {
app_service_plan_key = "NonScaling"
env_vars = {
static = {
AUTH_CIS2_ISSUER_URL = ""
AUTH_CIS2_CLIENT_ID = ""
AUTH_CIS2_ISSUER_URL = "https://am.nhsint.auth-ptl.cis2.spineservices.nhs.uk:443"
AUTH_CIS2_CLIENT_ID = "5780695865.cohort_manager_preprod.b099494b-7c49-4d78-9e3c-3a801aac691b.apps"
AUTH_TRUST_HOST = "true"
NEXTAUTH_URL = "https://cohort-pre.screening.nhs.uk/api/auth"
SERVICE_NAME = "Cohort Manager"
AUTH_CIS2_ACR_VALUES = "AAL3_ANY"
}
from_key_vault = {
# env_var_name = "key_vault_secret_name"
Expand Down
15 changes: 9 additions & 6 deletions infrastructure/tf-core/environments/production.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ function_apps = {
env_var_name = "RetrievePdsDemographicURL"
function_app_key = "RetrievePDSDemographic"
},
{
{
env_var_name = "ManageNemsSubscriptionUnsubscribeURL"
function_app_key = "ManageNemsSubscription"
endpoint_name = "Unsubscribe"
Expand Down Expand Up @@ -980,10 +980,10 @@ function_apps = {
}
]
env_vars_static = {
ServiceNowRefreshAccessTokenUrl = "" # TODO: Get value
ServiceNowUpdateUrl = "" # TODO: Get value
ServiceNowResolutionUrl = "" # TODO: Get value
ServiceNowGrantType = "" # TODO: Get value
ServiceNowRefreshAccessTokenUrl = "https://nhsdigitallive.service-now.com/oauth_token.do"
ServiceNowUpdateUrl = "https://nhsdigitallive.service-now.com/api/x_nhsd_intstation/nhs_integration/7ce726ef1b4b66d0772fa756b04bcb2a/CohortCaseUpdate"
ServiceNowResolutionUrl = "https://nhsdigitallive.service-now.com/api/x_nhsd_intstation/nhs_integration/7ce726ef1b4b66d0772fa756b04bcb2a/CohortCaseResolution"
ServiceNowGrantType = "client_credentials"
ServiceNowParticipantManagementTopic = "servicenow-participant-management" # Sends messages to the servicenow participant manage topic
}
}
Expand Down Expand Up @@ -1077,6 +1077,7 @@ function_apps = {
}
]
env_vars_static = {
# TODO: Add PDS details when available
RetrievePdsParticipantURL = ""
Kid = ""
Audience = ""
Expand Down Expand Up @@ -1233,11 +1234,13 @@ linux_web_app = {
app_service_plan_key = "NonScaling"
env_vars = {
static = {
AUTH_CIS2_ISSUER_URL = ""
# TODO: Add CIS details when available
AUTH_CIS2_ISSUER_URL = "https://am.nhsidentity.spineservices.nhs.uk:443/openam/oauth2/realms/root/realms/NHSIdentity/realms/Healthcare"
AUTH_CIS2_CLIENT_ID = ""
AUTH_TRUST_HOST = "true"
NEXTAUTH_URL = "https://cohort.screening.nhs.uk/api/auth"
SERVICE_NAME = "Cohort Manager"
AUTH_CIS2_ACR_VALUES = "AAL3_ANY"
}
from_key_vault = {
# env_var_name = "key_vault_secret_name"
Expand Down
Loading