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
9 changes: 8 additions & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,14 @@ def vtr_value(ial:, aal:)
'biometric-comparison-required' => 'P1.Pb',
}[ial]

[values.compact.join('.')].to_json
vtr_list = [values.compact.join('.')]

if ial == '0'
proofing_vector = values.dup + ['P1']
vtr_list = [proofing_vector.compact.join('.'), *vtr_list]
end

vtr_list.to_json
end

def vtm_value
Expand Down
4 changes: 2 additions & 2 deletions spec/app_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@
expect(CGI.unescape(last_response.location)).to include('vtr=["C1"]')
end

xit 'redirects to an ialmax sign in link if ial param is 0' do
it 'redirects to an ialmax sign in link if ial param is 0' do
get '/auth/request?ial=0'

expect(last_response).to be_redirect
expect(last_response.location).to include(
'scope=openid+email+social_security_number',
)
expect(CGI.unescape(last_response.location)).to include('vtr=["C1.P1"]')
expect(CGI.unescape(last_response.location)).to include('vtr=["C1.P1","C1"]')
end

it 'redirects to a default sign in link if ial param is step-up' do
Expand Down