Skip to content

Commit 8ffd1d9

Browse files
committed
update tf config
1 parent 30b6118 commit 8ffd1d9

5 files changed

Lines changed: 12 additions & 0 deletions

File tree

application/CohortManager/src/Functions/Shared/Common/Extensions/AuthenticationExtension.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ public static IHostBuilder AddAuthentication(this IHostBuilder hostBuilder)
2424
services.AddSingleton<IRoleManager, RoleManager>();
2525
});
2626
}
27+
else
28+
{
29+
hostBuilder.ConfigureFunctionsWorkerDefaults();
30+
}
2731
return hostBuilder;
2832
}
2933
}

infrastructure/tf-core/environments/integration.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ function_apps = {
565565
function_endpoint_name = "GetValidationExceptions"
566566
app_service_plan_key = "NonScaling"
567567
db_connection_string = "DtOsDatabaseConnectionString"
568+
key_vault_url = "KeyVaultConnectionString"
568569
app_urls = [
569570
{
570571
env_var_name = "DemographicDataServiceURL"
@@ -581,6 +582,7 @@ function_apps = {
581582
]
582583
env_vars_static = {
583584
AcceptableLatencyThresholdMs = "500"
585+
UserInfoUrl = "https://am.nhsint.auth-ptl.cis2.spineservices.nhs.uk/openam/oauth2/realms/root/realms/NHSIdentity/realms/Healthcare/userinfo"
584586
}
585587
}
586588

infrastructure/tf-core/environments/nft.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ function_apps = {
564564
function_endpoint_name = "GetValidationExceptions"
565565
app_service_plan_key = "NonScaling"
566566
db_connection_string = "DtOsDatabaseConnectionString"
567+
key_vault_url = "KeyVaultConnectionString"
567568
app_urls = [
568569
{
569570
env_var_name = "DemographicDataServiceURL"
@@ -580,6 +581,7 @@ function_apps = {
580581
]
581582
env_vars_static = {
582583
AcceptableLatencyThresholdMs = "500"
584+
UserInfoUrl = "https://am.nhsint.auth-ptl.cis2.spineservices.nhs.uk/openam/oauth2/realms/root/realms/NHSIdentity/realms/Healthcare/userinfo"
583585
}
584586
}
585587

infrastructure/tf-core/environments/preprod.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ function_apps = {
575575
function_endpoint_name = "GetValidationExceptions"
576576
app_service_plan_key = "NonScaling"
577577
db_connection_string = "DtOsDatabaseConnectionString"
578+
key_vault_url = "KeyVaultConnectionString"
578579
app_urls = [
579580
{
580581
env_var_name = "DemographicDataServiceURL"
@@ -591,6 +592,7 @@ function_apps = {
591592
]
592593
env_vars_static = {
593594
AcceptableLatencyThresholdMs = "500"
595+
UserInfoUrl = "https://am.nhsint.auth-ptl.cis2.spineservices.nhs.uk/openam/oauth2/realms/root/realms/NHSIdentity/realms/Healthcare/userinfo"
594596
}
595597
}
596598

infrastructure/tf-core/environments/production.tfvars

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ function_apps = {
596596
function_endpoint_name = "GetValidationExceptions"
597597
app_service_plan_key = "NonScaling"
598598
db_connection_string = "DtOsDatabaseConnectionString"
599+
key_vault_url = "KeyVaultConnectionString"
599600
app_urls = [
600601
{
601602
env_var_name = "DemographicDataServiceURL"
@@ -612,6 +613,7 @@ function_apps = {
612613
]
613614
env_vars_static = {
614615
AcceptableLatencyThresholdMs = "500"
616+
UserInfoUrl = "https://am.nhsidentity.spineservices.nhs.uk/openam/oauth2/realms/root/realms/NHSIdentity/realms/Healthcare/userinfo"
615617
}
616618
}
617619

0 commit comments

Comments
 (0)