From 747fbb50b2c51627e88b2ff9018c1ca7204a7614 Mon Sep 17 00:00:00 2001 From: Jonathan Hooper Date: Tue, 3 Jan 2023 10:53:09 -0500 Subject: [PATCH] LG-8521 Re-enable ThreatMetrix redirects These were removed in an attempt to fix an issue where decisioning was enabled (#7560). That change actually did not address the issue. The change in #7562 addressed the issue. This commit puts this code back. [skip changelog] --- app/controllers/openid_connect/authorization_controller.rb | 1 + app/controllers/saml_idp_controller.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/controllers/openid_connect/authorization_controller.rb b/app/controllers/openid_connect/authorization_controller.rb index 74635175edf..0976f1acf36 100644 --- a/app/controllers/openid_connect/authorization_controller.rb +++ b/app/controllers/openid_connect/authorization_controller.rb @@ -21,6 +21,7 @@ class AuthorizationController < ApplicationController before_action :bump_auth_count, only: [:index] def index + return redirect_to_threatmetrix_review if threatmetrix_review_pending_for_ial2_request? return redirect_to_account_or_verify_profile_url if profile_or_identity_needs_verification? return redirect_to(sign_up_completed_url) if needs_completion_screen_reason link_identity_to_service_provider diff --git a/app/controllers/saml_idp_controller.rb b/app/controllers/saml_idp_controller.rb index 7130cc695b5..c7650735abb 100644 --- a/app/controllers/saml_idp_controller.rb +++ b/app/controllers/saml_idp_controller.rb @@ -25,6 +25,7 @@ class SamlIdpController < ApplicationController def auth capture_analytics + return redirect_to_threatmetrix_review if threatmetrix_review_pending? && ial2_requested? return redirect_to_verification_url if profile_or_identity_needs_verification_or_decryption? return redirect_to(sign_up_completed_url) if needs_completion_screen_reason if auth_count == 1 && first_visit_for_sp?