Skip to content
Merged
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
33 changes: 19 additions & 14 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,20 +225,25 @@ def aal_authn_context(aal)
def vtr_authn_context(ial:, aal:)
return nil if vtr_disabled?

values = ['C1']

values << {
'2' => 'C2',
'2-phishing_resistant' => 'C2.Ca',
'2-hspd12' => 'C2.Cb',
}[aal]

values << {
'2' => 'P1',
'biometric-comparison-required' => 'P1.Pb',
}[ial]

values.compact.join('.')
values = ['C1']

values << {
'2' => 'C2',
'2-phishing_resistant' => 'C2.Ca',
'2-hspd12' => 'C2.Cb',
}[aal]

values << {
'2' => 'P1',
'biometric-comparison-required' => 'P1.Pb',
}[ial]

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

def saml_sp_certificate
Expand Down