From 8c5731bee3f5d82c1fb0125d65b2ae28d0b57317 Mon Sep 17 00:00:00 2001 From: Kenneth Lee Date: Thu, 5 Sep 2024 10:27:56 +0100 Subject: [PATCH] TEMPORARY TEST DSI on review app (remove commit before merging) --- config/initializers/omniauth.rb | 5 +++++ terraform/application/config/review_app_env.yml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index b880164f15..25caeefbcc 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -16,6 +16,11 @@ if ENV["DFE_SIGN_IN_REDIRECT_BASE_URL"].present? dfe_sign_in_redirect_uri = URI.join(ENV["DFE_SIGN_IN_REDIRECT_BASE_URL"], "/admin/auth/callback") dfe_sign_in_fe_provider_redirect_uri = URI.join(ENV["DFE_SIGN_IN_REDIRECT_BASE_URL"], dfe_sign_in_fe_provider_callback_path) + + if ENV["ENVIRONMENT_NAME"].start_with?("review") + dfe_sign_in_redirect_uri.host = ENV["CANONICAL_HOSTNAME"] + dfe_sign_in_fe_provider_redirect_uri.host = ENV["CANONICAL_HOSTNAME"] + end end tid_sign_in_endpoint_uri = ENV["TID_SIGN_IN_API_ENDPOINT"].present? ? URI(ENV["TID_SIGN_IN_API_ENDPOINT"]) : nil diff --git a/terraform/application/config/review_app_env.yml b/terraform/application/config/review_app_env.yml index fd40ad8e19..bce19d7dbb 100644 --- a/terraform/application/config/review_app_env.yml +++ b/terraform/application/config/review_app_env.yml @@ -1,5 +1,5 @@ --- -BYPASS_DFE_SIGN_IN: true +BYPASS_DFE_SIGN_IN: false BYPASS_ONELOGIN_SIGN_IN: true ONELOGIN_DID_URL: https://identity.integration.account.gov.uk/.well-known/did.json @@ -7,6 +7,7 @@ DFE_SIGN_IN_API_CLIENT_ID: teacherpayments DFE_SIGN_IN_API_ENDPOINT: https://pp-api.signin.education.gov.uk DFE_SIGN_IN_IDENTIFIER: teacherpayments DFE_SIGN_IN_ISSUER: https://pp-oidc.signin.education.gov.uk:443 +DFE_SIGN_IN_REDIRECT_BASE_URL: https://claim-additional-payments-for-teaching-review-3146-web.test.teacherservices.cloud DQT_API_URL: https://preprod.teacher-qualifications-api.education.gov.uk/v1 DQT_BASE_URL: https://test-api-customerengagement.platform.education.gov.uk/dqt-crm/v1/