Skip to content

Commit 47e1f9b

Browse files
author
JHjava
authored
Merge pull request #1587 from alphagov/bau-refactor-base-url
BAU - Rename BASE_URL to OIDC_API_BASE_URL
2 parents 0cde633 + bd1767f commit 47e1f9b

35 files changed

Lines changed: 29 additions & 48 deletions

File tree

account-management-integration-tests/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test {
3636
environment "AWS_ACCESS_KEY_ID", "mock-access-key"
3737
environment "AWS_REGION", "eu-west-2"
3838
environment "AWS_SECRET_ACCESS_KEY", "mock-secret-key "
39-
environment "BASE_URL", "http://localhost"
39+
environment "OIDC_API_BASE_URL", "http://localhost"
4040
environment "DYNAMO_ENDPOINT", "http://localhost:8000"
4141
environment "ENVIRONMENT", "local"
4242
environment "HEADERS_CASE_INSENSITIVE", "true"

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ task oidcTerraform (type: Terraform) {
271271
environment "API_GATEWAY_ID", json.api_gateway_root_id.value
272272
environment "TOKEN_SIGNING_KEY_ALIAS", json.token_signing_key_alias.value
273273
environment "IPV_TOKEN_SIGNING_KEY_ALIAS", json.ipv_token_auth_key_alias.value
274-
environment "BASE_URL", json.base_url.value
274+
environment "OIDC_API_BASE_URL", json.base_url.value
275275
environment "API_KEY", json.frontend_api_key.value
276276
environment "FRONTEND_API_GATEWAY_ID", json.frontend_api_gateway_root_id.value
277277
environment "FRONTEND_API_KEY", json.frontend_api_key.value
@@ -307,7 +307,7 @@ task acctMgmtTerraform (type: Terraform) {
307307
def json = outputs()
308308
allprojects.findAll {it.name == "account-management-integration-tests"}.first().tasks.getByName("test") {
309309
environment "API_GATEWAY_ID", json.api_gateway_root_id.value
310-
environment "BASE_URL", json.base_url.value
310+
environment "OIDC_API_BASE_URL", json.base_url.value
311311
environment "EMAIL_QUEUE_URL", json.email_queue.value
312312
}
313313
}

ci/terraform/account-management/authenticate.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module "authenticate" {
1818
endpoint_method = "POST"
1919
handler_environment_variables = {
2020
ENVIRONMENT = var.environment
21-
BASE_URL = local.oidc_api_base_url
2221
DYNAMO_ENDPOINT = var.use_localstack ? var.lambda_dynamo_endpoint : null
2322
LOCALSTACK_ENDPOINT = var.use_localstack ? var.localstack_endpoint : null
2423
EVENTS_SNS_TOPIC_ARN = data.aws_sns_topic.events.arn

ci/terraform/oidc/auth-code.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ module "auth-code" {
2222
endpoint_method = "GET"
2323

2424
handler_environment_variables = {
25-
BASE_URL = local.api_base_url
2625
EVENTS_SNS_TOPIC_ARN = aws_sns_topic.events.arn
2726
AUDIT_SIGNING_KEY_ALIAS = local.audit_signing_key_alias_name
2827
LOCALSTACK_ENDPOINT = var.use_localstack ? var.localstack_endpoint : null

ci/terraform/oidc/authorize.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ module "authorize" {
2222
environment = var.environment
2323

2424
handler_environment_variables = {
25-
BASE_URL = local.api_base_url
2625
DOMAIN_NAME = module.dns.service_domain_name
2726
EVENTS_SNS_TOPIC_ARN = aws_sns_topic.events.arn
2827
AUDIT_SIGNING_KEY_ALIAS = local.audit_signing_key_alias_name

ci/terraform/oidc/ipv-authorize.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ module "ipv-authorize" {
2424

2525
handler_environment_variables = {
2626
ENVIRONMENT = var.environment
27-
BASE_URL = local.frontend_api_base_url
2827
EVENTS_SNS_TOPIC_ARN = aws_sns_topic.events.arn
2928
AUDIT_SIGNING_KEY_ALIAS = local.audit_signing_key_alias_name
3029
LOCALSTACK_ENDPOINT = var.use_localstack ? var.localstack_endpoint : null

ci/terraform/oidc/ipv-callback.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ module "ipv-callback" {
2626

2727
handler_environment_variables = {
2828
ENVIRONMENT = var.environment
29-
BASE_URL = local.frontend_api_base_url
3029
EVENTS_SNS_TOPIC_ARN = aws_sns_topic.events.arn
3130
AUDIT_SIGNING_KEY_ALIAS = local.audit_signing_key_alias_name
3231
LOGIN_URI = module.dns.frontend_url

ci/terraform/oidc/ipv-capacity.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ module "ipv-capacity" {
2222

2323
handler_environment_variables = {
2424
ENVIRONMENT = var.environment
25-
BASE_URL = local.frontend_api_base_url
2625
EVENTS_SNS_TOPIC_ARN = aws_sns_topic.events.arn
2726
AUDIT_SIGNING_KEY_ALIAS = local.audit_signing_key_alias_name
2827
LOCALSTACK_ENDPOINT = var.use_localstack ? var.localstack_endpoint : null

ci/terraform/oidc/jwks.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module "jwks" {
1818
environment = var.environment
1919

2020
handler_environment_variables = {
21-
BASE_URL = local.api_base_url
2221
EVENTS_SNS_TOPIC_ARN = aws_sns_topic.events.arn
2322
AUDIT_SIGNING_KEY_ALIAS = local.audit_signing_key_alias_name
2423
LOCALSTACK_ENDPOINT = var.use_localstack ? var.localstack_endpoint : null

ci/terraform/oidc/login.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ module "login" {
2626

2727
handler_environment_variables = {
2828
ENVIRONMENT = var.environment
29-
BASE_URL = local.frontend_api_base_url
3029
EVENTS_SNS_TOPIC_ARN = aws_sns_topic.events.arn
3130
AUDIT_SIGNING_KEY_ALIAS = local.audit_signing_key_alias_name
3231
LOCALSTACK_ENDPOINT = var.use_localstack ? var.localstack_endpoint : null

0 commit comments

Comments
 (0)