diff --git a/app/services/idv/steps/ipp/ssn_step.rb b/app/services/idv/steps/ipp/ssn_step.rb index 9dffd673110..5499f02bc3b 100644 --- a/app/services/idv/steps/ipp/ssn_step.rb +++ b/app/services/idv/steps/ipp/ssn_step.rb @@ -29,7 +29,6 @@ def form_submit end def generate_threatmetrix_session_id - return unless IdentityConfig.store.proofing_device_profiling_collecting_enabled flow_session[:threatmetrix_session_id] = SecureRandom.uuid if !updating_ssn flow_session[:threatmetrix_session_id] end diff --git a/app/services/idv/steps/ssn_step.rb b/app/services/idv/steps/ssn_step.rb index d136cf1aea3..5d95ba0390a 100644 --- a/app/services/idv/steps/ssn_step.rb +++ b/app/services/idv/steps/ssn_step.rb @@ -35,7 +35,6 @@ def invalid_state_response end def generate_threatmetrix_session_id - return unless IdentityConfig.store.proofing_device_profiling_collecting_enabled flow_session[:threatmetrix_session_id] = SecureRandom.uuid if !updating_ssn flow_session[:threatmetrix_session_id] end diff --git a/spec/features/idv/doc_auth/verify_step_spec.rb b/spec/features/idv/doc_auth/verify_step_spec.rb index 1760d3aa540..5f32911d827 100644 --- a/spec/features/idv/doc_auth/verify_step_spec.rb +++ b/spec/features/idv/doc_auth/verify_step_spec.rb @@ -177,7 +177,7 @@ anything, should_proof_state_id: true, trace_id: anything, - threatmetrix_session_id: nil, + threatmetrix_session_id: kind_of(String), user_id: user.id, request_ip: kind_of(String), ). @@ -204,7 +204,7 @@ anything, should_proof_state_id: false, trace_id: anything, - threatmetrix_session_id: nil, + threatmetrix_session_id: kind_of(String), user_id: user.id, request_ip: kind_of(String), ). @@ -229,7 +229,7 @@ anything, should_proof_state_id: false, trace_id: anything, - threatmetrix_session_id: nil, + threatmetrix_session_id: kind_of(String), user_id: user.id, request_ip: kind_of(String), ). diff --git a/spec/services/idv/steps/ipp/ssn_step_spec.rb b/spec/services/idv/steps/ipp/ssn_step_spec.rb index 152550039aa..3ca0c0af8f4 100644 --- a/spec/services/idv/steps/ipp/ssn_step_spec.rb +++ b/spec/services/idv/steps/ipp/ssn_step_spec.rb @@ -70,12 +70,12 @@ end context 'with proofing device profiling collecting disabled' do - it 'does not add a session id to flow session' do + it 'still adds a session id to flow session' do allow(IdentityConfig.store). to receive(:proofing_device_profiling_collecting_enabled). and_return(false) step.extra_view_variables - expect(flow.flow_session[:threatmetrix_session_id]).to eq(nil) + expect(flow.flow_session[:threatmetrix_session_id]).to_not eq(nil) end end end diff --git a/spec/services/idv/steps/ssn_step_spec.rb b/spec/services/idv/steps/ssn_step_spec.rb index eabd8395dc9..e2fe34ed2c0 100644 --- a/spec/services/idv/steps/ssn_step_spec.rb +++ b/spec/services/idv/steps/ssn_step_spec.rb @@ -102,12 +102,12 @@ end context 'with proofing device profiling collecting disabled' do - it 'does not add a session id to flow session' do + it 'still adds a session id to flow session' do allow(IdentityConfig.store). to receive(:proofing_device_profiling_collecting_enabled). and_return(false) step.extra_view_variables - expect(flow.flow_session[:threatmetrix_session_id]).to eq(nil) + expect(flow.flow_session[:threatmetrix_session_id]).to_not eq(nil) end end end