Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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: 1 addition & 1 deletion app/controllers/saml_idp_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ def track_events
analytics.track_event(Analytics::SP_REDIRECT_INITIATED)
Db::SpReturnLog::AddReturn.call(request_id, current_user.id)
increment_monthly_auth_count
add_sp_cost(sp_session[:ial2] ? :ial2_authentication : :ial1_authentication)
add_sp_cost(:authentication)
end
end
2 changes: 0 additions & 2 deletions config/locales/errors/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ en:
photo_glare: Photo has glare, please try again.
quota_reached: Sorry your service provider has reached its identity verification
limit. Please contact your service provider for more information.
selfie: We couldn't read the photo of yourself, or match the photo to your ID.
Comment thread
stevegsa marked this conversation as resolved.
Try taking a new picture.
send_link_throttle: You tried too many times, please try again in 10 minutes.
You can also click on Start Over and choose to use your computer instead.
file_input:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/errors/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ es:
quota_reached: Lo sentimos, su proveedor de servicios ha alcanzado su límite
de verificación de identidad. Póngase en contacto con su proveedor de servicios
para obtener más información.
selfie: No pudimos leer tu foto ni hacer coincidir la foto con tu identificación.
Intente tomar una nueva foto.
send_link_throttle: Lo intentaste muchas veces, vuelve a intentarlo en 10 minutos.
También puedes hacer clic en comenzar de nuevo y elegir usar tu computadora.
file_input:
Expand Down
2 changes: 0 additions & 2 deletions config/locales/errors/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ fr:
quota_reached: Désolé, votre fournisseur de services a atteint sa limite de
vérification d'identité. Veuillez contacter votre fournisseur de services
pour plus d'informations.
selfie: Nous n'avons pas pu lire la photo de vous ni faire correspondre la photo
à votre pièce d'identité. Essayez de prendre une nouvelle photo.
send_link_throttle: Vous avez essayé plusieurs fois, essayez à nouveau dans
10 minutes. Vous pouvez également cliquer sur recommencer et choisir d'utiliser
votre ordinateur.
Expand Down
9 changes: 9 additions & 0 deletions spec/controllers/saml_idp_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,8 @@ def stub_requested_attributes
expect(@analytics).to receive(:track_event).with(Analytics::SP_REDIRECT_INITIATED)

generate_saml_response(user)

expect_sp_authentication_cost
end
end

Expand All @@ -1014,6 +1016,8 @@ def stub_requested_attributes
expect(@analytics).to receive(:track_event).with(Analytics::SP_REDIRECT_INITIATED)

generate_saml_response(user)

expect_sp_authentication_cost
end
end
end
Expand All @@ -1029,4 +1033,9 @@ def stub_requested_attributes
)
end
end

def expect_sp_authentication_cost
sp_cost = SpCost.where(issuer: 'http://localhost:3000', cost_type: 'authentication').first
expect(sp_cost).to be_present
end
end