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: 1 addition & 1 deletion app/views/users/webauthn_setup/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<%= simple_form_for(
'',
url: webauthn_setup_path,
url: webauthn_setup_path(platform: @platform_authenticator.presence),
method: :patch,
html: {
class: 'margin-top-4 margin-bottom-1',
Expand Down
11 changes: 11 additions & 0 deletions spec/features/webauthn/management_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,17 @@ def expect_webauthn_platform_setup_error

expect(page).to have_current_path webauthn_setup_path(platform: true)

# Regression: LG-9860: Ensure that the platform URL parameter is maintained through reauthn
travel_to (IdentityConfig.store.reauthn_window + 1).seconds.from_now
fill_in_nickname_and_click_continue
mock_press_button_on_hardware_key_on_setup

expect(page).to have_current_path login_two_factor_options_path(reauthn: true)
click_on t('forms.buttons.continue')
fill_in_code_with_last_phone_otp
click_submit_default

expect(page).to have_current_path webauthn_setup_path(platform: true)
fill_in_nickname_and_click_continue
mock_press_button_on_hardware_key_on_setup

Expand Down