diff --git a/app/controllers/idv_controller.rb b/app/controllers/idv_controller.rb index bc44343b241..a4eb321d3d2 100644 --- a/app/controllers/idv_controller.rb +++ b/app/controllers/idv_controller.rb @@ -1,6 +1,7 @@ class IdvController < ApplicationController include IdvSession include AccountReactivationConcern + include InheritedProofingConcern before_action :confirm_two_factor_authenticated before_action :profile_needs_reactivation?, only: [:index] @@ -36,6 +37,7 @@ def sp_over_quota_limit? def verify_identity analytics.idv_intro_visit + return redirect_to idv_inherited_proofing_url if va_inherited_proofing? redirect_to idv_doc_auth_url end diff --git a/spec/controllers/idv_controller_spec.rb b/spec/controllers/idv_controller_spec.rb index c4c8646f3dc..6529c857d5c 100644 --- a/spec/controllers/idv_controller_spec.rb +++ b/spec/controllers/idv_controller_spec.rb @@ -55,6 +55,18 @@ expect(response).to redirect_to idv_doc_auth_path end + context 'with a VA inherited proofing session' do + before do + stub_sign_in + allow(controller).to receive(:va_inherited_proofing?).and_return(true) + end + + it 'redirects to inherited proofing' do + get :index + expect(response).to redirect_to idv_inherited_proofing_path + end + end + context 'sp has reached quota limit' do let(:issuer) { 'foo' }