From 87bceb3a0e19b5ddb69572b6253c766ee32d1e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 18 Oct 2024 23:53:04 +0200 Subject: [PATCH 1/6] pam/nativemodel: Improve wording and consistency of strings Use the same terminology and similar behavior of the CLI mode --- ...uthenticate_user_and_accept_password_reset | 153 +- ...uthenticate_user_and_add_it_to_local_group | 38 +- ...authenticate_user_and_offer_password_reset | 72 +- ..._and_reset_password_while_enforcing_policy | 79 +- .../golden/authenticate_user_on_ssh_service | 38 +- ...service_with_custom_name_and_auth_info_env | 38 +- ...ervice_with_custom_name_and_connection_env | 38 +- .../golden/authenticate_user_successfully | 38 +- ...nticate_user_successfully_with_preset_user | 38 +- .../authenticate_user_switching_auth_mode | 2781 +++++++++-------- ...uthenticate_user_switching_to_local_broker | 294 +- .../authenticate_user_switching_username | 94 +- ...thenticate_user_with_form_mode_with_button | 276 +- .../golden/authenticate_user_with_mfa | 558 ++-- ..._and_reset_password_while_enforcing_policy | 402 ++- .../golden/authenticate_user_with_qr_code | 528 ++-- .../authenticate_user_with_qr_code_in_a_tty | 528 ++-- ...nticate_user_with_qr_code_in_a_tty_session | 528 ++-- .../authenticate_user_with_qr_code_in_polkit | 528 ++-- .../authenticate_user_with_qr_code_in_screen | 528 ++-- .../authenticate_user_with_qr_code_in_ssh | 528 ++-- ...ate_with_warnings_on_unsupported_arguments | 38 +- ...eny_authentication_if_max_attempts_reached | 114 +- ...wpassword_does_not_match_required_criteria | 274 +- ...deny_authentication_if_user_does_not_exist | 24 +- ...user_does_not_exist_and_matches_cancel_key | 38 +- .../exit_authd_if_local_broker_is_selected | 24 +- .../golden/exit_authd_if_user_sigints | 38 +- ...revent_preset_user_from_switching_username | 434 +-- .../remember_last_successful_broker_and_mode | 444 +-- .../golden/change_passwd_after_mfa_auth | 787 +++-- ...successfully_and_authenticate_with_new_one | 165 +- .../exit_authd_if_local_broker_is_selected | 24 +- .../golden/exit_authd_if_user_sigints | 38 +- .../prevent_change_password_if_auth_fails | 114 +- ...ent_change_password_if_user_does_not_exist | 24 +- ...w_password_does_not_match_quality_criteria | 274 +- ...etry_if_new_password_is_rejected_by_broker | 386 +-- .../retry_if_new_password_is_same_of_previous | 136 +- ...y_if_password_confirmation_is_not_the_same | 170 +- pam/internal/adapter/nativemodel.go | 49 +- 41 files changed, 5709 insertions(+), 5991 deletions(-) diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset index 918ed8064..89c66980f 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset @@ -3,101 +3,94 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Authenticate() for user "user-can-reset2" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Authenticate() for user "user-can-reset2" exited with success PAM AcctMgmt() exited with success > @@ -105,20 +98,18 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Authenticate() for user "user-can-reset2" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group index 139f5bc44..d3a2b0a99 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group @@ -6,27 +6,27 @@ Username: user-local-groups ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-local-groups" exited with success PAM AcctMgmt() exited with success @@ -34,11 +34,11 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-local-groups" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset index d6efb29c5..d1c081ff7 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset @@ -3,61 +3,61 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 2 +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 2 PAM Authenticate() for user "user-can-reset" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 2 +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 2 PAM Authenticate() for user "user-can-reset" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy index b0c61222e..3866d2c03 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy @@ -3,72 +3,65 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service index d0fbf1cc3..5c8e78fb2 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service @@ -1,34 +1,34 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-service" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-service" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env index 6983ced19..a791b1288 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env @@ -1,34 +1,34 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-auth-info" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-auth-info" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env index 34d6629ed..9ecd12869 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env @@ -1,34 +1,34 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-connection" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-connection" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully index 8e341d3fd..07c35a22b 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully @@ -6,27 +6,27 @@ Username: user1 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success @@ -34,11 +34,11 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user index 33dd8682d..b3313faa5 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user @@ -1,34 +1,34 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-simple-preset" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-simple-preset" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode index 69615c50d..30b7ee4c1 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode @@ -6,617 +6,628 @@ Username: user-integration-switch-mode ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -638,89 +649,90 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -742,99 +754,100 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -856,103 +869,104 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -974,113 +988,114 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1102,124 +1117,125 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: invalid-selection +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1241,135 +1257,136 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: invalid-selection +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: -1 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: -1 PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1391,137 +1408,138 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: invalid-selection +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: -1 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: -1 PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1543,57 +1561,57 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: invalid-selection +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: -1 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: -1 PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: 4242 PAM Authenticate() for user "user-integration-switch-mode" exited with success PAM AcctMgmt() exited with success @@ -1601,82 +1619,83 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for other authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 2 +Leave the input field empty to wait for the alternative authentication method or enter 'r' to go + back Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 3 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 3 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 4 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 4 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 5 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 5 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +1… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1698,57 +1717,57 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: r -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: invalid-selection +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: -1 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: -1 PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 6 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 6 +Enter 'r' to cancel the request and go back Enter your pin code: 4242 PAM Authenticate() for user "user-integration-switch-mode" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker index 9f1223779..659a0d320 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker @@ -3,155 +3,155 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-broker@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-broker@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-broker@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-broker@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-broker@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: invalid-ID +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-broker@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-broker@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: invalid-ID +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-broker@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 555 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 555 PAM Error Message: Invalid entry. Try again or input 'r'. -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-broker@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: invalid-ID +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-broker@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 555 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 555 PAM Error Message: Invalid entry. Try again or input 'r'. -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 1 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 1 auth=incomplete PAM Authenticate() for user "user-integration-switch-broker" exited with error (PAM exit code: 2 5): The return value should be ignored by PAM dispatch @@ -160,36 +160,36 @@ PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-switch-broker@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: invalid-ID +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-switch-broker@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 555 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 555 PAM Error Message: Invalid entry. Try again or input 'r'. -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 1 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 1 auth=incomplete PAM Authenticate() for user "user-integration-switch-broker" exited with error (PAM exit code: 2 5): The return value should be ignored by PAM dispatch diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username index f971e4020..6dcf6e850 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username @@ -6,65 +6,65 @@ Username: user-integration-switch-username ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: r Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: r Username: user-integration-username-switched ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: r Username: user-integration-username-switched -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: r Username: user-integration-username-switched -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: r Username: user-integration-username-switched -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-username-switched" exited with success PAM AcctMgmt() exited with success @@ -72,16 +72,16 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: r Username: user-integration-username-switched -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-username-switched" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button index 450444f59..a86fd302a 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button @@ -3,145 +3,145 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-form-w-button@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-form-w-button@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-form-w-button@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-form-w-button@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-form-w-button@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 2 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-form-w-button@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 2 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-form-w-button@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 2 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-form-w-button@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 2 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-form-w-button@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 2 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-form-w-button@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 2 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass00 PAM Authenticate() for user "user-integration-form-w-button" exited with success PAM AcctMgmt() exited with success @@ -149,31 +149,31 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-form-w-button@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 2 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-form-w-button@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 2 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass00 PAM Authenticate() for user "user-integration-form-w-button" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa index 261b1f31c..df370990e 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa @@ -3,289 +3,289 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 2 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 2 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 2 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: PAM Authenticate() for user "user-mfa" exited with success PAM AcctMgmt() exited with success @@ -293,41 +293,41 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 2 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: PAM Authenticate() for user "user-mfa" exited with success PAM AcctMgmt() exited with success @@ -335,41 +335,41 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 2 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 2 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: PAM Authenticate() for user "user-mfa" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy index d6fb523d3..a00b5ac88 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy @@ -6,331 +6,289 @@ Username: user-mfa-with-reset ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Authenticate() for user "user-mfa-with-reset" exited with success PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -== Password Update (use 'r' to go back) == -1 - Proceed with password update -2 - Skip -Select action: 1 -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +== Password Update (enter 'r' to go back) == + 1. Proceed with password update + 2. Skip +Choose action: 1 +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password (3 days until mandatory): +Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Authenticate() for user "user-mfa-with-reset" exited with success PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code index 8fc267885..b3163da91 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code @@ -1,55 +1,55 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -71,29 +71,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -115,10 +115,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -140,29 +140,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -184,10 +184,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -209,10 +209,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -236,29 +236,29 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -280,10 +280,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -305,10 +305,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -332,10 +332,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -357,29 +357,29 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -401,10 +401,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -426,10 +426,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -453,10 +453,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -478,10 +478,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -503,29 +503,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -547,10 +547,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -572,10 +572,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -599,10 +599,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -624,10 +624,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -649,29 +649,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -693,10 +693,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -718,10 +718,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -745,10 +745,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -770,10 +770,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -795,32 +795,32 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -842,10 +842,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -867,10 +867,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -894,10 +894,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -919,10 +919,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -944,10 +944,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty index d3b8839a9..66887dccc 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty @@ -1,55 +1,55 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -87,29 +87,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -147,10 +147,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -188,29 +188,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -248,10 +248,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -289,10 +289,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -334,29 +334,29 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -394,10 +394,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -435,10 +435,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -480,10 +480,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -521,29 +521,29 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -581,10 +581,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -622,10 +622,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -667,10 +667,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -708,10 +708,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -749,29 +749,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -809,10 +809,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -850,10 +850,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -895,10 +895,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -936,10 +936,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -977,29 +977,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1037,10 +1037,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1078,10 +1078,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1123,10 +1123,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1164,10 +1164,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1205,32 +1205,32 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code-tty" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1268,10 +1268,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1309,10 +1309,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1354,10 +1354,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1395,10 +1395,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1436,10 +1436,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code-tty" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session index a2b930f5b..d57266b1e 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session @@ -1,55 +1,55 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty-session@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty-session@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty-session@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty-session@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -87,29 +87,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty-session@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty-session@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -147,10 +147,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -188,29 +188,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty-session@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty-session@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -248,10 +248,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -289,10 +289,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -334,29 +334,29 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty-session@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty-session@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -394,10 +394,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -435,10 +435,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -480,10 +480,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -521,29 +521,29 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty-session@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty-session@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -581,10 +581,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -622,10 +622,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -667,10 +667,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -708,10 +708,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -749,29 +749,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty-session@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty-session@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -809,10 +809,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -850,10 +850,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -895,10 +895,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -936,10 +936,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -977,29 +977,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty-session@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty-session@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1037,10 +1037,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1078,10 +1078,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1123,10 +1123,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1164,10 +1164,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1205,32 +1205,32 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-tty-session@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-tty-session@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1268,10 +1268,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1309,10 +1309,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1354,10 +1354,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1395,10 +1395,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1436,10 +1436,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit index 1db415ce6..ccb1c05e8 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit @@ -1,431 +1,431 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-polkit@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-polkit@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-polkit@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-polkit@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-polkit@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-polkit@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-polkit@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-polkit@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-polkit@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-polkit@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-polkit@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-polkit@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-polkit@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-polkit@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-polkit@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-polkit@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code-polkit" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-polkit@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-polkit@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code-polkit" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen index b013bbad9..5cae5c222 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen @@ -1,55 +1,55 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-screen@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-screen@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-screen@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-screen@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -87,29 +87,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-screen@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-screen@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -147,10 +147,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -188,29 +188,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-screen@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-screen@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -248,10 +248,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -289,10 +289,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -334,29 +334,29 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-screen@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-screen@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -394,10 +394,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -435,10 +435,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -480,10 +480,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -521,29 +521,29 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-screen@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-screen@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -581,10 +581,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -622,10 +622,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -667,10 +667,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -708,10 +708,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -749,29 +749,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-screen@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-screen@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -809,10 +809,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -850,10 +850,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -895,10 +895,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -936,10 +936,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -977,29 +977,29 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-screen@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-screen@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1037,10 +1037,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1078,10 +1078,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1123,10 +1123,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1164,10 +1164,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1205,32 +1205,32 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code-screen" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-qr-code-screen@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-qr-code-screen@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1268,10 +1268,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1309,10 +1309,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1354,10 +1354,10 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1395,10 +1395,10 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1436,10 +1436,10 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-qr-code-screen" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh index d3f744bdb..5192cac0c 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh @@ -1,431 +1,431 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-pre-check-ssh-service-qr-code" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 7 +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 2 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (use 'r' to go back) == -1 - Wait for the QR code scan result -2 - Regenerate code -Select action: 1 +== Qr Code authentication (enter 'r' to go back) == + 1. Wait for the QR code scan result + 2. Regenerate code +Choose action: 1 PAM Authenticate() for user "user-integration-pre-check-ssh-service-qr-code" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments index 44f3bb744..aa7d99b43 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments @@ -9,29 +9,29 @@ Username: user2 > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user2" exited with success PAM AcctMgmt() exited with success @@ -40,11 +40,11 @@ PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user2" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached index e753f5dc6..032116d13 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached @@ -6,105 +6,105 @@ Username: user-integration-max-attempts ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM Authenticate() for user "user-integration-max-attempts" exited with error (PAM exit code: 7) @@ -116,23 +116,23 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM Authenticate() for user "user-integration-max-attempts" exited with error (PAM exit code: 7) diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria index f50decec9..6b87bb867 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria @@ -6,249 +6,197 @@ Username: user-needs-reset ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist index 45eb51af9..cb88fbebe 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist @@ -6,17 +6,17 @@ Username: user-unexistent ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist PAM Authenticate() for user "user-unexistent" exited with error (PAM exit code: 4): System error acct=incomplete @@ -26,10 +26,10 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist PAM Authenticate() for user "user-unexistent" exited with error (PAM exit code: 4): System error acct=incomplete diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key index a1b9bd713..a5ba17bd2 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key @@ -6,27 +6,27 @@ Username: r ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: user not found PAM Authenticate() for user "r" exited with error (PAM exit code: 7): Authentication failure @@ -37,11 +37,11 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: user not found PAM Authenticate() for user "r" exited with error (PAM exit code: 7): Authentication failure diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected index 1be7208f5..cbed060e4 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected @@ -6,17 +6,17 @@ Username: user-local-broker ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 1 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 1 auth=incomplete PAM Authenticate() for user "user-local-broker" exited with error (PAM exit code: 25): The retur n value should be ignored by PAM dispatch @@ -25,10 +25,10 @@ PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 1 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 1 auth=incomplete PAM Authenticate() for user "user-local-broker" exited with error (PAM exit code: 25): The retur n value should be ignored by PAM dispatch diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints index 00b3cc667..30dbb42ff 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints @@ -6,37 +6,37 @@ Username: user-integration-sigint ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username index 854d0565d..0543a4545 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username @@ -1,270 +1,270 @@ > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pam-preset@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pam-preset@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pam-preset@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pam-preset@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pam-preset@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pam-preset@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pam-preset@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pam-preset@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pam-preset@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pam-preset@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pam-preset@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pam-preset@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-pam-preset" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-pam-preset@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: r -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-pam-preset@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: r +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: r PAM Error Message: Provided input can't be parsed as integer value -== Broker selection == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user-integration-pam-preset" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode index 0543d593e..7792d2e61 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode @@ -6,110 +6,110 @@ Username: user-integration-remember-mode ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success @@ -117,27 +117,27 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success @@ -146,27 +146,27 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success @@ -175,105 +175,105 @@ Username: user-integration-remember-mode ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success @@ -281,37 +281,37 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-integration-remember-mode@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 8 -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-integration-remember-mode@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 8 +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (use 'r' to go back) == -1 - Proceed with Authentication code -2 - Resend sms -Select action: 1 -Insert 'r' to cancel the request and go back +== Authentication code (enter 'r' to go back) == + 1. Proceed with Authentication code + 2. Resend sms +Choose action: 1 +Enter 'r' to cancel the request and go back Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth index be4449fdd..b68155627 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth @@ -6,525 +6,516 @@ Username: user-mfa ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your phone +33… -2 - Authentication code -Select authentication mode: +== Authentication method selection (enter 'r' to go back) == + 1. Use your phone +33… + 2. Authentication code +Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your phone +33… -2 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your phone +33… + 2. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your phone +33… -2 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your phone +33… + 2. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your phone +33… -2 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your phone +33… + 2. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your phone +33… -2 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your phone +33… + 2. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your phone +33… -2 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your phone +33… + 2. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your phone +33… -2 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your phone +33… + 2. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-mfa" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -== Authentication mode selection (use 'r' to go back) == -1 - Password authentication -2 - Send URL to user-mfa@gmail.com -3 - Use your fido device foo -4 - Use your phone +33… -5 - Use your phone +1… -6 - Pin code -7 - Use a QR code -8 - Authentication code -Select authentication mode: 1 -Insert 'r' to cancel the request and go back +== Authentication method selection (enter 'r' to go back) == + 1. Password authentication + 2. Send URL to user-mfa@gmail.com + 3. Use your fido device foo + 4. Use your phone +33… + 5. Use your phone +1… + 6. Pin code + 7. Use a QR code + 8. Authentication code +Choose your authentication method: 1 +Enter 'r' to cancel the request and go back Gimme your password: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your fido device foo -2 - Use your phone +33… -3 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your fido device foo + 2. Use your phone +33… + 3. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Plug your fido device and press with your thumb: -Leave the input field empty to wait for the authentication method or insert 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: r -== Authentication mode selection (use 'r' to go back) == -1 - Use your phone +33… -2 - Authentication code -Select authentication mode: 1 -Leave the input field empty to wait for the authentication method or insert 'r' to go back +== Authentication method selection (enter 'r' to go back) == + 1. Use your phone +33… + 2. Authentication code +Choose your authentication method: 1 +Press Enter to wait for authentication or enter 'r' to go back Unlock your phone +33… or accept request on web interface: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-mfa" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one index 07673eb78..412f2c179 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one @@ -6,85 +6,76 @@ Username: user1 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -92,16 +83,14 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -109,40 +98,36 @@ Username: user1 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success @@ -150,21 +135,19 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected index 8056ca3af..cb3b70ad9 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected @@ -6,17 +6,17 @@ Username: user-local-broker ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 1 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 1 chauthtok=incomplete PAM ChangeAuthTok() for user "user-local-broker" exited with error (PAM exit code: 25): The retu rn value should be ignored by PAM dispatch @@ -25,10 +25,10 @@ PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 1 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 1 chauthtok=incomplete PAM ChangeAuthTok() for user "user-local-broker" exited with error (PAM exit code: 25): The retu rn value should be ignored by PAM dispatch diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints index d5708e256..ddf1fa97a 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints @@ -6,37 +6,37 @@ Username: user-integration-sigint ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails index 3ebe880bf..7cced346a 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails @@ -6,105 +6,105 @@ Username: user-integration-max-attempts ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM ChangeAuthTok() for user "user-integration-max-attempts" exited with error (PAM exit code: 7 @@ -116,23 +116,23 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM ChangeAuthTok() for user "user-integration-max-attempts" exited with error (PAM exit code: 7 diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist index 62e95b458..f540d5573 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist @@ -6,17 +6,17 @@ Username: user-unexistent ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist PAM ChangeAuthTok() for user "user-unexistent" exited with error (PAM exit code: 4): System erro r @@ -27,10 +27,10 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist PAM ChangeAuthTok() for user "user-unexistent" exited with error (PAM exit code: 4): System erro r diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria index 5c39745f7..61294b9f8 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria @@ -6,249 +6,197 @@ Username: user-integration-bad-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-bad-password" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is shorter than 8 characters -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: No password supplied -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-bad-password" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker index 4eaa99dd5..4a6dcba7e 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker @@ -6,129 +6,109 @@ Username: user-integration-invalid-new-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -136,21 +116,17 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -158,204 +134,160 @@ Username: user-integration-invalid-new-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: new password does not match criteria: must be 'authd2404' -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Insert 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous index 92b5ed01f..f1d562e4c 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous @@ -6,122 +6,106 @@ Username: user-integration-same-new-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-same-new-password" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): PAM Error Message: The password is the same as the old one -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-same-new-password" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same index 607b65445..69f1d8285 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same @@ -6,147 +6,123 @@ Username: user-integration-wrong-confirmation ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-wrong-confirmation" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Broker selection (use 'r' to go back) == -1 - local -2 - ExampleBroker -Select broker: 2 -Insert 'r' to cancel the request and go back +== Provider selection (enter 'r' to go back) == + 1. local + 2. ExampleBroker +Choose your provider: 2 +Enter 'r' to cancel the request and go back Gimme your password: -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM Error Message: Password entries don't match -Insert 'r' to cancel the request and go back -Enter your new password: -Repeat the previously inserted password or insert 'r' to cancel the request and go back -Enter your new password: +Enter your new password (or enter 'r' to go back): +Confirm password (or enter 'r' to go back): PAM ChangeAuthTok() for user "user-integration-wrong-confirmation" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/internal/adapter/nativemodel.go b/pam/internal/adapter/nativemodel.go index 36419fde6..43af00b94 100644 --- a/pam/internal/adapter/nativemodel.go +++ b/pam/internal/adapter/nativemodel.go @@ -377,12 +377,12 @@ type choicePair struct { func (m nativeModel) promptForChoice(title string, choices []choicePair, prompt string) (string, error) { if m.canGoBack() { - title = fmt.Sprintf("%s (use '%s' to go back)", title, nativeCancelKey) + title = fmt.Sprintf("%s (enter '%s' to go back)", title, nativeCancelKey) } msg := fmt.Sprintf("== %s ==\n", title) for i, choice := range choices { - msg += fmt.Sprintf("%d - %s\n", i+1, choice.label) + msg += fmt.Sprintf(" %d. %s\n", i+1, choice.label) } msg += prompt @@ -453,14 +453,14 @@ func (m nativeModel) brokerSelection() tea.Cmd { choices = append(choices, choicePair{id: b.Id, label: b.Name}) } - id, err := m.promptForChoice("Broker selection", choices, "Select broker") + id, err := m.promptForChoice("Provider selection", choices, "Choose your provider") if errors.Is(err, errGoBack) { return sendEvent(nativeGoBack{}) } if err != nil { return sendEvent(pamError{ status: pam.ErrSystem, - msg: fmt.Sprintf("broker selection error: %v", err), + msg: fmt.Sprintf("Provider selection error: %v", err), }) } return sendEvent(brokerSelected{brokerID: id}) @@ -472,8 +472,8 @@ func (m nativeModel) authModeSelection() tea.Cmd { choices = append(choices, choicePair{id: am.Id, label: am.Label}) } - id, err := m.promptForChoice("Authentication mode selection", choices, - "Select authentication mode") + id, err := m.promptForChoice("Authentication method selection", choices, + "Choose your authentication method") if errors.Is(err, errGoBack) { return sendEvent(nativeGoBack{}) } @@ -483,7 +483,7 @@ func (m nativeModel) authModeSelection() tea.Cmd { if err != nil { return sendEvent(pamError{ status: pam.ErrSystem, - msg: fmt.Sprintf("broker selection error: %v", err), + msg: fmt.Sprintf("Authentication method selection error: %v", err), }) } @@ -526,7 +526,7 @@ func (m nativeModel) startChallenge() tea.Cmd { func (m nativeModel) handleFormChallenge(hasWait bool) tea.Cmd { if buttonLabel := m.uiLayout.GetButton(); buttonLabel != "" { - authMode := "selected authentication mode" + authMode := "chosen authentication method" authModeIdx := slices.IndexFunc(m.authModes, func(mode *authd.GAMResponse_AuthenticationMode) bool { return mode.Id == m.selectedAuthMode }) @@ -540,7 +540,7 @@ func (m nativeModel) handleFormChallenge(hasWait bool) tea.Cmd { choices = append(choices, choicePair{id: "button", label: buttonLabel}) } - id, err := m.promptForChoice(authMode, choices, "Select action") + id, err := m.promptForChoice(authMode, choices, "Choose action") if errors.Is(err, errGoBack) { return sendEvent(nativeGoBack{}) } @@ -573,14 +573,14 @@ func (m nativeModel) handleFormChallenge(hasWait bool) tea.Cmd { } } - instructions := "Insert '%[1]s' to cancel the request and go back" + instructions := "Enter '%[1]s' to cancel the request and go back" if hasWait { // Duplicating some contents here, as it will be better for translators once we've them - instructions = "Leave the input field empty to wait for other authentication method " + - "or insert '%[1]s' to go back" + instructions = "Leave the input field empty to wait for the alternative authentication method " + + "or enter '%[1]s' to go back" if m.uiLayout.GetEntry() == "" { - instructions = "Leave the input field empty to wait for the authentication method " + - "or insert '%[1]s' to go back" + instructions = "Press Enter to wait for authentication " + + "or enter '%[1]s' to go back" } } @@ -715,7 +715,7 @@ func (m nativeModel) handleQrCode() tea.Cmd { choices = append(choices, choicePair{id: "button", label: buttonLabel}) } - id, err := m.promptForChoice("Qr Code authentication", choices, "Select action") + id, err := m.promptForChoice("Qr Code authentication", choices, "Choose action") if errors.Is(err, errGoBack) { return sendEvent(nativeGoBack{}) } @@ -768,7 +768,7 @@ func (m nativeModel) handleNewPassword() tea.Cmd { choices = append(choices, choicePair{id: "button", label: buttonLabel}) } - id, err := m.promptForChoice("Password Update", choices, "Select action") + id, err := m.promptForChoice("Password Update", choices, "Choose action") if errors.Is(err, errGoBack) { return sendEvent(nativeGoBack{}) } @@ -789,19 +789,14 @@ func (m nativeModel) handleNewPassword() tea.Cmd { } func (m nativeModel) newPasswordChallenge(previousChallenge *string) tea.Cmd { - if previousChallenge == nil { - if cmd := maybeSendPamError(m.sendInfo("Insert '%[1]s' to cancel the request and go back", - nativeCancelKey)); cmd != nil { - return cmd - } - } else { - if cmd := maybeSendPamError(m.sendInfo("Repeat the previously inserted password or insert '%[1]s' to cancel the request and go back", - nativeCancelKey)); cmd != nil { - return cmd - } + challengeLabel := fmt.Sprintf("%[1]s (or enter '%[2]s' to go back)", + m.uiLayout.GetLabel(), nativeCancelKey) + if previousChallenge != nil { + challengeLabel = fmt.Sprintf("Confirm password (or enter '%[1]s' to go back)", + nativeCancelKey) } - challenge, err := m.promptForChallenge(m.uiLayout.GetLabel()) + challenge, err := m.promptForChallenge(challengeLabel) if errors.Is(err, errGoBack) { return sendEvent(nativeGoBack{}) } From 4344e8f5a00e39723c1be5908354cf4b5e51d645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 5 Nov 2024 17:33:22 +0100 Subject: [PATCH 2/6] pam/nativemodel: Error if broker does not provide a valid prompt label We were trying to fix the broker behavior here, but it's something that was done only by the native UI and it's not really something used anywhere. So instead just error in case this happens, since we expect to have defined labels here. In case we will ever require to have a fallback string, this should be done at general level and not just at PAM level. --- pam/internal/adapter/nativemodel.go | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/pam/internal/adapter/nativemodel.go b/pam/internal/adapter/nativemodel.go index 43af00b94..790a2d6db 100644 --- a/pam/internal/adapter/nativemodel.go +++ b/pam/internal/adapter/nativemodel.go @@ -559,18 +559,11 @@ func (m nativeModel) handleFormChallenge(hasWait bool) tea.Cmd { if m.uiLayout.Label != nil { prompt, _ = strings.CutSuffix(*m.uiLayout.Label, ":") } - if prompt == "" { - switch m.uiLayout.GetEntry() { - case "digits": - fallthrough - case "digits_password": - prompt = "PIN" - case "chars": - prompt = "Value" - case "chars_password": - prompt = "Password" - } + return sendEvent(pamError{ + status: pam.ErrSystem, + msg: fmt.Sprintf("No label provided for entry %q", m.uiLayout.GetEntry()), + }) } instructions := "Enter '%[1]s' to cancel the request and go back" From 9d621ecc54d611aa408274e45d9686005872026e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 5 Nov 2024 18:47:59 +0100 Subject: [PATCH 3/6] pam/nativemodel: Use named actions for going back Make it clearer where a "go back" action will lead the user to. --- ...uthenticate_user_and_accept_password_reset | 65 ++- ...uthenticate_user_and_add_it_to_local_group | 14 +- ...authenticate_user_and_offer_password_reset | 24 +- ..._and_reset_password_while_enforcing_policy | 36 +- .../golden/authenticate_user_on_ssh_service | 6 +- ...service_with_custom_name_and_auth_info_env | 6 +- ...ervice_with_custom_name_and_connection_env | 6 +- .../golden/authenticate_user_successfully | 14 +- ...nticate_user_successfully_with_preset_user | 6 +- .../authenticate_user_switching_auth_mode | 549 ++++++++++-------- ...uthenticate_user_switching_to_local_broker | 66 +-- .../authenticate_user_switching_username | 28 +- ...thenticate_user_with_form_mode_with_button | 66 +-- .../golden/authenticate_user_with_mfa | 195 ++++--- ..._and_reset_password_while_enforcing_policy | 248 ++++---- .../golden/authenticate_user_with_qr_code | 98 ++-- .../authenticate_user_with_qr_code_in_a_tty | 98 ++-- ...nticate_user_with_qr_code_in_a_tty_session | 98 ++-- .../authenticate_user_with_qr_code_in_polkit | 98 ++-- .../authenticate_user_with_qr_code_in_screen | 98 ++-- .../authenticate_user_with_qr_code_in_ssh | 98 ++-- ...ate_with_warnings_on_unsupported_arguments | 14 +- ...eny_authentication_if_max_attempts_reached | 66 +-- ...wpassword_does_not_match_required_criteria | 150 ++--- ...deny_authentication_if_user_does_not_exist | 6 +- ...user_does_not_exist_and_matches_cancel_key | 14 +- .../exit_authd_if_local_broker_is_selected | 6 +- .../golden/exit_authd_if_user_sigints | 14 +- ...revent_preset_user_from_switching_username | 36 +- .../remember_last_successful_broker_and_mode | 114 ++-- .../golden/change_passwd_after_mfa_auth | 302 +++++----- ...successfully_and_authenticate_with_new_one | 82 +-- .../exit_authd_if_local_broker_is_selected | 6 +- .../golden/exit_authd_if_user_sigints | 14 +- .../prevent_change_password_if_auth_fails | 66 +-- ...ent_change_password_if_user_does_not_exist | 6 +- ...w_password_does_not_match_quality_criteria | 150 ++--- ...etry_if_new_password_is_rejected_by_broker | 216 +++---- .../retry_if_new_password_is_same_of_previous | 66 +-- ...y_if_password_confirmation_is_not_the_same | 86 +-- pam/internal/adapter/nativemodel.go | 33 +- 41 files changed, 1770 insertions(+), 1594 deletions(-) diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset index 89c66980f..cd3e35c87 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset @@ -3,94 +3,98 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): +Confirm password (or enter 'r' to go back to choose the provider): PAM Authenticate() for user "user-can-reset2" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): +Confirm password (or enter 'r' to go back to choose the provider): PAM Authenticate() for user "user-can-reset2" exited with success PAM AcctMgmt() exited with success > @@ -98,18 +102,19 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): +Confirm password (or enter 'r' to go back to choose the provider): PAM Authenticate() for user "user-can-reset2" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group index d3a2b0a99..f6b9aac77 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group @@ -6,27 +6,27 @@ Username: user-local-groups ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-local-groups" exited with success PAM AcctMgmt() exited with success @@ -34,11 +34,11 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-local-groups" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset index d1c081ff7..4782ab3d6 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset @@ -3,42 +3,42 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 2 @@ -48,13 +48,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 2 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy index 3866d2c03..6d0fc040e 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy @@ -3,65 +3,65 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service index 5c8e78fb2..a597c1cd3 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service @@ -9,7 +9,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -17,7 +17,7 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-service" exited with success PAM AcctMgmt() exited with success @@ -28,7 +28,7 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-service" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env index a791b1288..a4d8cc3dc 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env @@ -9,7 +9,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -17,7 +17,7 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-auth-info" exited with success PAM AcctMgmt() exited with success @@ -28,7 +28,7 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-auth-info" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env index 9ecd12869..c79b73a95 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env @@ -9,7 +9,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -17,7 +17,7 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-connection" exited with success PAM AcctMgmt() exited with success @@ -28,7 +28,7 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-pre-check-ssh-connection" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully index 07c35a22b..cba83df7e 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully @@ -6,27 +6,27 @@ Username: user1 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success @@ -34,11 +34,11 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user index b3313faa5..ac0c0f320 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user @@ -9,7 +9,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -17,7 +17,7 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-simple-preset" exited with success PAM AcctMgmt() exited with success @@ -28,7 +28,7 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-simple-preset" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode index 30b7ee4c1..fca68a40c 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode @@ -6,29 +6,29 @@ Username: user-integration-switch-mode ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -41,13 +41,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -58,18 +58,18 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -80,9 +80,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -95,13 +95,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -112,9 +112,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -124,18 +124,19 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -146,9 +147,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -158,9 +159,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -173,13 +175,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -190,9 +192,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -202,9 +204,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -214,18 +217,19 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -236,9 +240,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -248,9 +252,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -260,9 +265,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -275,13 +281,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -292,9 +298,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -304,9 +310,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -316,9 +323,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -328,18 +336,19 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -350,9 +359,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -362,9 +371,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -374,9 +384,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -386,9 +397,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -401,13 +413,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -418,9 +430,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -430,9 +442,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -442,9 +455,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -454,9 +468,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -466,18 +481,18 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -488,9 +503,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -500,9 +515,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -512,9 +528,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -524,9 +541,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -536,9 +554,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -551,13 +569,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -568,9 +586,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -580,9 +598,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -592,9 +611,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -604,9 +624,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -616,9 +637,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -649,20 +670,20 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -673,9 +694,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -685,9 +706,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -697,9 +719,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -709,9 +732,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -721,9 +745,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -754,11 +778,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -771,13 +795,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -788,9 +812,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -800,9 +824,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -812,9 +837,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -824,9 +850,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -836,9 +863,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -869,11 +896,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -883,20 +910,20 @@ Choose action: r 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -907,9 +934,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -919,9 +946,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -931,9 +959,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -943,9 +972,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -955,9 +985,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -988,11 +1018,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1002,11 +1032,11 @@ Choose action: r 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1019,13 +1049,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1036,9 +1066,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1048,9 +1078,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1060,9 +1091,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1072,9 +1104,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1084,9 +1117,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1117,11 +1150,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1131,11 +1164,11 @@ Choose action: r 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1146,7 +1179,7 @@ Choose action: r 8. Authentication code Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1159,13 +1192,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1176,9 +1209,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1188,9 +1221,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1200,9 +1234,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1212,9 +1247,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1224,9 +1260,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1257,11 +1293,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1271,11 +1307,11 @@ Choose action: r 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1286,7 +1322,7 @@ Choose action: r 8. Authentication code Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1297,7 +1333,7 @@ PAM Error Message: Provided input can't be parsed as integer value 8. Authentication code Choose your authentication method: -1 PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1310,13 +1346,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1327,9 +1363,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1339,9 +1375,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1351,9 +1388,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1363,9 +1401,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1375,9 +1414,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1408,11 +1447,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1422,11 +1461,11 @@ Choose action: r 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1437,7 +1476,7 @@ Choose action: r 8. Authentication code Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1448,7 +1487,7 @@ PAM Error Message: Provided input can't be parsed as integer value 8. Authentication code Choose your authentication method: -1 PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1458,18 +1497,18 @@ PAM Error Message: Invalid entry. Try again or input 'r'. 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1480,9 +1519,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1492,9 +1531,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1504,9 +1544,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1516,9 +1557,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1528,9 +1570,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1561,11 +1603,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1575,11 +1617,11 @@ Choose action: r 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1590,7 +1632,7 @@ Choose action: r 8. Authentication code Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1601,7 +1643,7 @@ PAM Error Message: Provided input can't be parsed as integer value 8. Authentication code Choose your authentication method: -1 PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1611,21 +1653,19 @@ PAM Error Message: Invalid entry. Try again or input 'r'. 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: 4242 PAM Authenticate() for user "user-integration-switch-mode" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1636,9 +1676,9 @@ Gimme your password: 8. Authentication code Choose your authentication method: 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go - back + back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1648,9 +1688,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: 3 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1660,9 +1701,10 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: 4 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1672,9 +1714,10 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 5 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +1… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1684,9 +1727,9 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1717,11 +1760,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1731,11 +1774,11 @@ Choose action: r 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1746,7 +1789,7 @@ Choose action: r 8. Authentication code Choose your authentication method: invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1757,7 +1800,7 @@ PAM Error Message: Provided input can't be parsed as integer value 8. Authentication code Choose your authentication method: -1 PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1767,9 +1810,7 @@ PAM Error Message: Invalid entry. Try again or input 'r'. 7. Use a QR code 8. Authentication code Choose your authentication method: 6 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: 4242 PAM Authenticate() for user "user-integration-switch-mode" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker index 659a0d320..bd4562c5f 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker @@ -3,29 +3,29 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -38,13 +38,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -54,20 +54,20 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: r -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -77,25 +77,25 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: r -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -105,30 +105,30 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: r -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 555 PAM Error Message: Invalid entry. Try again or input 'r'. -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -138,17 +138,17 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: r -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 555 PAM Error Message: Invalid entry. Try again or input 'r'. -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 1 @@ -160,13 +160,13 @@ PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -176,17 +176,17 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: r -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 555 PAM Error Message: Invalid entry. Try again or input 'r'. -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 1 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username index 6dcf6e850..373ef1dbc 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username @@ -6,14 +6,14 @@ Username: user-integration-switch-username ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: r @@ -21,7 +21,7 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: r @@ -29,42 +29,42 @@ Username: user-integration-username-switched ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: r Username: user-integration-username-switched -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: r Username: user-integration-username-switched -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: r Username: user-integration-username-switched -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-username-switched" exited with success PAM AcctMgmt() exited with success @@ -72,16 +72,16 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: r Username: user-integration-username-switched -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-username-switched" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button index a86fd302a..9d53335e0 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button @@ -3,29 +3,29 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -38,13 +38,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -54,20 +54,20 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -77,24 +77,24 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 2 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -104,26 +104,26 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 2 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -133,15 +133,15 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 2 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass00 PAM Authenticate() for user "user-integration-form-w-button" exited with success PAM AcctMgmt() exited with success @@ -149,13 +149,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -165,15 +165,15 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 2 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass00 PAM Authenticate() for user "user-integration-form-w-button" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa index df370990e..73af61381 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa @@ -3,29 +3,29 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -38,13 +38,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -54,18 +54,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -75,20 +75,21 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -98,11 +99,12 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code @@ -110,13 +112,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -126,27 +128,29 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -156,18 +160,20 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code @@ -175,13 +181,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -191,34 +197,37 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 2 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -228,36 +237,40 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 2 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -267,25 +280,29 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 2 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: PAM Authenticate() for user "user-mfa" exited with success PAM AcctMgmt() exited with success @@ -293,13 +310,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -309,25 +326,29 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 2 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: PAM Authenticate() for user "user-mfa" exited with success PAM AcctMgmt() exited with success @@ -335,13 +356,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -351,25 +372,29 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 2 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: PAM Authenticate() for user "user-mfa" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy index a00b5ac88..3f136b8ef 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy @@ -6,289 +6,339 @@ Username: user-mfa-with-reset ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): +Confirm password (or enter 'r' to go back to choose the provider): PAM Authenticate() for user "user-mfa-with-reset" exited with success PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -== Password Update (enter 'r' to go back) == +== Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: 1 -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password fails the dictionary check - it is based on a dictionary word -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider +): +Confirm password (or enter 'r' to go back to choose the provider): PAM Authenticate() for user "user-mfa-with-reset" exited with success PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code index b3163da91..e1cc45bef 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code @@ -10,7 +10,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi @@ -19,9 +19,9 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -38,9 +38,9 @@ Choose your authentication method: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -71,7 +71,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -82,9 +82,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -115,7 +115,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -140,7 +140,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -151,9 +151,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -184,7 +184,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -209,7 +209,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -236,7 +236,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -247,9 +247,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -280,7 +280,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -305,7 +305,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -332,7 +332,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -357,7 +357,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -368,9 +368,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -401,7 +401,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -426,7 +426,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -453,7 +453,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -478,7 +478,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -503,7 +503,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -514,9 +514,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -547,7 +547,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -572,7 +572,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -599,7 +599,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -624,7 +624,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -649,7 +649,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -660,9 +660,9 @@ Choose action: 1 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -693,7 +693,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -718,7 +718,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -745,7 +745,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -770,7 +770,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -795,7 +795,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -809,9 +809,9 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -842,7 +842,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -867,7 +867,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -894,7 +894,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -919,7 +919,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -944,7 +944,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty index 66887dccc..d32171435 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty @@ -10,7 +10,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi @@ -19,9 +19,9 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -38,9 +38,9 @@ Choose your authentication method: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -87,7 +87,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -98,9 +98,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -147,7 +147,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -188,7 +188,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -199,9 +199,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -248,7 +248,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -289,7 +289,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -334,7 +334,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -345,9 +345,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -394,7 +394,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -435,7 +435,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -480,7 +480,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -521,7 +521,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -532,9 +532,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -581,7 +581,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -622,7 +622,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -667,7 +667,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -708,7 +708,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -749,7 +749,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -760,9 +760,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -809,7 +809,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -850,7 +850,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -895,7 +895,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -936,7 +936,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -977,7 +977,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -988,9 +988,9 @@ Choose action: 1 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -1037,7 +1037,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1078,7 +1078,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1123,7 +1123,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1164,7 +1164,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1205,7 +1205,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -1219,9 +1219,9 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -1268,7 +1268,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1309,7 +1309,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1354,7 +1354,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1395,7 +1395,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1436,7 +1436,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session index d57266b1e..89d0ac8bd 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session @@ -10,7 +10,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi @@ -19,9 +19,9 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -38,9 +38,9 @@ Choose your authentication method: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -87,7 +87,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -98,9 +98,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -147,7 +147,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -188,7 +188,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -199,9 +199,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -248,7 +248,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -289,7 +289,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -334,7 +334,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -345,9 +345,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -394,7 +394,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -435,7 +435,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -480,7 +480,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -521,7 +521,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -532,9 +532,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -581,7 +581,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -622,7 +622,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -667,7 +667,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -708,7 +708,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -749,7 +749,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -760,9 +760,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -809,7 +809,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -850,7 +850,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -895,7 +895,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -936,7 +936,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -977,7 +977,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -988,9 +988,9 @@ Choose action: 1 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -1037,7 +1037,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1078,7 +1078,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1123,7 +1123,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1164,7 +1164,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1205,7 +1205,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -1219,9 +1219,9 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -1268,7 +1268,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1309,7 +1309,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1354,7 +1354,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1395,7 +1395,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1436,7 +1436,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit index ccb1c05e8..2fec1956a 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit @@ -10,7 +10,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi @@ -19,9 +19,9 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -38,9 +38,9 @@ Choose your authentication method: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -54,7 +54,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -65,9 +65,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -81,7 +81,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -89,7 +89,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -100,9 +100,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -116,7 +116,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -124,7 +124,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -132,7 +132,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -143,9 +143,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -159,7 +159,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -167,7 +167,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -175,7 +175,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -183,7 +183,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -194,9 +194,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -210,7 +210,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -218,7 +218,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -226,7 +226,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -234,7 +234,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -242,7 +242,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -253,9 +253,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -269,7 +269,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -277,7 +277,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -285,7 +285,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -293,7 +293,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -301,7 +301,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -312,9 +312,9 @@ Choose action: 1 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -328,7 +328,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -336,7 +336,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -344,7 +344,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -352,7 +352,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -360,7 +360,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -374,9 +374,9 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -390,7 +390,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -398,7 +398,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -406,7 +406,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -414,7 +414,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -422,7 +422,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen index 5cae5c222..85235bbd6 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen @@ -10,7 +10,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi @@ -19,9 +19,9 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -38,9 +38,9 @@ Choose your authentication method: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -87,7 +87,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -98,9 +98,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -147,7 +147,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -188,7 +188,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -199,9 +199,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -248,7 +248,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -289,7 +289,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -334,7 +334,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -345,9 +345,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -394,7 +394,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -435,7 +435,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -480,7 +480,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -521,7 +521,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -532,9 +532,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -581,7 +581,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -622,7 +622,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -667,7 +667,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -708,7 +708,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -749,7 +749,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -760,9 +760,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -809,7 +809,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -850,7 +850,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -895,7 +895,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -936,7 +936,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -977,7 +977,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -988,9 +988,9 @@ Choose action: 1 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -1037,7 +1037,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1078,7 +1078,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1123,7 +1123,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1164,7 +1164,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1205,7 +1205,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -1219,9 +1219,9 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -1268,7 +1268,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1309,7 +1309,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1354,7 +1354,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1395,7 +1395,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -1436,7 +1436,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh index 5192cac0c..69ae9788e 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh @@ -10,7 +10,7 @@ Choose your provider: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi @@ -19,9 +19,9 @@ Gimme your password: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -38,9 +38,9 @@ Choose your authentication method: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -54,7 +54,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -65,9 +65,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -81,7 +81,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -89,7 +89,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -100,9 +100,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -116,7 +116,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -124,7 +124,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -132,7 +132,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -143,9 +143,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -159,7 +159,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -167,7 +167,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -175,7 +175,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -183,7 +183,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -194,9 +194,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -210,7 +210,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -218,7 +218,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -226,7 +226,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -234,7 +234,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -242,7 +242,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: @@ -253,9 +253,9 @@ Choose action: 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -269,7 +269,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -277,7 +277,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -285,7 +285,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -293,7 +293,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -301,7 +301,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -312,9 +312,9 @@ Choose action: 1 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -328,7 +328,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -336,7 +336,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -344,7 +344,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -352,7 +352,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -360,7 +360,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 @@ -374,9 +374,9 @@ PAM AcctMgmt() exited with success 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -390,7 +390,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -398,7 +398,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -406,7 +406,7 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -414,7 +414,7 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 2 @@ -422,7 +422,7 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back) == +== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code Choose action: 1 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments index aa7d99b43..26aa7869c 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments @@ -9,7 +9,7 @@ Username: user2 > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: @@ -17,21 +17,21 @@ Choose your provider: > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user2" exited with success PAM AcctMgmt() exited with success @@ -40,11 +40,11 @@ PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user2" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached index 032116d13..cc86945c9 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached @@ -6,105 +6,105 @@ Username: user-integration-max-attempts ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM Authenticate() for user "user-integration-max-attempts" exited with error (PAM exit code: 7) @@ -116,23 +116,23 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM Authenticate() for user "user-integration-max-attempts" exited with error (PAM exit code: 7) diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria index 6b87bb867..b9ea390af 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria @@ -6,197 +6,197 @@ Username: user-needs-reset ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist index cb88fbebe..d3d04f3c3 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist @@ -6,14 +6,14 @@ Username: user-unexistent ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 @@ -26,7 +26,7 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key index a5ba17bd2..22c7a5503 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key @@ -6,27 +6,27 @@ Username: r ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: user not found PAM Authenticate() for user "r" exited with error (PAM exit code: 7): Authentication failure @@ -37,11 +37,11 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: user not found PAM Authenticate() for user "r" exited with error (PAM exit code: 7): Authentication failure diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected index cbed060e4..bfa1b878f 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected @@ -6,14 +6,14 @@ Username: user-local-broker ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 1 @@ -25,7 +25,7 @@ PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 1 diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints index 30dbb42ff..616fbb1e1 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints @@ -6,37 +6,37 @@ Username: user-integration-sigint ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username index 0543a4545..8b0103ffe 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username @@ -25,7 +25,7 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -38,9 +38,9 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -61,9 +61,9 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -88,9 +88,9 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -120,9 +120,9 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -157,9 +157,9 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -183,7 +183,7 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -196,9 +196,9 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -222,7 +222,7 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-pam-preset" exited with success PAM AcctMgmt() exited with success @@ -238,9 +238,9 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -264,7 +264,7 @@ PAM Error Message: Provided input can't be parsed as integer value 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user-integration-pam-preset" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode index 7792d2e61..221498825 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode @@ -6,29 +6,29 @@ Username: user-integration-remember-mode ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -41,13 +41,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -57,20 +57,20 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -80,22 +80,22 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -105,11 +105,11 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success @@ -117,13 +117,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -133,11 +133,11 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success @@ -146,13 +146,13 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -162,11 +162,11 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success @@ -175,13 +175,13 @@ Username: user-integration-remember-mode ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -191,30 +191,30 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -224,32 +224,32 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -259,21 +259,21 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success @@ -281,13 +281,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -297,21 +297,21 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 8 -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (enter 'r' to go back) == +== Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth index b68155627..361ca82c5 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth @@ -6,29 +6,29 @@ Username: user-mfa ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -41,13 +41,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -57,18 +57,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -78,20 +78,21 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -101,11 +102,12 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code @@ -113,13 +115,13 @@ Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -129,27 +131,29 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -159,27 +163,29 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -189,29 +195,32 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -221,33 +230,36 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -257,35 +269,39 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -295,35 +311,39 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -333,36 +353,40 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -372,37 +396,41 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -412,37 +440,41 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -452,40 +484,44 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-mfa" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -495,27 +531,31 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: 1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Plug your fido device and press with your thumb: -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: r -== Authentication method selection (enter 'r' to go back) == +== Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code Choose your authentication method: 1 -Press Enter to wait for authentication or enter 'r' to go back +Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth +od Unlock your phone +33… or accept request on web interface: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-mfa" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one index 412f2c179..0777d4fba 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one @@ -6,76 +6,76 @@ Username: user1 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -83,14 +83,14 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -98,36 +98,36 @@ Username: user1 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success @@ -135,19 +135,19 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected index cb3b70ad9..056354261 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected @@ -6,14 +6,14 @@ Username: user-local-broker ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 1 @@ -25,7 +25,7 @@ PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 1 diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints index ddf1fa97a..b3986c275 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints @@ -6,37 +6,37 @@ Username: user-integration-sigint ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails index 7cced346a..ea9176e47 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails @@ -6,105 +6,105 @@ Username: user-integration-max-attempts ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM ChangeAuthTok() for user "user-integration-max-attempts" exited with error (PAM exit code: 7 @@ -116,23 +116,23 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM ChangeAuthTok() for user "user-integration-max-attempts" exited with error (PAM exit code: 7 diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist index f540d5573..b8a1627b8 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist @@ -6,14 +6,14 @@ Username: user-unexistent ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 @@ -27,7 +27,7 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria index 61294b9f8..1affde8c2 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria @@ -6,197 +6,197 @@ Username: user-integration-bad-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-bad-password" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is shorter than 8 characters -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: No password supplied -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-bad-password" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker index 4a6dcba7e..73eef3a91 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker @@ -6,109 +6,109 @@ Username: user-integration-invalid-new-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -116,17 +116,17 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -134,160 +134,160 @@ Username: user-integration-invalid-new-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: new password does not match criteria: must be 'authd2404' -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous index f1d562e4c..c99579a49 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous @@ -6,106 +6,106 @@ Username: user-integration-same-new-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is the same as the old one -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is the same as the old one -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is the same as the old one -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is the same as the old one -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-same-new-password" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): PAM Error Message: The password is the same as the old one -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-same-new-password" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same index 69f1d8285..e439ae497 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same @@ -6,123 +6,123 @@ Username: user-integration-wrong-confirmation ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-wrong-confirmation" exited with success PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back) == +== Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: 2 -Enter 'r' to cancel the request and go back +Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM Error Message: Password entries don't match -Enter your new password (or enter 'r' to go back): -Confirm password (or enter 'r' to go back): +Enter your new password (or enter 'r' to go back to choose the provider): +Confirm password (or enter 'r' to go back to choose the provider): PAM ChangeAuthTok() for user "user-integration-wrong-confirmation" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/internal/adapter/nativemodel.go b/pam/internal/adapter/nativemodel.go index 790a2d6db..09be4cfaf 100644 --- a/pam/internal/adapter/nativemodel.go +++ b/pam/internal/adapter/nativemodel.go @@ -377,7 +377,8 @@ type choicePair struct { func (m nativeModel) promptForChoice(title string, choices []choicePair, prompt string) (string, error) { if m.canGoBack() { - title = fmt.Sprintf("%s (enter '%s' to go back)", title, nativeCancelKey) + title = fmt.Sprintf("%s (enter '%s' to %s)", title, nativeCancelKey, + m.goBackActionLabel()) } msg := fmt.Sprintf("== %s ==\n", title) @@ -566,18 +567,18 @@ func (m nativeModel) handleFormChallenge(hasWait bool) tea.Cmd { }) } - instructions := "Enter '%[1]s' to cancel the request and go back" + instructions := "Enter '%[1]s' to cancel the request and %[2]s" if hasWait { // Duplicating some contents here, as it will be better for translators once we've them instructions = "Leave the input field empty to wait for the alternative authentication method " + - "or enter '%[1]s' to go back" + "or enter '%[1]s' to %[2]s" if m.uiLayout.GetEntry() == "" { instructions = "Press Enter to wait for authentication " + - "or enter '%[1]s' to go back" + "or enter '%[1]s' to %[2]s" } } - if cmd := maybeSendPamError(m.sendInfo(instructions, nativeCancelKey)); cmd != nil { + if cmd := maybeSendPamError(m.sendInfo(instructions, nativeCancelKey, m.goBackActionLabel())); cmd != nil { return cmd } @@ -782,11 +783,11 @@ func (m nativeModel) handleNewPassword() tea.Cmd { } func (m nativeModel) newPasswordChallenge(previousChallenge *string) tea.Cmd { - challengeLabel := fmt.Sprintf("%[1]s (or enter '%[2]s' to go back)", - m.uiLayout.GetLabel(), nativeCancelKey) + challengeLabel := fmt.Sprintf("%[1]s (or enter '%[2]s' to %[3]s)", + m.uiLayout.GetLabel(), nativeCancelKey, m.goBackActionLabel()) if previousChallenge != nil { - challengeLabel = fmt.Sprintf("Confirm password (or enter '%[1]s' to go back)", - nativeCancelKey) + challengeLabel = fmt.Sprintf("Confirm password (or enter '%[1]s' to %[2]s)", + nativeCancelKey, m.goBackActionLabel()) } challenge, err := m.promptForChallenge(challengeLabel) @@ -849,6 +850,20 @@ func (m nativeModel) previousStage() pam_proto.Stage { return proto.Stage_userSelection } +func (m nativeModel) goBackActionLabel() string { + switch m.previousStage() { + case proto.Stage_authModeSelection: + return "go back to select the authentication method" + case proto.Stage_brokerSelection: + return "go back to choose the provider" + case proto.Stage_challenge: + return "go back to authentication" + case proto.Stage_userSelection: + return "go back to user selection" + } + return "go back" +} + func sendAuthWaitCommand() tea.Cmd { return sendEvent(isAuthenticatedRequested{ item: &authd.IARequest_AuthenticationData_Wait{Wait: "true"}, From d20203c0ec666a82aaa3effcba2bc6cc93c920ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 5 Nov 2024 21:56:26 +0100 Subject: [PATCH 4/6] pam/nativemodel: Support multi-line input field for PAM input requests Use a behavior that is more similar to what we've in the CLI interface so that when an input is requested the `>` char is used. --- ...uthenticate_user_and_accept_password_reset | 54 +- ...uthenticate_user_and_add_it_to_local_group | 13 +- ...authenticate_user_and_offer_password_reset | 24 +- ..._and_reset_password_while_enforcing_policy | 28 +- .../golden/authenticate_user_on_ssh_service | 13 +- ...service_with_custom_name_and_auth_info_env | 13 +- ...ervice_with_custom_name_and_connection_env | 13 +- .../golden/authenticate_user_successfully | 13 +- ...nticate_user_successfully_with_preset_user | 13 +- .../authenticate_user_switching_auth_mode | 707 +++++++++++------- ...uthenticate_user_switching_to_local_broker | 83 +- .../authenticate_user_switching_username | 32 +- ...thenticate_user_with_form_mode_with_button | 77 +- .../golden/authenticate_user_with_mfa | 198 +++-- ..._and_reset_password_while_enforcing_policy | 163 ++-- .../golden/authenticate_user_with_qr_code | 148 ++-- .../authenticate_user_with_qr_code_in_a_tty | 150 ++-- ...nticate_user_with_qr_code_in_a_tty_session | 150 ++-- .../authenticate_user_with_qr_code_in_polkit | 146 ++-- .../authenticate_user_with_qr_code_in_screen | 150 ++-- .../authenticate_user_with_qr_code_in_ssh | 146 ++-- ...ate_with_warnings_on_unsupported_arguments | 13 +- ...eny_authentication_if_max_attempts_reached | 49 +- ...wpassword_does_not_match_required_criteria | 97 ++- ...deny_authentication_if_user_does_not_exist | 7 +- ...user_does_not_exist_and_matches_cancel_key | 13 +- .../exit_authd_if_local_broker_is_selected | 7 +- .../golden/exit_authd_if_user_sigints | 13 +- ...revent_preset_user_from_switching_username | 124 ++- .../remember_last_successful_broker_and_mode | 137 +++- .../golden/change_passwd_after_mfa_auth | 267 +++++-- ...successfully_and_authenticate_with_new_one | 61 +- .../exit_authd_if_local_broker_is_selected | 7 +- .../golden/exit_authd_if_user_sigints | 13 +- .../prevent_change_password_if_auth_fails | 49 +- ...ent_change_password_if_user_does_not_exist | 7 +- ...w_password_does_not_match_quality_criteria | 97 ++- ...etry_if_new_password_is_rejected_by_broker | 140 +++- .../retry_if_new_password_is_same_of_previous | 49 +- ...y_if_password_confirmation_is_not_the_same | 61 +- pam/internal/adapter/nativemodel.go | 29 +- 41 files changed, 2514 insertions(+), 1060 deletions(-) diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset index cd3e35c87..91d92d232 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset @@ -7,75 +7,95 @@ Username: user-can-reset2 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Authenticate() for user "user-can-reset2" exited with success PAM AcctMgmt() exited with success > @@ -85,16 +105,21 @@ Username: user-can-reset2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Authenticate() for user "user-can-reset2" exited with success PAM AcctMgmt() exited with success > @@ -105,16 +130,21 @@ Username: user-can-reset2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Authenticate() for user "user-can-reset2" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group index f6b9aac77..4bb913b09 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group @@ -10,24 +10,29 @@ Username: user-local-groups 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-local-groups" exited with success PAM AcctMgmt() exited with success > @@ -37,9 +42,11 @@ Username: user-local-groups == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-local-groups" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset index 4782ab3d6..62e9ff6f0 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset @@ -7,41 +7,50 @@ Username: user-can-reset 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 2 +Choose action: +> 2 PAM Authenticate() for user "user-can-reset" exited with success PAM AcctMgmt() exited with success > @@ -51,13 +60,16 @@ Username: user-can-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 2 +Choose action: +> 2 PAM Authenticate() for user "user-can-reset" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy index 6d0fc040e..294b39a67 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy @@ -7,47 +7,61 @@ Username: user-needs-reset 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > @@ -57,11 +71,15 @@ Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service index a597c1cd3..64f091fb0 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service @@ -3,22 +3,27 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-pre-check-ssh-service" exited with success PAM AcctMgmt() exited with success > @@ -27,9 +32,11 @@ PAM AcctMgmt() exited with success == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-pre-check-ssh-service" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env index a4d8cc3dc..0ef4469c5 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env @@ -3,22 +3,27 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-pre-check-ssh-auth-info" exited with success PAM AcctMgmt() exited with success > @@ -27,9 +32,11 @@ PAM AcctMgmt() exited with success == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-pre-check-ssh-auth-info" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env index c79b73a95..54c79e32c 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env @@ -3,22 +3,27 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-pre-check-ssh-connection" exited with success PAM AcctMgmt() exited with success > @@ -27,9 +32,11 @@ PAM AcctMgmt() exited with success == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-pre-check-ssh-connection" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully index cba83df7e..605be6760 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully @@ -10,24 +10,29 @@ Username: user1 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success > @@ -37,9 +42,11 @@ Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user index ac0c0f320..5f7cd95ac 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user @@ -3,22 +3,27 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-simple-preset" exited with success PAM AcctMgmt() exited with success > @@ -27,9 +32,11 @@ PAM AcctMgmt() exited with success == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-simple-preset" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode index fca68a40c..b47a5bdf7 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode @@ -10,24 +10,29 @@ Username: user-integration-switch-mode 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -38,15 +43,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -56,19 +64,23 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -78,10 +90,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -92,15 +106,18 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -110,10 +127,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -123,19 +142,23 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -145,10 +168,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -158,10 +183,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -172,15 +199,18 @@ Plug your fido device and press with your thumb: r 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -190,10 +220,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -203,10 +235,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -216,19 +250,23 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -238,10 +276,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -251,10 +291,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -264,10 +306,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -278,15 +322,18 @@ Unlock your phone +33… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -296,10 +343,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -309,10 +358,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -322,10 +373,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -335,19 +388,23 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -357,10 +414,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -370,10 +429,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -383,10 +444,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -396,10 +459,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -410,15 +475,18 @@ Unlock your phone +1… or accept request on web interface: r 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -428,10 +496,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -441,10 +511,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -454,10 +526,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -467,10 +541,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -480,18 +556,22 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -501,10 +581,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -514,10 +596,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -527,10 +611,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -540,10 +626,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -553,9 +641,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -566,15 +656,18 @@ Enter your pin code: r 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -584,10 +677,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -597,10 +692,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -610,10 +707,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -623,10 +722,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -636,9 +737,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -648,7 +751,8 @@ Enter your pin code: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -674,15 +778,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -692,10 +799,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -705,10 +814,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -718,10 +829,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -731,10 +844,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -744,9 +859,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -756,7 +873,8 @@ Enter your pin code: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -781,7 +899,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -792,15 +911,18 @@ Choose action: r 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -810,10 +932,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -823,10 +947,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -836,10 +962,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -849,10 +977,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -862,9 +992,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -874,7 +1006,8 @@ Enter your pin code: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -899,7 +1032,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -909,20 +1043,24 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -932,10 +1070,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -945,10 +1085,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -958,10 +1100,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -971,10 +1115,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -984,9 +1130,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -996,7 +1144,8 @@ Enter your pin code: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1021,7 +1170,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1031,11 +1181,13 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1046,15 +1198,18 @@ Choose action: r 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1064,10 +1219,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1077,10 +1234,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1090,10 +1249,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1103,10 +1264,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1116,9 +1279,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1128,7 +1293,8 @@ Enter your pin code: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1153,7 +1319,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1163,11 +1330,13 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1177,7 +1346,8 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: invalid-selection +Choose your authentication method: +> invalid-selection PAM Error Message: Provided input can't be parsed as integer value == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication @@ -1186,18 +1356,17 @@ PAM Error Message: Provided input can't be parsed as integer value 4. Use your phone +33… 5. Use your phone +1… 6. Pin code - 7. Use a QR code - 8. Authentication code -Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1207,10 +1376,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1220,10 +1391,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1233,10 +1406,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1246,10 +1421,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1259,9 +1436,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1271,7 +1450,8 @@ Enter your pin code: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1296,7 +1476,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1306,11 +1487,13 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1320,7 +1503,8 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: invalid-selection +Choose your authentication method: +> invalid-selection PAM Error Message: Provided input can't be parsed as integer value == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication @@ -1329,29 +1513,17 @@ PAM Error Message: Provided input can't be parsed as integer value 4. Use your phone +33… 5. Use your phone +1… 6. Pin code - 7. Use a QR code - 8. Authentication code -Choose your authentication method: -1 -PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication method selection (enter 'r' to go back to choose the provider) == - 1. Password authentication - 2. Send URL to user-integration-switch-mode@gmail.com - 3. Use your fido device foo - 4. Use your phone +33… - 5. Use your phone +1… - 6. Pin code - 7. Use a QR code - 8. Authentication code -Choose your authentication method: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1361,10 +1533,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1374,10 +1548,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1387,10 +1563,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1400,10 +1578,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1413,9 +1593,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1425,7 +1607,8 @@ Enter your pin code: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1450,7 +1633,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1460,11 +1644,13 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1474,7 +1660,8 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: invalid-selection +Choose your authentication method: +> invalid-selection PAM Error Message: Provided input can't be parsed as integer value == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication @@ -1483,31 +1670,17 @@ PAM Error Message: Provided input can't be parsed as integer value 4. Use your phone +33… 5. Use your phone +1… 6. Pin code - 7. Use a QR code - 8. Authentication code -Choose your authentication method: -1 -PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication method selection (enter 'r' to go back to choose the provider) == - 1. Password authentication - 2. Send URL to user-integration-switch-mode@gmail.com - 3. Use your fido device foo - 4. Use your phone +33… - 5. Use your phone +1… - 6. Pin code - 7. Use a QR code - 8. Authentication code -Choose your authentication method: 6 -Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1517,10 +1690,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1530,10 +1705,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1543,10 +1720,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1556,10 +1735,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1569,9 +1750,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1581,7 +1764,8 @@ Enter your pin code: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1606,7 +1790,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1616,11 +1801,13 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1630,7 +1817,8 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: invalid-selection +Choose your authentication method: +> invalid-selection PAM Error Message: Provided input can't be parsed as integer value == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication @@ -1639,32 +1827,17 @@ PAM Error Message: Provided input can't be parsed as integer value 4. Use your phone +33… 5. Use your phone +1… 6. Pin code - 7. Use a QR code - 8. Authentication code -Choose your authentication method: -1 -PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication method selection (enter 'r' to go back to choose the provider) == - 1. Password authentication - 2. Send URL to user-integration-switch-mode@gmail.com - 3. Use your fido device foo - 4. Use your phone +33… - 5. Use your phone +1… - 6. Pin code - 7. Use a QR code - 8. Authentication code -Choose your authentication method: 6 -Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: 4242 -PAM Authenticate() for user "user-integration-switch-mode" exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1674,10 +1847,12 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method -Click on the link received at user-integration-switch-mode@gmail.com or enter the code: r +Click on the link received at user-integration-switch-mode@gmail.com or enter the code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1687,10 +1862,12 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 3 +Choose your authentication method: +> 3 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1700,10 +1877,12 @@ Plug your fido device and press with your thumb: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 4 +Choose your authentication method: +> 4 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1713,10 +1892,12 @@ Unlock your phone +33… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 5 +Choose your authentication method: +> 5 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +1… or accept request on web interface: r +Unlock your phone +1… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1726,9 +1907,11 @@ Unlock your phone +1… or accept request on web interface: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 6 +Choose your authentication method: +> 6 Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: r +Enter your pin code: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1738,7 +1921,8 @@ Enter your pin code: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1763,7 +1947,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1773,11 +1958,13 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: r +Choose action: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1787,7 +1974,8 @@ Choose action: r 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: invalid-selection +Choose your authentication method: +> invalid-selection PAM Error Message: Provided input can't be parsed as integer value == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication @@ -1796,21 +1984,4 @@ PAM Error Message: Provided input can't be parsed as integer value 4. Use your phone +33… 5. Use your phone +1… 6. Pin code - 7. Use a QR code - 8. Authentication code -Choose your authentication method: -1 -PAM Error Message: Invalid entry. Try again or input 'r'. -== Authentication method selection (enter 'r' to go back to choose the provider) == - 1. Password authentication - 2. Send URL to user-integration-switch-mode@gmail.com - 3. Use your fido device foo - 4. Use your phone +33… - 5. Use your phone +1… - 6. Pin code - 7. Use a QR code - 8. Authentication code -Choose your authentication method: 6 -Enter 'r' to cancel the request and go back to select the authentication method -Enter your pin code: 4242 -PAM Authenticate() for user "user-integration-switch-mode" exited with success ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker index bd4562c5f..0f8aef863 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker @@ -7,24 +7,29 @@ Username: user-integration-switch-broker 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com @@ -35,15 +40,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com @@ -53,20 +61,24 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com @@ -76,25 +88,30 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: invalid-ID +Choose your provider: +> invalid-ID PAM Error Message: Provided input can't be parsed as integer value == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com @@ -104,30 +121,36 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: invalid-ID +Choose your provider: +> invalid-ID PAM Error Message: Provided input can't be parsed as integer value == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 555 +Choose your provider: +> 555 PAM Error Message: Invalid entry. Try again or input 'r'. == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com @@ -137,35 +160,37 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: invalid-ID +Choose your provider: +> invalid-ID PAM Error Message: Provided input can't be parsed as integer value == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 555 +Choose your provider: +> 555 PAM Error Message: Invalid entry. Try again or input 'r'. == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 1 +Choose your provider: +> 1 auth=incomplete -PAM Authenticate() for user "user-integration-switch-broker" exited with error (PAM exit code: 2 -5): The return value should be ignored by PAM dispatch -PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate abort -> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com @@ -175,24 +200,24 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: invalid-ID +Choose your provider: +> invalid-ID PAM Error Message: Provided input can't be parsed as integer value == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 555 +Choose your provider: +> 555 PAM Error Message: Invalid entry. Try again or input 'r'. == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 1 +Choose your provider: +> 1 auth=incomplete -PAM Authenticate() for user "user-integration-switch-broker" exited with error (PAM exit code: 2 -5): The return value should be ignored by PAM dispatch -PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate abort -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username index 373ef1dbc..00e2e9b19 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username @@ -10,13 +10,15 @@ Username: user-integration-switch-username 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -24,7 +26,8 @@ Username: user-integration-switch-username == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r Username: user-integration-username-switched ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -32,40 +35,48 @@ Username: user-integration-switch-username == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r Username: user-integration-username-switched == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r Username: user-integration-username-switched == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r Username: user-integration-username-switched == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-username-switched" exited with success PAM AcctMgmt() exited with success > @@ -75,14 +86,17 @@ Username: user-integration-switch-username == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r Username: user-integration-username-switched == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user-integration-username-switched" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button index 9d53335e0..b66020743 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button @@ -7,24 +7,29 @@ Username: user-integration-form-w-button 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com @@ -35,15 +40,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com @@ -53,20 +61,24 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com @@ -76,24 +88,29 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 2 +Choose action: +> 2 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com @@ -103,26 +120,30 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 2 +Choose action: +> 2 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com @@ -132,29 +153,30 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 2 +Choose action: +> 2 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass00 -PAM Authenticate() for user "user-integration-form-w-button" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com @@ -164,18 +186,17 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 2 +Choose action: +> 2 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass00 -PAM Authenticate() for user "user-integration-form-w-button" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa index 73af61381..6893b7242 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa @@ -7,24 +7,29 @@ Username: user-mfa 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -35,15 +40,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -53,18 +61,22 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -74,21 +86,26 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -98,26 +115,32 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -127,29 +150,36 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -159,34 +189,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -196,37 +234,44 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 2 +Choose your authentication method: +> 2 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -236,40 +281,44 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 2 -Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth -od -Unlock your phone +33… or accept request on web interface: +Choose your authentication method: +> 2 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -279,43 +328,44 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 2 -Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth -od -Unlock your phone +33… or accept request on web interface: +Choose your authentication method: +> 2 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: -PAM Authenticate() for user "user-mfa" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -325,43 +375,44 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 2 -Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth -od -Unlock your phone +33… or accept request on web interface: +Choose your authentication method: +> 2 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: -PAM Authenticate() for user "user-mfa" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -371,32 +422,31 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 2 -Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth -od -Unlock your phone +33… or accept request on web interface: +Choose your authentication method: +> 2 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: -PAM Authenticate() for user "user-mfa" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy index 3f136b8ef..bdcd65656 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy @@ -10,335 +10,382 @@ Username: user-mfa-with-reset 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -Confirm password (or enter 'r' to go back to choose the provider): -PAM Authenticate() for user "user-mfa-with-reset" exited with success -PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> == Password Update (enter 'r' to go back to choose the provider) == 1. Proceed with password update 2. Skip -Choose action: 1 +Choose action: +> 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ): +> PAM Error Message: The password is the same as the old one Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -PAM Error Message: The password is shorter than 8 characters -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -Confirm password (or enter 'r' to go back to choose the provider): -PAM Authenticate() for user "user-mfa-with-reset" exited with success -PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code index e1cc45bef..bf00270f5 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code @@ -3,24 +3,29 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com @@ -31,15 +36,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com @@ -49,7 +57,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -75,15 +84,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com @@ -93,7 +105,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -118,7 +131,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -144,15 +158,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com @@ -162,7 +179,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -187,7 +205,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -212,7 +231,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -240,15 +260,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com @@ -258,7 +281,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -283,7 +307,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -308,7 +333,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -335,7 +361,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -361,15 +388,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com @@ -379,7 +409,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -404,7 +435,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -429,7 +461,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -456,7 +489,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -481,7 +515,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -513,9 +548,11 @@ Choose action: == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com @@ -525,7 +562,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -550,7 +588,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -575,7 +614,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -602,7 +642,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -627,7 +668,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -652,16 +694,18 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 1 +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com @@ -671,7 +715,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -696,7 +741,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -721,7 +767,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -748,7 +795,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -773,7 +821,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -798,19 +847,18 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 1 -PAM Authenticate() for user "user-integration-qr-code" exited with success -PAM AcctMgmt() exited with success -> +Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com @@ -820,7 +868,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -845,7 +894,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -870,7 +920,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -897,7 +948,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -922,7 +974,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -947,8 +1000,5 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 1 -PAM Authenticate() for user "user-integration-qr-code" exited with success -PAM AcctMgmt() exited with success -> +Choose action: ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty index d32171435..33c5ea796 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty @@ -3,24 +3,29 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com @@ -31,15 +36,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com @@ -49,7 +57,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -91,15 +100,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com @@ -109,7 +121,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -150,7 +163,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -192,15 +206,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com @@ -210,7 +227,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -251,7 +269,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -292,7 +311,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -338,15 +358,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com @@ -356,7 +379,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -397,7 +421,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -438,7 +463,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -483,7 +509,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -525,15 +552,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com @@ -543,7 +573,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -584,7 +615,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -625,7 +657,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -670,7 +703,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -711,7 +745,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -751,17 +786,17 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com @@ -771,7 +806,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -812,7 +848,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -853,7 +890,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -898,7 +936,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -939,7 +978,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -979,17 +1019,17 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com @@ -999,7 +1039,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1040,7 +1081,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1081,7 +1123,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1126,7 +1169,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1167,7 +1211,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1207,20 +1252,17 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: 1 -PAM Authenticate() for user "user-integration-qr-code-tty" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com @@ -1230,7 +1272,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1271,7 +1314,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1312,7 +1356,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1357,7 +1402,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1398,7 +1444,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1438,9 +1485,4 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: 1 -PAM Authenticate() for user "user-integration-qr-code-tty" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session index 89d0ac8bd..d62409b71 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session @@ -3,24 +3,29 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com @@ -31,15 +36,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com @@ -49,7 +57,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -91,15 +100,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com @@ -109,7 +121,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -150,7 +163,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -192,15 +206,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com @@ -210,7 +227,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -251,7 +269,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -292,7 +311,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -338,15 +358,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com @@ -356,7 +379,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -397,7 +421,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -438,7 +463,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -483,7 +509,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -525,15 +552,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com @@ -543,7 +573,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -584,7 +615,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -625,7 +657,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -670,7 +703,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -711,7 +745,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -751,17 +786,17 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com @@ -771,7 +806,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -812,7 +848,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -853,7 +890,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -898,7 +936,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -939,7 +978,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -979,17 +1019,17 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com @@ -999,7 +1039,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1040,7 +1081,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1081,7 +1123,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1126,7 +1169,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1167,7 +1211,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1207,20 +1252,17 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: 1 -PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com @@ -1230,7 +1272,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1271,7 +1314,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1312,7 +1356,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1357,7 +1402,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1398,7 +1444,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1438,9 +1485,4 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: 1 -PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit index 2fec1956a..ae5c76034 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit @@ -3,24 +3,29 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com @@ -31,15 +36,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com @@ -49,7 +57,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -58,15 +67,18 @@ https://ubuntu.com 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com @@ -76,7 +88,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -84,7 +97,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -93,15 +107,18 @@ https://ubuntu.fr/ 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com @@ -111,7 +128,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -119,7 +137,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -127,7 +146,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -136,15 +156,18 @@ https://ubuntuforum-br.org/ 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com @@ -154,7 +177,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -162,7 +186,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -170,7 +195,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -178,7 +204,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -187,15 +214,18 @@ https://www.ubuntu-it.org/ 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com @@ -205,7 +235,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -213,7 +244,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -221,7 +253,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -229,7 +262,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -237,7 +271,8 @@ https://www.ubuntu-it.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 @@ -246,15 +281,18 @@ https://ubuntu.com 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com @@ -264,7 +302,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -272,7 +311,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -280,7 +320,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -288,7 +329,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -296,7 +338,8 @@ https://www.ubuntu-it.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 @@ -304,16 +347,19 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 1 +Choose action: +> 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com @@ -323,7 +369,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -331,7 +378,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -339,7 +387,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -347,7 +396,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -355,7 +405,8 @@ https://www.ubuntu-it.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 @@ -363,7 +414,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 1 +Choose action: +> 1 PAM Authenticate() for user "user-integration-qr-code-polkit" exited with success PAM AcctMgmt() exited with success > @@ -373,9 +425,11 @@ PAM AcctMgmt() exited with success == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com @@ -385,7 +439,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -393,7 +448,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -401,7 +457,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -409,7 +466,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -417,7 +475,8 @@ https://www.ubuntu-it.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 @@ -425,7 +484,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 1 +Choose action: +> 1 PAM Authenticate() for user "user-integration-qr-code-polkit" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen index 85235bbd6..8b87406c0 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen @@ -3,24 +3,29 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com @@ -31,15 +36,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com @@ -49,7 +57,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -91,15 +100,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com @@ -109,7 +121,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -150,7 +163,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -192,15 +206,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com @@ -210,7 +227,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -251,7 +269,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -292,7 +311,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -338,15 +358,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com @@ -356,7 +379,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -397,7 +421,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -438,7 +463,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -483,7 +509,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -525,15 +552,18 @@ Scan the qrcode or enter the code in the login page 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com @@ -543,7 +573,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -584,7 +615,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -625,7 +657,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -670,7 +703,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -711,7 +745,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -751,17 +786,17 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com @@ -771,7 +806,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -812,7 +848,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -853,7 +890,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -898,7 +936,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -939,7 +978,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -979,17 +1019,17 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com @@ -999,7 +1039,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1040,7 +1081,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1081,7 +1123,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1126,7 +1169,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1167,7 +1211,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1207,20 +1252,17 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: 1 -PAM Authenticate() for user "user-integration-qr-code-screen" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com @@ -1230,7 +1272,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1271,7 +1314,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1312,7 +1356,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1357,7 +1402,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1398,7 +1444,8 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1438,9 +1485,4 @@ Scan the qrcode or enter the code in the login page == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: 1 -PAM Authenticate() for user "user-integration-qr-code-screen" exited with success -PAM AcctMgmt() exited with success -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh index 69ae9788e..d0d4ed6b5 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh @@ -3,24 +3,29 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com @@ -31,15 +36,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com @@ -49,7 +57,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -58,15 +67,18 @@ https://ubuntu.com 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com @@ -76,7 +88,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -84,7 +97,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -93,15 +107,18 @@ https://ubuntu.fr/ 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com @@ -111,7 +128,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -119,7 +137,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -127,7 +146,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -136,15 +156,18 @@ https://ubuntuforum-br.org/ 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com @@ -154,7 +177,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -162,7 +186,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -170,7 +195,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -178,7 +204,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -187,15 +214,18 @@ https://www.ubuntu-it.org/ 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com @@ -205,7 +235,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -213,7 +244,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -221,7 +253,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -229,7 +262,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -237,7 +271,8 @@ https://www.ubuntu-it.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 @@ -246,15 +281,18 @@ https://ubuntu.com 1. Wait for the QR code scan result 2. Regenerate code Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com @@ -264,7 +302,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -272,7 +311,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -280,7 +320,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -288,7 +329,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -296,7 +338,8 @@ https://www.ubuntu-it.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 @@ -304,16 +347,19 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 1 +Choose action: +> 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com @@ -323,7 +369,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -331,7 +378,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -339,7 +387,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -347,7 +396,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -355,7 +405,8 @@ https://www.ubuntu-it.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 @@ -363,7 +414,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 1 +Choose action: +> 1 PAM Authenticate() for user "user-integration-pre-check-ssh-service-qr-code" exited with success PAM AcctMgmt() exited with success > @@ -373,9 +425,11 @@ PAM AcctMgmt() exited with success == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com @@ -385,7 +439,8 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 7 +Choose your authentication method: +> 7 Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 @@ -393,7 +448,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 @@ -401,7 +457,8 @@ https://ubuntu.fr/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 @@ -409,7 +466,8 @@ https://ubuntuforum-br.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 @@ -417,7 +475,8 @@ https://www.ubuntu-it.org/ == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 2 +Choose action: +> 2 Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 @@ -425,7 +484,8 @@ https://ubuntu.com == Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code -Choose action: 1 +Choose action: +> 1 PAM Authenticate() for user "user-integration-pre-check-ssh-service-qr-code" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments index 26aa7869c..b58373509 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments @@ -13,6 +13,7 @@ Username: user2 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar @@ -20,9 +21,11 @@ Username: user2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar @@ -30,9 +33,11 @@ Username: user2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user2" exited with success PAM AcctMgmt() exited with success > @@ -43,9 +48,11 @@ Username: user2 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user2" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached index cc86945c9..d724ab680 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached @@ -10,135 +10,166 @@ Username: user-integration-max-attempts 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM Authenticate() for user "user-integration-max-attempts" exited with error (PAM exit code: 7) : Authentication failure acct=incomplete PAM AcctMgmt() exited with error (PAM exit code: 25): The return value should be ignored by PAM dispatch -> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM Authenticate() for user "user-integration-max-attempts" exited with error (PAM exit code: 7) : Authentication failure acct=incomplete PAM AcctMgmt() exited with error (PAM exit code: 25): The return value should be ignored by PAM dispatch -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria index b9ea390af..3379633ea 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria @@ -10,168 +10,233 @@ Username: user-needs-reset 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > @@ -181,22 +246,32 @@ Username: user-needs-reset == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Authenticate() for user "user-needs-reset" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist index d3d04f3c3..a423318e7 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist @@ -10,13 +10,15 @@ Username: user-unexistent 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist PAM Authenticate() for user "user-unexistent" exited with error (PAM exit code: 4): System error acct=incomplete @@ -29,7 +31,8 @@ Username: user-unexistent == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist PAM Authenticate() for user "user-unexistent" exited with error (PAM exit code: 4): System error acct=incomplete diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key index 22c7a5503..50f043741 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key @@ -10,24 +10,29 @@ Username: r 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: user not found PAM Authenticate() for user "r" exited with error (PAM exit code: 7): Authentication failure acct=incomplete @@ -40,9 +45,11 @@ Username: r == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: user not found PAM Authenticate() for user "r" exited with error (PAM exit code: 7): Authentication failure acct=incomplete diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected index bfa1b878f..6d8bd341d 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected @@ -10,13 +10,15 @@ Username: user-local-broker 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 1 +Choose your provider: +> 1 auth=incomplete PAM Authenticate() for user "user-local-broker" exited with error (PAM exit code: 25): The retur n value should be ignored by PAM dispatch @@ -28,7 +30,8 @@ Username: user-local-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 1 +Choose your provider: +> 1 auth=incomplete PAM Authenticate() for user "user-local-broker" exited with error (PAM exit code: 25): The retur n value should be ignored by PAM dispatch diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints index 616fbb1e1..9c38bbf41 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints @@ -10,33 +10,40 @@ Username: user-integration-sigint 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username index 8b0103ffe..10ef75371 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username @@ -3,43 +3,52 @@ 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com @@ -50,19 +59,23 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com @@ -72,24 +85,29 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection == 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com @@ -99,29 +117,35 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com @@ -131,34 +155,41 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com @@ -168,36 +199,44 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com @@ -207,39 +246,44 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -PAM Authenticate() for user "user-integration-pam-preset" exited with success -PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com @@ -249,24 +293,26 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: r +Choose your authentication method: +> r == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: r +Choose your provider: +> r PAM Error Message: Provided input can't be parsed as integer value == Provider selection == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: -PAM Authenticate() for user "user-integration-pam-preset" exited with success -PAM AcctMgmt() exited with success > ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode index 221498825..543d5d160 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode @@ -10,24 +10,29 @@ Username: user-integration-remember-mode 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -38,15 +43,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -56,20 +64,24 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -79,22 +91,27 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -104,13 +121,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass0 +Enter your one time credential: +> temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > @@ -120,9 +140,11 @@ Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -132,13 +154,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass0 +Enter your one time credential: +> temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -149,9 +174,11 @@ Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -161,13 +188,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass0 +Enter your one time credential: +> temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -178,9 +208,11 @@ Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -190,13 +222,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass0 +Enter your one time credential: +> temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -205,15 +240,18 @@ Username: user-integration-remember-mode 1. Proceed with Authentication code 2. Resend sms Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -223,13 +261,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass0 +Enter your one time credential: +> temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -237,18 +278,22 @@ Username: user-integration-remember-mode == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -258,13 +303,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass0 +Enter your one time credential: +> temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -272,9 +320,11 @@ Username: user-integration-remember-mode == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass0 +Enter your one time credential: +> temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > @@ -284,9 +334,11 @@ Username: user-integration-remember-mode == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com @@ -296,13 +348,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 8 +Choose your authentication method: +> 8 == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass0 +Enter your one time credential: +> temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -310,9 +365,11 @@ Username: user-integration-remember-mode == Authentication code (enter 'r' to go back to select the authentication method) == 1. Proceed with Authentication code 2. Resend sms -Choose action: 1 +Choose action: +> 1 Enter 'r' to cancel the request and go back to select the authentication method -Enter your one time credential: temporary pass0 +Enter your one time credential: +> temporary pass0 PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth index 361ca82c5..a77134931 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth @@ -10,24 +10,29 @@ Username: user-mfa 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -38,15 +43,18 @@ Gimme your password: 7. Use a QR code 8. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -56,18 +64,22 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -77,21 +89,26 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -101,26 +118,32 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -130,29 +153,36 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -162,29 +192,36 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -194,32 +231,40 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -229,36 +274,45 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -268,39 +322,49 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -310,39 +374,49 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -352,40 +426,51 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -395,41 +480,53 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -439,41 +536,53 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -483,32 +592,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-mfa" exited with success PAM AcctMgmt() exited with success > @@ -518,9 +637,11 @@ Username: user-mfa == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Password authentication 2. Send URL to user-mfa@gmail.com @@ -530,32 +651,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Plug your fido device and press with your thumb: r +Plug your fido device and press with your thumb: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: +> Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od -Unlock your phone +33… or accept request on web interface: r +Unlock your phone +33… or accept request on web interface: +> r == Authentication method selection (enter 'r' to go back to choose the provider) == 1. Use your phone +33… 2. Authentication code -Choose your authentication method: 1 +Choose your authentication method: +> 1 Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-mfa" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one index 0777d4fba..a36186963 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one @@ -10,58 +10,76 @@ Username: user1 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > @@ -71,11 +89,15 @@ Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -86,11 +108,15 @@ Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -101,34 +127,44 @@ Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success > @@ -138,17 +174,22 @@ Username: user1 == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Authenticate() for user "user1" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected index 056354261..8f9c23ac9 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected @@ -10,13 +10,15 @@ Username: user-local-broker 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 1 +Choose your provider: +> 1 chauthtok=incomplete PAM ChangeAuthTok() for user "user-local-broker" exited with error (PAM exit code: 25): The retu rn value should be ignored by PAM dispatch @@ -28,7 +30,8 @@ Username: user-local-broker == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 1 +Choose your provider: +> 1 chauthtok=incomplete PAM ChangeAuthTok() for user "user-local-broker" exited with error (PAM exit code: 25): The retu rn value should be ignored by PAM dispatch diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints index b3986c275..557bfd839 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints @@ -10,33 +10,40 @@ Username: user-integration-sigint 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails index ea9176e47..b0e7ba166 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails @@ -10,135 +10,166 @@ Username: user-integration-max-attempts 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM ChangeAuthTok() for user "user-integration-max-attempts" exited with error (PAM exit code: 7 ): Authentication failure acct=incomplete PAM AcctMgmt() exited with error (PAM exit code: 25): The return value should be ignored by PAM dispatch -> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> PAM Error Message: invalid password 'wrongpass', should be 'goodpass' PAM ChangeAuthTok() for user "user-integration-max-attempts" exited with error (PAM exit code: 7 ): Authentication failure acct=incomplete PAM AcctMgmt() exited with error (PAM exit code: 25): The return value should be ignored by PAM dispatch -> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist index b8a1627b8..5ab63649e 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist @@ -10,13 +10,15 @@ Username: user-unexistent 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist PAM ChangeAuthTok() for user "user-unexistent" exited with error (PAM exit code: 4): System erro r @@ -30,7 +32,8 @@ Username: user-unexistent == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist PAM ChangeAuthTok() for user "user-unexistent" exited with error (PAM exit code: 4): System erro r diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria index 1affde8c2..d5b5f4f25 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria @@ -10,168 +10,233 @@ Username: user-integration-bad-password 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-bad-password" exited with success PAM AcctMgmt() exited with success > @@ -181,22 +246,32 @@ Username: user-integration-bad-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is shorter than 8 characters Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password fails the dictionary check - it is too simplistic/systematic Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: No password supplied Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-bad-password" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker index 73eef3a91..c1c06d98e 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker @@ -10,88 +10,119 @@ Username: user-integration-invalid-new-password 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > @@ -101,14 +132,20 @@ Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -119,14 +156,20 @@ Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true @@ -137,157 +180,222 @@ Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: new password does not match criteria: must be 'authd2404' Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with success PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous index c99579a49..75035d532 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous @@ -10,86 +10,114 @@ Username: user-integration-same-new-password 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is the same as the old one Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is the same as the old one Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is the same as the old one Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is the same as the old one Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-same-new-password" exited with success PAM AcctMgmt() exited with success > @@ -99,13 +127,18 @@ Username: user-integration-same-new-password == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> PAM Error Message: The password is the same as the old one Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-same-new-password" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same index e439ae497..2fb84d919 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same @@ -10,102 +10,139 @@ Username: user-integration-wrong-confirmation 1. local 2. ExampleBroker Choose your provider: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-wrong-confirmation" exited with success PAM AcctMgmt() exited with success > @@ -115,14 +152,20 @@ Username: user-integration-wrong-confirmation == Provider selection (enter 'r' to go back to user selection) == 1. local 2. ExampleBroker -Choose your provider: 2 +Choose your provider: +> 2 Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: +> Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM Error Message: Password entries don't match Enter your new password (or enter 'r' to go back to choose the provider): +> Confirm password (or enter 'r' to go back to choose the provider): +> PAM ChangeAuthTok() for user "user-integration-wrong-confirmation" exited with success PAM AcctMgmt() exited with success > diff --git a/pam/internal/adapter/nativemodel.go b/pam/internal/adapter/nativemodel.go index 09be4cfaf..8cf7061d6 100644 --- a/pam/internal/adapter/nativemodel.go +++ b/pam/internal/adapter/nativemodel.go @@ -43,6 +43,13 @@ const ( polkitServiceName = "polkit-1" ) +type inputPromptStyle int + +const ( + inputPromptStyleInline inputPromptStyle = iota + inputPromptStyleMultiLine +) + // nativeChangeStage is the internal event to notify that a stage change has happened. type nativeChangeStage ChangeStage @@ -313,8 +320,18 @@ func (m nativeModel) checkForPromptReplyValidity(reply string) error { return nil } -func (m nativeModel) promptForInput(style pam.Style, prompt string) (string, error) { - resp, err := m.pamMTx.StartStringConvf(style, "%s: ", prompt) +func (m nativeModel) promptForInput(style pam.Style, inputStyle inputPromptStyle, prompt string) (string, error) { + format := "%s" + if IsSSHSession(m.pamMTx) || m.isTerminalTty() { + switch inputStyle { + case inputPromptStyleInline: + format = "%s: " + case inputPromptStyleMultiLine: + format = "%s:\n> " + } + } + + resp, err := m.pamMTx.StartStringConvf(style, format, prompt) if err != nil { return "", err } @@ -322,7 +339,7 @@ func (m nativeModel) promptForInput(style pam.Style, prompt string) (string, err } func (m nativeModel) promptForNumericInput(style pam.Style, prompt string) (int, error) { - out, err := m.promptForInput(style, prompt) + out, err := m.promptForInput(style, inputPromptStyleMultiLine, prompt) if err != nil { return -1, err } @@ -417,7 +434,7 @@ func (m nativeModel) startAsyncOp(cmd func() tea.Cmd) (nativeModel, tea.Cmd) { } func (m nativeModel) userSelection() tea.Cmd { - user, err := m.promptForInput(pam.PromptEchoOn, "Username") + user, err := m.promptForInput(pam.PromptEchoOn, inputPromptStyleInline, "Username") if errors.Is(err, errEmptyResponse) { return sendEvent(nativeUserSelection{}) } @@ -604,9 +621,9 @@ func (m nativeModel) handleFormChallenge(hasWait bool) tea.Cmd { func (m nativeModel) promptForChallenge(prompt string) (string, error) { switch m.uiLayout.GetEntry() { case "chars", "": - return m.promptForInput(pam.PromptEchoOn, prompt) + return m.promptForInput(pam.PromptEchoOn, inputPromptStyleMultiLine, prompt) case "chars_password": - return m.promptForInput(pam.PromptEchoOff, prompt) + return m.promptForInput(pam.PromptEchoOff, inputPromptStyleMultiLine, prompt) case "digits": return m.promptForNumericInputAsString(pam.PromptEchoOn, prompt) case "digits_password": From 79f21be649ffec33469579b1353f42b04c962bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 5 Nov 2024 23:59:27 +0100 Subject: [PATCH 5/6] pam/native-module: Detach the instructions from the prompt In native modules the prompt should be only the text shown on the field, while the rest of information should be exposed as PAM info messages. Do this to ensure that both all PAM implementations we care about (ssh and polkit) keep a reasonable UI. --- pam/integration-tests/native_test.go | 25 +- ...uthenticate_user_and_accept_password_reset | 49 +- ...uthenticate_user_and_add_it_to_local_group | 15 +- ...authenticate_user_and_offer_password_reset | 28 +- ..._and_reset_password_while_enforcing_policy | 23 +- .../golden/authenticate_user_on_ssh_service | 3 + ...service_with_custom_name_and_auth_info_env | 3 + ...ervice_with_custom_name_and_connection_env | 3 + .../golden/authenticate_user_successfully | 15 +- ...nticate_user_successfully_with_preset_user | 3 + .../authenticate_user_switching_auth_mode | 589 +++++++++++++----- ...uthenticate_user_switching_to_local_broker | 93 ++- .../authenticate_user_switching_username | 36 +- ...thenticate_user_with_form_mode_with_button | 82 ++- .../golden/authenticate_user_with_mfa | 162 +++-- ..._and_reset_password_while_enforcing_policy | 137 ++-- .../golden/authenticate_user_with_qr_code | 147 +++-- .../authenticate_user_with_qr_code_in_a_tty | 145 +++-- ...nticate_user_with_qr_code_in_a_tty_session | 145 +++-- .../authenticate_user_with_qr_code_in_polkit | 127 ++-- .../authenticate_user_with_qr_code_in_screen | 145 +++-- .../authenticate_user_with_qr_code_in_ssh | 127 ++-- ...ate_with_warnings_on_unsupported_arguments | 15 +- ...eny_authentication_if_max_attempts_reached | 51 +- ...wpassword_does_not_match_required_criteria | 47 +- ...deny_authentication_if_user_does_not_exist | 9 +- ...user_does_not_exist_and_matches_cancel_key | 15 +- .../exit_authd_if_local_broker_is_selected | 9 +- .../golden/exit_authd_if_user_sigints | 15 +- ...revent_preset_user_from_switching_username | 92 +-- .../remember_last_successful_broker_and_mode | 127 ++-- .../golden/change_passwd_after_mfa_auth | 226 +++++-- ...successfully_and_authenticate_with_new_one | 46 +- .../exit_authd_if_local_broker_is_selected | 9 +- .../golden/exit_authd_if_user_sigints | 15 +- .../prevent_change_password_if_auth_fails | 51 +- ...ent_change_password_if_user_does_not_exist | 9 +- ...w_password_does_not_match_quality_criteria | 47 +- ...etry_if_new_password_is_rejected_by_broker | 74 ++- .../retry_if_new_password_is_same_of_previous | 35 +- ...y_if_password_confirmation_is_not_the_same | 39 +- pam/internal/adapter/nativemodel.go | 59 +- 42 files changed, 2176 insertions(+), 916 deletions(-) diff --git a/pam/integration-tests/native_test.go b/pam/integration-tests/native_test.go index 7494a3352..c25426be5 100644 --- a/pam/integration-tests/native_test.go +++ b/pam/integration-tests/native_test.go @@ -34,10 +34,11 @@ func TestNativeAuthenticate(t *testing.T) { }, "Authenticate user with mfa": { tape: "mfa_auth", - tapeSettings: []tapeSetting{{vhsHeight, 700}}, + tapeSettings: []tapeSetting{{vhsHeight, 800}}, }, "Authenticate user with form mode with button": { - tape: "form_with_button", + tape: "form_with_button", + tapeSettings: []tapeSetting{{vhsHeight, 600}}, }, "Authenticate user with qr code": { tape: "qr_code", @@ -46,7 +47,7 @@ func TestNativeAuthenticate(t *testing.T) { }, "Authenticate user with qr code in a TTY": { tape: "qr_code", - tapeSettings: []tapeSetting{{vhsHeight, 3500}}, + tapeSettings: []tapeSetting{{vhsHeight, 3700}}, clientOptions: clientOptions{ PamUser: "user-integration-qr-code-tty", Term: "linux", @@ -54,7 +55,7 @@ func TestNativeAuthenticate(t *testing.T) { }, "Authenticate user with qr code in a TTY session": { tape: "qr_code", - tapeSettings: []tapeSetting{{vhsHeight, 3500}}, + tapeSettings: []tapeSetting{{vhsHeight, 3700}}, clientOptions: clientOptions{ PamUser: "user-integration-qr-code-tty-session", Term: "xterm-256color", SessionType: "tty", @@ -62,7 +63,7 @@ func TestNativeAuthenticate(t *testing.T) { }, "Authenticate user with qr code in screen": { tape: "qr_code", - tapeSettings: []tapeSetting{{vhsHeight, 3500}}, + tapeSettings: []tapeSetting{{vhsHeight, 3700}}, clientOptions: clientOptions{ PamUser: "user-integration-qr-code-screen", Term: "screen", @@ -98,14 +99,14 @@ func TestNativeAuthenticate(t *testing.T) { }, "Authenticate user switching auth mode": { tape: "switch_auth_mode", - tapeSettings: []tapeSetting{{vhsHeight, 2350}}, + tapeSettings: []tapeSetting{{vhsHeight, 3000}}, }, "Authenticate user switching username": { tape: "switch_username", }, "Authenticate user switching to local broker": { tape: "switch_local_broker", - tapeSettings: []tapeSetting{{vhsHeight, 600}}, + tapeSettings: []tapeSetting{{vhsHeight, 700}}, }, "Authenticate user and add it to local group": { tape: "local_group", @@ -152,7 +153,8 @@ func TestNativeAuthenticate(t *testing.T) { }, "Deny authentication if max attempts reached": { - tape: "max_attempts", + tape: "max_attempts", + tapeSettings: []tapeSetting{{vhsHeight, 700}}, }, "Deny authentication if user does not exist": { tape: "unexistent_user", @@ -167,7 +169,7 @@ func TestNativeAuthenticate(t *testing.T) { "Prevent preset user from switching username": { tape: "switch_preset_username", - tapeSettings: []tapeSetting{{vhsHeight, 700}}, + tapeSettings: []tapeSetting{{vhsHeight, 800}}, clientOptions: clientOptions{PamUser: "user-integration-pam-preset"}, }, @@ -247,7 +249,7 @@ func TestNativeChangeAuthTok(t *testing.T) { }, "Change passwd after MFA auth": { tape: "passwd_mfa", - tapeSettings: []tapeSetting{{vhsHeight, 900}}, + tapeSettings: []tapeSetting{{vhsHeight, 1100}}, }, "Retry if new password is rejected by broker": { @@ -266,7 +268,8 @@ func TestNativeChangeAuthTok(t *testing.T) { }, "Prevent change password if auth fails": { - tape: "passwd_auth_fail", + tape: "passwd_auth_fail", + tapeSettings: []tapeSetting{{vhsHeight, 700}}, }, "Prevent change password if user does not exist": { tape: "passwd_unexistent_user", diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset index 91d92d232..d90aa15e5 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_accept_password_reset @@ -3,52 +3,61 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -57,17 +66,20 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -78,17 +90,20 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -102,17 +117,20 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -127,17 +145,20 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group index 4bb913b09..ba78013d7 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_add_it_to_local_group @@ -6,30 +6,35 @@ Username: user-local-groups ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -39,11 +44,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-groups -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset index 62e9ff6f0..e3e0ada7f 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_offer_password_reset @@ -3,52 +3,61 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 2 PAM Authenticate() for user "user-can-reset" exited with success @@ -57,17 +66,20 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-can-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 2 PAM Authenticate() for user "user-can-reset" exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy index 294b39a67..d770e5361 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_and_reset_password_while_enforcing_policy @@ -3,30 +3,35 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -35,11 +40,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -50,11 +57,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -68,11 +77,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service index 64f091fb0..5d6b87a73 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service @@ -11,6 +11,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -21,6 +22,7 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -34,6 +36,7 @@ PAM AcctMgmt() exited with success 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env index 0ef4469c5..e1b10a009 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_auth_info_env @@ -11,6 +11,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -21,6 +22,7 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -34,6 +36,7 @@ PAM AcctMgmt() exited with success 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env index 54c79e32c..0a94a5209 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_on_ssh_service_with_custom_name_and_connection_env @@ -11,6 +11,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -21,6 +22,7 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -34,6 +36,7 @@ PAM AcctMgmt() exited with success 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully index 605be6760..9372a2848 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully @@ -6,30 +6,35 @@ Username: user1 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -39,11 +44,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user index 5f7cd95ac..04860f266 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_successfully_with_preset_user @@ -11,6 +11,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -21,6 +22,7 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -34,6 +36,7 @@ PAM AcctMgmt() exited with success 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode index b47a5bdf7..4f65d4fb1 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode @@ -6,34 +6,39 @@ Username: user-integration-switch-mode ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -42,20 +47,23 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -64,8 +72,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: @@ -73,15 +83,17 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -90,13 +102,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -105,20 +119,23 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -127,13 +144,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -142,8 +161,10 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: @@ -151,15 +172,17 @@ Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -168,13 +191,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -183,13 +208,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -198,20 +225,23 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -220,13 +250,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -235,13 +267,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -250,8 +284,10 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: @@ -259,15 +295,17 @@ Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -276,13 +314,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -291,13 +331,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -306,13 +348,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -321,20 +365,23 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -343,13 +390,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -358,13 +407,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -373,13 +424,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -388,8 +441,10 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: @@ -397,15 +452,17 @@ Unlock your phone +1… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -414,13 +471,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -429,13 +488,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -444,13 +505,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -459,13 +522,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -474,20 +539,23 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -496,13 +564,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -511,13 +581,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -526,13 +598,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -541,13 +615,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -556,23 +632,27 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -581,13 +661,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -596,13 +678,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -611,13 +695,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -626,13 +712,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -641,12 +729,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -655,20 +745,23 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -677,13 +770,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -692,13 +787,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -707,13 +804,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -722,13 +821,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -737,12 +838,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -751,8 +854,10 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -774,23 +879,25 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -799,13 +906,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -814,13 +923,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -829,13 +940,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -844,13 +957,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -859,12 +974,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -873,8 +990,10 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -896,12 +1015,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -910,20 +1029,23 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -932,13 +1054,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -947,13 +1071,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -962,13 +1088,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -977,13 +1105,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -992,12 +1122,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1006,8 +1138,10 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1029,12 +1163,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1043,25 +1177,29 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1070,13 +1208,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1085,13 +1225,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1100,13 +1242,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1115,13 +1259,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1130,12 +1276,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1144,8 +1292,10 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1167,12 +1317,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1181,14 +1331,16 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1197,20 +1349,23 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1219,13 +1374,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1234,13 +1391,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1249,13 +1408,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1264,13 +1425,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1279,12 +1442,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1293,8 +1458,10 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1316,12 +1483,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1330,14 +1497,16 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1346,28 +1515,26 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back to choose the provider) == - 1. Password authentication - 2. Send URL to user-integration-switch-mode@gmail.com - 3. Use your fido device foo - 4. Use your phone +33… - 5. Use your phone +1… - 6. Pin code +Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1376,13 +1543,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1391,13 +1560,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1406,13 +1577,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1421,13 +1594,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1436,12 +1611,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1450,8 +1627,10 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1473,12 +1652,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1487,14 +1666,16 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1503,28 +1684,39 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back to choose the provider) == +Choose your authentication method: +> -1 +PAM Error Message: Invalid entry. Try again or input 'r'. +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo 4. Use your phone +33… 5. Use your phone +1… 6. Pin code + 7. Use a QR code + 8. Authentication code +Or enter 'r' to go back to choose the provider +Choose your authentication method: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1533,13 +1725,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1548,13 +1742,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1563,13 +1759,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1578,13 +1776,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1593,12 +1793,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1607,8 +1809,10 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1630,12 +1834,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1644,14 +1848,16 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1660,28 +1866,43 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back to choose the provider) == +Choose your authentication method: +> -1 +PAM Error Message: Invalid entry. Try again or input 'r'. +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo 4. Use your phone +33… 5. Use your phone +1… 6. Pin code + 7. Use a QR code + 8. Authentication code +Or enter 'r' to go back to choose the provider +Choose your authentication method: +> 6 +== Pin code == +Enter 'r' to cancel the request and go back to select the authentication method +Enter your pin code: +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1690,13 +1911,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1705,13 +1928,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1720,13 +1945,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1735,13 +1962,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1750,12 +1979,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1764,8 +1995,10 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1787,12 +2020,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1801,14 +2034,16 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1817,28 +2052,46 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back to choose the provider) == +Choose your authentication method: +> -1 +PAM Error Message: Invalid entry. Try again or input 'r'. +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo 4. Use your phone +33… 5. Use your phone +1… 6. Pin code + 7. Use a QR code + 8. Authentication code +Or enter 'r' to go back to choose the provider +Choose your authentication method: +> 6 +== Pin code == +Enter 'r' to cancel the request and go back to select the authentication method +Enter your pin code: +> 4242 +PAM Authenticate() for user "user-integration-switch-mode" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1847,13 +2100,15 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 +== Send URL to user-integration-switch-mode@gmail.com == Leave the input field empty to wait for the alternative authentication method or enter 'r' to go back to select the authentication method Click on the link received at user-integration-switch-mode@gmail.com or enter the code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1862,13 +2117,15 @@ Click on the link received at user-integration-switch-mode@gmail.com or enter th 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 3 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1877,13 +2134,15 @@ Plug your fido device and press with your thumb: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 4 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1892,13 +2151,15 @@ Unlock your phone +33… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 5 +== Use your phone +1… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +1… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1907,12 +2168,14 @@ Unlock your phone +1… or accept request on web interface: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 6 +== Pin code == Enter 'r' to cancel the request and go back to select the authentication method Enter your pin code: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1921,8 +2184,10 @@ Enter your pin code: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -1944,12 +2209,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1958,14 +2223,16 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo @@ -1974,14 +2241,30 @@ Choose action: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection PAM Error Message: Provided input can't be parsed as integer value -== Authentication method selection (enter 'r' to go back to choose the provider) == +Choose your authentication method: +> -1 +PAM Error Message: Invalid entry. Try again or input 'r'. +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com 3. Use your fido device foo 4. Use your phone +33… 5. Use your phone +1… 6. Pin code + 7. Use a QR code + 8. Authentication code +Or enter 'r' to go back to choose the provider +Choose your authentication method: +> 6 +== Pin code == +Enter 'r' to cancel the request and go back to select the authentication method +Enter your pin code: +> 4242 +PAM Authenticate() for user "user-integration-switch-mode" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker index 0f8aef863..2d7cba8f7 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker @@ -3,34 +3,39 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -39,20 +44,23 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -61,25 +69,29 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -88,31 +100,32 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Provider selection (enter 'r' to go back to user selection) == - 1. local - 2. ExampleBroker Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -121,37 +134,39 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Provider selection (enter 'r' to go back to user selection) == - 1. local - 2. ExampleBroker Choose your provider: > 555 PAM Error Message: Invalid entry. Try again or input 'r'. -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -160,38 +175,44 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Provider selection (enter 'r' to go back to user selection) == - 1. local - 2. ExampleBroker Choose your provider: > 555 PAM Error Message: Invalid entry. Try again or input 'r'. -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 1 auth=incomplete +PAM Authenticate() for user "user-integration-switch-broker" exited with error (PAM exit code: 2 +5): The return value should be ignored by PAM dispatch +PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate abort +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-broker@gmail.com 3. Use your fido device foo @@ -200,24 +221,28 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > invalid-ID PAM Error Message: Provided input can't be parsed as integer value -== Provider selection (enter 'r' to go back to user selection) == - 1. local - 2. ExampleBroker Choose your provider: > 555 PAM Error Message: Invalid entry. Try again or input 'r'. -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 1 auth=incomplete +PAM Authenticate() for user "user-integration-switch-broker" exited with error (PAM exit code: 2 +5): The return value should be ignored by PAM dispatch +PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate abort +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username index 00e2e9b19..1477738fd 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_username @@ -6,74 +6,85 @@ Username: user-integration-switch-username ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > r Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > r Username: user-integration-username-switched ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > r Username: user-integration-username-switched -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > r Username: user-integration-username-switched -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > r Username: user-integration-username-switched -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -83,17 +94,20 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-switch-username -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > r Username: user-integration-username-switched -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button index b66020743..93b0d455d 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_form_mode_with_button @@ -3,34 +3,39 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -39,20 +44,23 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -61,25 +69,29 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -88,30 +100,35 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 2 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -120,31 +137,38 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 2 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method +Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -153,31 +177,38 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 2 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method +Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-form-w-button -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-form-w-button@gmail.com 3. Use your fido device foo @@ -186,17 +217,22 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 2 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method +Enter your one time credential: ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa index 6893b7242..67371c1af 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa @@ -3,34 +3,39 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -39,20 +44,23 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -61,23 +69,27 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -86,11 +98,14 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: @@ -98,15 +113,17 @@ Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -115,33 +132,39 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -150,21 +173,26 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: @@ -172,15 +200,17 @@ Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -189,43 +219,51 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -234,45 +272,51 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 -Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth -od ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -281,45 +325,51 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 -Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth -od ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -328,45 +378,51 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 -Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth -od ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -375,45 +431,51 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 -Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth -od ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -422,31 +484,35 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 2 -Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth -od ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy index bdcd65656..546d5cd8e 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_mfa_and_reset_password_while_enforcing_policy @@ -6,52 +6,61 @@ Username: user-mfa-with-reset ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: @@ -59,41 +68,49 @@ Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -102,21 +119,25 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -129,21 +150,25 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -155,26 +180,28 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho > PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -186,28 +213,28 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho > PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -> -PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -219,28 +246,28 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho > PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -> -PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -252,28 +279,28 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho > PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -> -PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -285,28 +312,28 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho > PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -> -PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -318,28 +345,28 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho > PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -> -PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -351,28 +378,28 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho > PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -> -PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-mfa-with-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > -== Password Update (enter 'r' to go back to choose the provider) == +== Password Update == 1. Proceed with password update 2. Skip +Or enter 'r' to go back to choose the provider Choose action: > 1 Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider @@ -384,8 +411,4 @@ Enter your new password (3 days until mandatory) (or enter 'r' to go back to cho > PAM Error Message: The password fails the dictionary check - it is based on a dictionary word Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider -): -> -PAM Error Message: The password is the same as the old one -Enter your new password (3 days until mandatory) (or enter 'r' to go back to choose the provider ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code index bf00270f5..fc1de4a7a 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code @@ -12,6 +12,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -23,10 +24,11 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -35,6 +37,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── @@ -45,10 +48,11 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -57,8 +61,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -80,9 +86,9 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -93,10 +99,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -105,8 +112,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -128,11 +137,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -154,9 +164,9 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -167,10 +177,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -179,8 +190,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -202,11 +215,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -228,11 +242,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -256,9 +271,9 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -269,10 +284,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -281,8 +297,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -304,11 +322,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -330,11 +349,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -358,11 +378,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -384,9 +405,9 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -397,10 +418,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -409,8 +431,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -432,11 +456,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -458,11 +483,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -486,11 +512,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -512,11 +539,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -535,13 +563,6 @@ Scan the qrcode or enter the code in the login page ████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████ █████████████████████████████████ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ - https://ubuntu.com - 1341 - -== Qr Code authentication (enter 'r' to go back to select the authentication method) == - 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -550,10 +571,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -562,8 +584,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -585,11 +609,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -611,11 +636,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -639,11 +665,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -665,11 +692,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -688,13 +716,6 @@ Scan the qrcode or enter the code in the login page ████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████ █████████████████████████████████ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ - https://ubuntu.com - 1341 - -== Qr Code authentication (enter 'r' to go back to select the authentication method) == - 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -703,10 +724,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -715,8 +737,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -738,11 +762,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -764,11 +789,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -792,11 +818,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -818,11 +845,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -841,13 +869,6 @@ Scan the qrcode or enter the code in the login page ████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████ █████████████████████████████████ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ - https://ubuntu.com - 1341 - -== Qr Code authentication (enter 'r' to go back to select the authentication method) == - 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -856,10 +877,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code@gmail.com 3. Use your fido device foo @@ -868,8 +890,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -891,11 +915,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -917,11 +942,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████████ █████████████████████████████████████ @@ -945,11 +971,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -971,11 +998,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page █████████████████████████████████ █████████████████████████████████ @@ -994,11 +1022,4 @@ Scan the qrcode or enter the code in the login page ████▄▄▄▄▄▄▄█▄█▄█▄█▄████▄▄▄▄▄▄████ █████████████████████████████████ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ - https://ubuntu.com - 1341 - -== Qr Code authentication (enter 'r' to go back to select the authentication method) == - 1. Wait for the QR code scan result - 2. Regenerate code -Choose action: ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty index 33c5ea796..fbb1064a5 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty @@ -12,6 +12,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -23,10 +24,11 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -35,6 +37,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── @@ -45,10 +48,11 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -57,8 +61,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -96,9 +102,9 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -109,10 +115,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -121,8 +128,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -160,11 +169,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -202,9 +212,9 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -215,10 +225,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -227,8 +238,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -266,11 +279,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -308,11 +322,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -354,9 +369,9 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -367,10 +382,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -379,8 +395,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -418,11 +436,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -460,11 +479,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -506,11 +526,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -548,9 +569,9 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -561,10 +582,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -573,8 +595,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -612,11 +636,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -654,11 +679,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -700,11 +726,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -742,11 +769,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -784,8 +812,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -794,10 +825,11 @@ Scan the qrcode or enter the code in the login page 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -806,8 +838,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -845,11 +879,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -887,11 +922,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -933,11 +969,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -975,11 +1012,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1017,8 +1055,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -1027,10 +1068,11 @@ Scan the qrcode or enter the code in the login page 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -1039,8 +1081,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1078,11 +1122,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1120,11 +1165,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1166,11 +1212,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1208,11 +1255,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1250,8 +1298,14 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> 1 +PAM Authenticate() for user "user-integration-qr-code-tty" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -1260,10 +1314,11 @@ Scan the qrcode or enter the code in the login page 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty@gmail.com 3. Use your fido device foo @@ -1272,8 +1327,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1311,11 +1368,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1353,11 +1411,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1399,11 +1458,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1441,11 +1501,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1483,6 +1544,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> 1 +PAM Authenticate() for user "user-integration-qr-code-tty" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session index d62409b71..66cc594e7 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_a_tty_session @@ -12,6 +12,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -23,10 +24,11 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -35,6 +37,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── @@ -45,10 +48,11 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -57,8 +61,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -96,9 +102,9 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -109,10 +115,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -121,8 +128,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -160,11 +169,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -202,9 +212,9 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -215,10 +225,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -227,8 +238,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -266,11 +279,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -308,11 +322,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -354,9 +369,9 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -367,10 +382,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -379,8 +395,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -418,11 +436,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -460,11 +479,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -506,11 +526,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -548,9 +569,9 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -561,10 +582,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -573,8 +595,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -612,11 +636,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -654,11 +679,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -700,11 +726,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -742,11 +769,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -784,8 +812,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -794,10 +825,11 @@ Scan the qrcode or enter the code in the login page 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -806,8 +838,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -845,11 +879,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -887,11 +922,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -933,11 +969,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -975,11 +1012,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1017,8 +1055,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -1027,10 +1068,11 @@ Scan the qrcode or enter the code in the login page 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -1039,8 +1081,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1078,11 +1122,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1120,11 +1165,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1166,11 +1212,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1208,11 +1255,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1250,8 +1298,14 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> 1 +PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -1260,10 +1314,11 @@ Scan the qrcode or enter the code in the login page 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-tty-session@gmail.com 3. Use your fido device foo @@ -1272,8 +1327,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1311,11 +1368,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1353,11 +1411,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1399,11 +1458,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1441,11 +1501,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1483,6 +1544,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> 1 +PAM Authenticate() for user "user-integration-qr-code-tty-session" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit index ae5c76034..32c280f39 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_polkit @@ -12,6 +12,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -23,10 +24,11 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -35,6 +37,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── @@ -45,10 +48,11 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -57,15 +61,17 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -76,10 +82,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -88,24 +95,27 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -116,10 +126,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -128,33 +139,37 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -165,10 +180,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -177,42 +193,47 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -223,10 +244,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -235,51 +257,57 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -290,10 +318,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -302,51 +331,57 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 1 ──────────────────────────────────────────────────────────────────────────────── @@ -357,10 +392,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -369,51 +405,57 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 1 PAM Authenticate() for user "user-integration-qr-code-polkit" exited with success @@ -427,10 +469,11 @@ PAM AcctMgmt() exited with success 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-polkit@gmail.com 3. Use your fido device foo @@ -439,51 +482,57 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 1 PAM Authenticate() for user "user-integration-qr-code-polkit" exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen index 8b87406c0..47d7066ce 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_screen @@ -12,6 +12,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -23,10 +24,11 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -35,6 +37,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── @@ -45,10 +48,11 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -57,8 +61,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -96,9 +102,9 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -109,10 +115,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -121,8 +128,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -160,11 +169,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -202,9 +212,9 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -215,10 +225,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -227,8 +238,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -266,11 +279,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -308,11 +322,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -354,9 +369,9 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -367,10 +382,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -379,8 +395,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -418,11 +436,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -460,11 +479,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -506,11 +526,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -548,9 +569,9 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -561,10 +582,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -573,8 +595,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -612,11 +636,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -654,11 +679,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -700,11 +726,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -742,11 +769,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -784,8 +812,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -794,10 +825,11 @@ Scan the qrcode or enter the code in the login page 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -806,8 +838,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -845,11 +879,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -887,11 +922,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -933,11 +969,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -975,11 +1012,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1017,8 +1055,11 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> 1 ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -1027,10 +1068,11 @@ Scan the qrcode or enter the code in the login page 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -1039,8 +1081,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1078,11 +1122,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1120,11 +1165,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1166,11 +1212,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1208,11 +1255,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1250,8 +1298,14 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> 1 +PAM Authenticate() for user "user-integration-qr-code-screen" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── > if [ -v AUTHD_PAM_CLI_TERM ]; then export TERM=${AUTHD_PAM_CLI_TERM}; fi > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true @@ -1260,10 +1314,11 @@ Scan the qrcode or enter the code in the login page 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-qr-code-screen@gmail.com 3. Use your fido device foo @@ -1272,8 +1327,10 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1311,11 +1368,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1353,11 +1411,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████████████ @@ -1399,11 +1458,12 @@ Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1441,11 +1501,12 @@ Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page ██████████████████████████████████████████████████████████████████ ██████████████████████████████████████████████████████████████████ @@ -1483,6 +1544,12 @@ Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result + 2. Regenerate code +Or enter 'r' to go back to select the authentication method +Choose action: +> 1 +PAM Authenticate() for user "user-integration-qr-code-screen" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh index d0d4ed6b5..72a2e620f 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_with_qr_code_in_ssh @@ -12,6 +12,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -23,10 +24,11 @@ Gimme your password: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -35,6 +37,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── @@ -45,10 +48,11 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -57,15 +61,17 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -76,10 +82,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -88,24 +95,27 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -116,10 +126,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -128,33 +139,37 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -165,10 +180,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -177,42 +193,47 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -223,10 +244,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -235,51 +257,57 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── @@ -290,10 +318,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -302,51 +331,57 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 1 ──────────────────────────────────────────────────────────────────────────────── @@ -357,10 +392,11 @@ Choose action: 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -369,51 +405,57 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 1 PAM Authenticate() for user "user-integration-pre-check-ssh-service-qr-code" exited with success @@ -427,10 +469,11 @@ PAM AcctMgmt() exited with success 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pre-check-ssh-service-qr-code@gmail.com 3. Use your fido device foo @@ -439,51 +482,57 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 7 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1337 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.fr/ 1338 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntuforum-br.org/ 1339 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://www.ubuntu-it.org/ 1340 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 2 +== Qr Code authentication == Scan the qrcode or enter the code in the login page https://ubuntu.com 1341 -== Qr Code authentication (enter 'r' to go back to select the authentication method) == 1. Wait for the QR code scan result 2. Regenerate code +Or enter 'r' to go back to select the authentication method Choose action: > 1 PAM Authenticate() for user "user-integration-pre-check-ssh-service-qr-code" exited with success diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments index b58373509..1e2d7b1f4 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_with_warnings_on_unsupported_arguments @@ -9,20 +9,23 @@ Username: user2 > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -30,11 +33,13 @@ Gimme your password: > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -45,11 +50,13 @@ PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} invalid_flag=foo force_nat ive_client=true bar Username: user2 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached index d724ab680..8aaa0071f 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_max_attempts_reached @@ -6,130 +6,157 @@ Username: user-integration-max-attempts ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -139,30 +166,37 @@ PAM Authenticate() for user "user-integration-max-attempts" exited with error (P acct=incomplete PAM AcctMgmt() exited with error (PAM exit code: 25): The return value should be ignored by PAM dispatch +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -172,4 +206,5 @@ PAM Authenticate() for user "user-integration-max-attempts" exited with error (P acct=incomplete PAM AcctMgmt() exited with error (PAM exit code: 25): The return value should be ignored by PAM dispatch +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria index 3379633ea..1421d0a4b 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_newpassword_does_not_match_required_criteria @@ -6,30 +6,35 @@ Username: user-needs-reset ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -38,11 +43,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -54,11 +61,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -73,11 +82,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -95,11 +106,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -119,11 +132,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -146,11 +161,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -176,11 +193,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -208,11 +227,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -243,11 +264,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-needs-reset -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist index a423318e7..673a20592 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist @@ -6,17 +6,19 @@ Username: user-unexistent ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist @@ -28,9 +30,10 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key index 50f043741..4faa5fb89 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/deny_authentication_if_user_does_not_exist_and_matches_cancel_key @@ -6,30 +6,35 @@ Username: r ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -42,11 +47,13 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: r -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected index 6d8bd341d..f7ac441f1 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_local_broker_is_selected @@ -6,17 +6,19 @@ Username: user-local-broker ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 1 auth=incomplete @@ -27,9 +29,10 @@ PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 1 auth=incomplete diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints index 9c38bbf41..0dc25d31b 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/exit_authd_if_user_sigints @@ -6,30 +6,35 @@ Username: user-integration-sigint ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -37,11 +42,13 @@ Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username index 10ef75371..837389893 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username @@ -12,9 +12,6 @@ Choose your provider: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── @@ -25,11 +22,9 @@ Choose your provider: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -41,15 +36,13 @@ Gimme your password: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -58,6 +51,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── @@ -68,15 +62,13 @@ Choose your authentication method: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -85,6 +77,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r == Provider selection == @@ -100,15 +93,13 @@ Choose your provider: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -117,6 +108,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r == Provider selection == @@ -125,9 +117,6 @@ Choose your authentication method: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── @@ -138,15 +127,13 @@ Choose your provider: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -155,6 +142,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r == Provider selection == @@ -163,15 +151,9 @@ Choose your authentication method: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── @@ -182,15 +164,13 @@ Choose your provider: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -199,6 +179,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r == Provider selection == @@ -207,17 +188,12 @@ Choose your authentication method: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -229,15 +205,13 @@ Gimme your password: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -246,6 +220,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r == Provider selection == @@ -254,20 +229,18 @@ Choose your authentication method: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +PAM Authenticate() for user "user-integration-pam-preset" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true == Provider selection == @@ -276,15 +249,13 @@ Gimme your password: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-pam-preset@gmail.com 3. Use your fido device foo @@ -293,6 +264,7 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > r == Provider selection == @@ -301,18 +273,16 @@ Choose your authentication method: Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > r PAM Error Message: Provided input can't be parsed as integer value -== Provider selection == - 1. local - 2. ExampleBroker Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +PAM Authenticate() for user "user-integration-pam-preset" exited with success +PAM AcctMgmt() exited with success +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode index 543d5d160..6f0d31958 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/remember_last_successful_broker_and_mode @@ -6,34 +6,39 @@ Username: user-integration-remember-mode ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -42,20 +47,23 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -64,25 +72,29 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -91,28 +103,33 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -121,13 +138,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > temporary pass0 @@ -137,15 +157,17 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -154,13 +176,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > temporary pass0 @@ -171,15 +196,17 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -188,13 +215,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > temporary pass0 @@ -205,15 +235,17 @@ Username: user-integration-remember-mode ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -222,13 +254,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > temporary pass0 @@ -236,23 +271,26 @@ PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -261,13 +299,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > temporary pass0 @@ -275,26 +316,30 @@ PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -303,13 +348,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > temporary pass0 @@ -317,11 +365,13 @@ PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > temporary pass0 @@ -331,15 +381,17 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-integration-remember-mode@gmail.com 3. Use your fido device foo @@ -348,13 +400,16 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 8 -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > temporary pass0 @@ -362,11 +417,13 @@ PAM Authenticate() for user "user-integration-remember-mode" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHENTICATE_TESTS_SOCK} force_native_client=true Username: user-integration-remember-mode -== Authentication code (enter 'r' to go back to select the authentication method) == +== Authentication code == 1. Proceed with Authentication code 2. Resend sms +Or enter 'r' to go back to select the authentication method Choose action: > 1 +== Authentication code == Enter 'r' to cancel the request and go back to select the authentication method Enter your one time credential: > temporary pass0 diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth index a77134931..531149f48 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_passwd_after_mfa_auth @@ -6,34 +6,39 @@ Username: user-mfa ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -42,20 +47,23 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -64,23 +72,27 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -89,11 +101,14 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: @@ -101,15 +116,17 @@ Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -118,33 +135,39 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -153,21 +176,26 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: @@ -175,15 +203,17 @@ Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -192,21 +222,26 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: @@ -214,15 +249,17 @@ Plug your fido device and press with your thumb: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -231,25 +268,31 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: @@ -257,15 +300,17 @@ Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -274,46 +319,55 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your phone +33… 2. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -322,34 +376,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your phone +33… 2. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: @@ -357,15 +419,17 @@ Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -374,34 +438,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your phone +33… 2. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: @@ -409,15 +481,17 @@ Unlock your phone +33… or accept request on web interface: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -426,34 +500,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your phone +33… 2. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: @@ -463,15 +545,17 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -480,34 +564,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your phone +33… 2. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: @@ -519,15 +611,17 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -536,34 +630,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your phone +33… 2. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: @@ -575,15 +677,17 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -592,34 +696,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your phone +33… 2. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: @@ -634,15 +746,17 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-mfa -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Password authentication 2. Send URL to user-mfa@gmail.com 3. Use your fido device foo @@ -651,34 +765,42 @@ Gimme your password: 6. Pin code 7. Use a QR code 8. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your fido device foo 2. Use your phone +33… 3. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your fido device foo == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Plug your fido device and press with your thumb: > +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: > r -== Authentication method selection (enter 'r' to go back to choose the provider) == +== Authentication method selection == 1. Use your phone +33… 2. Authentication code +Or enter 'r' to go back to choose the provider Choose your authentication method: > 1 +== Use your phone +33… == Press Enter to wait for authentication or enter 'r' to go back to select the authentication meth od Unlock your phone +33… or accept request on web interface: diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one index a36186963..d4d42462b 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/change_password_successfully_and_authenticate_with_new_one @@ -6,30 +6,35 @@ Username: user1 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -38,11 +43,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -53,11 +60,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -68,11 +77,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -86,11 +97,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -105,11 +118,13 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -124,11 +139,13 @@ Username: user1 ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -140,17 +157,20 @@ PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -162,6 +182,7 @@ PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -171,11 +192,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -187,6 +210,7 @@ PAM ChangeAuthTok() for user "user1" exited with success PAM AcctMgmt() exited with success > ./pam_authd login socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user1 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected index 8f9c23ac9..4f3b87c4b 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_local_broker_is_selected @@ -6,17 +6,19 @@ Username: user-local-broker ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 1 chauthtok=incomplete @@ -27,9 +29,10 @@ PAM AcctMgmt() exited with error (PAM exit code: 26): Critical error - immediate ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-local-broker -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 1 chauthtok=incomplete diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints index 557bfd839..3535ffe35 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/exit_authd_if_user_sigints @@ -6,30 +6,35 @@ Username: user-integration-sigint ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -37,11 +42,13 @@ Gimme your password: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-sigint -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails index b0e7ba166..72df04232 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_auth_fails @@ -6,130 +6,157 @@ Username: user-integration-max-attempts ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -139,30 +166,37 @@ PAM ChangeAuthTok() for user "user-integration-max-attempts" exited with error ( acct=incomplete PAM AcctMgmt() exited with error (PAM exit code: 25): The return value should be ignored by PAM dispatch +> ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-max-attempts -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > PAM Error Message: invalid password 'wrongpass', should be 'goodpass' +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -172,4 +206,5 @@ PAM ChangeAuthTok() for user "user-integration-max-attempts" exited with error ( acct=incomplete PAM AcctMgmt() exited with error (PAM exit code: 25): The return value should be ignored by PAM dispatch +> ──────────────────────────────────────────────────────────────────────────────── diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist index 5ab63649e..ce7b2ef08 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/prevent_change_password_if_user_does_not_exist @@ -6,17 +6,19 @@ Username: user-unexistent ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist @@ -29,9 +31,10 @@ dispatch ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-unexistent -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 PAM Error Message: can't select broker: user "user-unexistent" does not exist diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria index d5b5f4f25..45617abb6 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_does_not_match_quality_criteria @@ -6,30 +6,35 @@ Username: user-integration-bad-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -38,11 +43,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -54,11 +61,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -73,11 +82,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -95,11 +106,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -119,11 +132,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -146,11 +161,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -176,11 +193,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -208,11 +227,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -243,11 +264,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-bad-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker index c1c06d98e..a1836e55d 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_rejected_by_broker @@ -6,30 +6,35 @@ Username: user-integration-invalid-new-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -38,11 +43,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -53,11 +60,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -68,11 +77,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -86,11 +97,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -106,11 +119,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -129,11 +144,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -153,11 +170,13 @@ Username: ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -177,11 +196,13 @@ Username: user-integration-invalid-new-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -198,17 +219,20 @@ PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -225,6 +249,7 @@ PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -233,11 +258,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -254,6 +281,7 @@ PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -264,11 +292,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -285,6 +315,7 @@ PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -295,11 +326,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -316,6 +349,7 @@ PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -329,11 +363,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -350,6 +386,7 @@ PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -365,11 +402,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -386,6 +425,7 @@ PAM ChangeAuthTok() for user "user-integration-invalid-new-password" exited with PAM AcctMgmt() exited with success > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-invalid-new-password +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous index 75035d532..55d599f7a 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_new_password_is_same_of_previous @@ -6,30 +6,35 @@ Username: user-integration-same-new-password ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -38,11 +43,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -51,11 +58,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -67,11 +76,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -85,11 +96,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -103,11 +116,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -124,11 +139,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-same-new-password -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same index 2fb84d919..247fc3a4e 100644 --- a/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same +++ b/pam/integration-tests/testdata/TestNativeChangeAuthTok/golden/retry_if_password_confirmation_is_not_the_same @@ -6,30 +6,35 @@ Username: user-integration-wrong-confirmation ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -38,11 +43,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -53,11 +60,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -68,11 +77,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -86,11 +97,13 @@ Enter your new password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -106,11 +119,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -126,11 +141,13 @@ Confirm password (or enter 'r' to go back to choose the provider): ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > @@ -149,11 +166,13 @@ PAM AcctMgmt() exited with success ──────────────────────────────────────────────────────────────────────────────── > ./pam_authd passwd socket=${AUTHD_TESTS_CLI_AUTHTOK_TESTS_SOCK} force_native_client=true Username: user-integration-wrong-confirmation -== Provider selection (enter 'r' to go back to user selection) == +== Provider selection == 1. local 2. ExampleBroker +Or enter 'r' to go back to user selection Choose your provider: > 2 +== Password authentication == Enter 'r' to cancel the request and go back to select the authentication method Gimme your password: > diff --git a/pam/internal/adapter/nativemodel.go b/pam/internal/adapter/nativemodel.go index 8cf7061d6..6a6574578 100644 --- a/pam/internal/adapter/nativemodel.go +++ b/pam/internal/adapter/nativemodel.go @@ -32,6 +32,7 @@ type nativeModel struct { uiLayout *authd.UILayout serviceName string + interactive bool currentStage proto.Stage busy bool userSelectionAllowed bool @@ -86,6 +87,8 @@ func (m *nativeModel) Init() tea.Cmd { log.Errorf(context.TODO(), "failed to get the PAM service: %v", err) } + m.interactive = IsSSHSession(m.pamMTx) || m.isTerminalTty() + return func() tea.Msg { required, optional := "required", "optional" supportedEntries := "optional:chars,chars_password,digits,digits_password" @@ -322,7 +325,7 @@ func (m nativeModel) checkForPromptReplyValidity(reply string) error { func (m nativeModel) promptForInput(style pam.Style, inputStyle inputPromptStyle, prompt string) (string, error) { format := "%s" - if IsSSHSession(m.pamMTx) || m.isTerminalTty() { + if m.interactive { switch inputStyle { case inputPromptStyleInline: format = "%s: " @@ -392,20 +395,29 @@ type choicePair struct { label string } -func (m nativeModel) promptForChoice(title string, choices []choicePair, prompt string) (string, error) { - if m.canGoBack() { - title = fmt.Sprintf("%s (enter '%s' to %s)", title, nativeCancelKey, - m.goBackActionLabel()) +func (m nativeModel) promptForChoiceWithMessage(title string, message string, choices []choicePair, prompt string) (string, error) { + msg := fmt.Sprintf("== %s ==\n", title) + if message != "" { + msg += message + "\n" } - msg := fmt.Sprintf("== %s ==\n", title) for i, choice := range choices { - msg += fmt.Sprintf(" %d. %s\n", i+1, choice.label) + msg += fmt.Sprintf(" %d. %s", i+1, choice.label) + if i < len(choices)-1 { + msg += "\n" + } + } + + if m.canGoBack() { + msg += fmt.Sprintf("\nOr enter '%s' to %s", nativeCancelKey, + m.goBackActionLabel()) } - msg += prompt for { - idx, err := m.promptForNumericInputUntilValid(pam.PromptEchoOn, msg) + if err := m.sendInfo(msg); err != nil { + return "", err + } + idx, err := m.promptForNumericInputUntilValid(pam.PromptEchoOn, prompt) if err != nil { return "", err } @@ -422,6 +434,10 @@ func (m nativeModel) promptForChoice(title string, choices []choicePair, prompt } } +func (m nativeModel) promptForChoice(title string, choices []choicePair, prompt string) (string, error) { + return m.promptForChoiceWithMessage(title, "", choices, prompt) +} + func (m nativeModel) startAsyncOp(cmd func() tea.Cmd) (nativeModel, tea.Cmd) { m.busy = true return m, func() tea.Msg { @@ -543,14 +559,15 @@ func (m nativeModel) startChallenge() tea.Cmd { } func (m nativeModel) handleFormChallenge(hasWait bool) tea.Cmd { + authMode := "Chosen authentication method" + authModeIdx := slices.IndexFunc(m.authModes, func(mode *authd.GAMResponse_AuthenticationMode) bool { + return mode.Id == m.selectedAuthMode + }) + if authModeIdx > -1 { + authMode = m.authModes[authModeIdx].Label + } + if buttonLabel := m.uiLayout.GetButton(); buttonLabel != "" { - authMode := "chosen authentication method" - authModeIdx := slices.IndexFunc(m.authModes, func(mode *authd.GAMResponse_AuthenticationMode) bool { - return mode.Id == m.selectedAuthMode - }) - if authModeIdx > -1 { - authMode = m.authModes[authModeIdx].Label - } choices := []choicePair{ {id: "continue", label: fmt.Sprintf("Proceed with %s", authMode)}, } @@ -595,7 +612,8 @@ func (m nativeModel) handleFormChallenge(hasWait bool) tea.Cmd { } } - if cmd := maybeSendPamError(m.sendInfo(instructions, nativeCancelKey, m.goBackActionLabel())); cmd != nil { + instructions = fmt.Sprintf(instructions, nativeCancelKey, m.goBackActionLabel()) + if cmd := maybeSendPamError(m.sendInfo("== %s ==\n%s", authMode, instructions)); cmd != nil { return cmd } @@ -715,10 +733,6 @@ func (m nativeModel) handleQrCode() tea.Cmd { // Ass some extra vertical space to improve readability qrcodeView = append(qrcodeView, " ") - if cmd := maybeSendPamError(m.sendInfo(strings.Join(qrcodeView, "\n"))); cmd != nil { - return cmd - } - choices := []choicePair{ {id: "wait", label: "Wait for the QR code scan result"}, } @@ -726,7 +740,8 @@ func (m nativeModel) handleQrCode() tea.Cmd { choices = append(choices, choicePair{id: "button", label: buttonLabel}) } - id, err := m.promptForChoice("Qr Code authentication", choices, "Choose action") + id, err := m.promptForChoiceWithMessage("Qr Code authentication", + strings.Join(qrcodeView, "\n"), choices, "Choose action") if errors.Is(err, errGoBack) { return sendEvent(nativeGoBack{}) } From 2de0fe289914423a23cdc5ff6789cba66f4d9bda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 6 Nov 2024 16:27:05 +0100 Subject: [PATCH 6/6] pam/nativemodel: Improve wording on invalid input errors Co-Authored-By: Adrian Dombeck --- .../authenticate_user_switching_auth_mode | 18 +++++----- ...uthenticate_user_switching_to_local_broker | 14 ++++---- ...revent_preset_user_from_switching_username | 36 +++++++++---------- pam/internal/adapter/nativemodel.go | 4 +-- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode index 4f65d4fb1..56667f737 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_auth_mode @@ -1518,7 +1518,7 @@ Choose action: Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your authentication method: > ──────────────────────────────────────────────────────────────────────────────── @@ -1687,10 +1687,10 @@ Choose action: Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your authentication method: > -1 -PAM Error Message: Invalid entry. Try again or input 'r'. +PAM Error Message: Invalid selection == Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -1869,10 +1869,10 @@ Choose action: Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your authentication method: > -1 -PAM Error Message: Invalid entry. Try again or input 'r'. +PAM Error Message: Invalid selection == Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -2055,10 +2055,10 @@ Choose action: Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your authentication method: > -1 -PAM Error Message: Invalid entry. Try again or input 'r'. +PAM Error Message: Invalid selection == Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com @@ -2244,10 +2244,10 @@ Choose action: Or enter 'r' to go back to choose the provider Choose your authentication method: > invalid-selection -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your authentication method: > -1 -PAM Error Message: Invalid entry. Try again or input 'r'. +PAM Error Message: Invalid selection == Authentication method selection == 1. Password authentication 2. Send URL to user-integration-switch-mode@gmail.com diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker index 2d7cba8f7..8b714ab15 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/authenticate_user_switching_to_local_broker @@ -109,7 +109,7 @@ Choose your authentication method: Or enter 'r' to go back to user selection Choose your provider: > invalid-ID -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── @@ -143,10 +143,10 @@ Choose your authentication method: Or enter 'r' to go back to user selection Choose your provider: > invalid-ID -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 555 -PAM Error Message: Invalid entry. Try again or input 'r'. +PAM Error Message: Invalid selection == Provider selection == 1. local 2. ExampleBroker @@ -184,10 +184,10 @@ Choose your authentication method: Or enter 'r' to go back to user selection Choose your provider: > invalid-ID -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 555 -PAM Error Message: Invalid entry. Try again or input 'r'. +PAM Error Message: Invalid selection == Provider selection == 1. local 2. ExampleBroker @@ -230,10 +230,10 @@ Choose your authentication method: Or enter 'r' to go back to user selection Choose your provider: > invalid-ID -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 555 -PAM Error Message: Invalid entry. Try again or input 'r'. +PAM Error Message: Invalid selection == Provider selection == 1. local 2. ExampleBroker diff --git a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username index 837389893..1731b724b 100644 --- a/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username +++ b/pam/integration-tests/testdata/TestNativeAuthenticate/golden/prevent_preset_user_from_switching_username @@ -11,7 +11,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── @@ -21,7 +21,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -35,7 +35,7 @@ Gimme your password: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -61,7 +61,7 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -92,7 +92,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -116,7 +116,7 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── @@ -126,7 +126,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -150,10 +150,10 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > ──────────────────────────────────────────────────────────────────────────────── @@ -163,7 +163,7 @@ Choose your provider: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -187,10 +187,10 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -204,7 +204,7 @@ Gimme your password: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -228,10 +228,10 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -248,7 +248,7 @@ PAM AcctMgmt() exited with success 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == @@ -272,10 +272,10 @@ Choose your authentication method: 2. ExampleBroker Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > r -PAM Error Message: Provided input can't be parsed as integer value +PAM Error Message: Unsupported input Choose your provider: > 2 == Password authentication == diff --git a/pam/internal/adapter/nativemodel.go b/pam/internal/adapter/nativemodel.go index 6a6574578..daa757520 100644 --- a/pam/internal/adapter/nativemodel.go +++ b/pam/internal/adapter/nativemodel.go @@ -361,7 +361,7 @@ func (m nativeModel) promptForNumericInputUntilValid(style pam.Style, prompt str return value, err } - err = m.sendError("Provided input can't be parsed as integer value") + err = m.sendError("Unsupported input") if err != nil { return -1, err } @@ -424,7 +424,7 @@ func (m nativeModel) promptForChoiceWithMessage(title string, message string, ch // TODO: Maybe add support for default selection... if idx < 1 || idx > len(choices) { - if err := m.sendError("Invalid entry. Try again or input '%s'.", nativeCancelKey); err != nil { + if err := m.sendError("Invalid selection"); err != nil { return "", err } continue