Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/controllers/idv_controller.rb
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -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

Expand Down
12 changes: 12 additions & 0 deletions spec/controllers/idv_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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' }

Expand Down