stages/authenticator_validate: show single button for multiple webauthn authenticators

tested with browser + yubikey 5

closes #1096

The order of allowCredentials doesn't seem to matter, chrome seems to always choose the internal authenticator first.

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-09-01 19:28:52 +02:00
parent 7d26ea1a9c
commit 4fc8e61f8c
5 changed files with 58 additions and 27 deletions

View File

@ -180,7 +180,7 @@ export class AuthenticatorValidateStage
${this.selectedDeviceChallenge
? ""
: html`<p class="pf-c-login__main-header-desc">
${t`Select an identification method.`}
${t`Select an authentication method.`}
</p>`}
</header>
${this.selectedDeviceChallenge

View File

@ -3370,6 +3370,10 @@ msgstr "Request token URL"
msgid "Required"
msgstr "Required"
#: src/flows/stages/prompt/PromptStage.ts
msgid "Required."
msgstr "Required."
#: src/pages/user-settings/UserSelfForm.ts
#: src/pages/users/ServiceAccountForm.ts
#: src/pages/users/UserForm.ts
@ -3524,13 +3528,17 @@ msgstr "Select a provider that this application should use. Alternatively, creat
msgid "Select all rows"
msgstr "Select all rows"
#: src/flows/stages/authenticator_validate/AuthenticatorValidateStage.ts
msgid "Select an authentication method."
msgstr "Select an authentication method."
#: src/pages/stages/invitation/InvitationListLink.ts
msgid "Select an enrollment flow"
msgstr "Select an enrollment flow"
#: src/flows/stages/authenticator_validate/AuthenticatorValidateStage.ts
msgid "Select an identification method."
msgstr "Select an identification method."
#:
#~ msgid "Select an identification method."
#~ msgstr "Select an identification method."
#: src/pages/users/GroupSelectModal.ts
msgid "Select groups to add user to"
@ -3757,9 +3765,13 @@ msgstr "Source(s)"
msgid "Sources"
msgstr "Sources"
#:
#~ msgid "Sources of identities, which can either be synced into authentik's database, like LDAP, or can be used by users to authenticate and enroll themselves, like OAuth and social logins"
#~ msgstr "Sources of identities, which can either be synced into authentik's database, like LDAP, or can be used by users to authenticate and enroll themselves, like OAuth and social logins"
#: src/pages/sources/SourcesListPage.ts
msgid "Sources of identities, which can either be synced into authentik's database, like LDAP, or can be used by users to authenticate and enroll themselves, like OAuth and social logins"
msgstr "Sources of identities, which can either be synced into authentik's database, like LDAP, or can be used by users to authenticate and enroll themselves, like OAuth and social logins"
msgid "Sources of identities, which can either be synced into authentik's database, or can be used by users to authenticate and enroll themselves."
msgstr "Sources of identities, which can either be synced into authentik's database, or can be used by users to authenticate and enroll themselves."
#: src/pages/flows/BoundStagesList.ts
#: src/pages/flows/StageBindingForm.ts

View File

@ -3362,6 +3362,10 @@ msgstr ""
msgid "Required"
msgstr ""
#: src/flows/stages/prompt/PromptStage.ts
msgid "Required."
msgstr ""
#: src/pages/user-settings/UserSelfForm.ts
#: src/pages/users/ServiceAccountForm.ts
#: src/pages/users/UserForm.ts
@ -3516,13 +3520,17 @@ msgstr ""
msgid "Select all rows"
msgstr ""
#: src/flows/stages/authenticator_validate/AuthenticatorValidateStage.ts
msgid "Select an authentication method."
msgstr ""
#: src/pages/stages/invitation/InvitationListLink.ts
msgid "Select an enrollment flow"
msgstr ""
#: src/flows/stages/authenticator_validate/AuthenticatorValidateStage.ts
msgid "Select an identification method."
msgstr ""
#:
#~ msgid "Select an identification method."
#~ msgstr ""
#: src/pages/users/GroupSelectModal.ts
msgid "Select groups to add user to"
@ -3749,8 +3757,12 @@ msgstr ""
msgid "Sources"
msgstr ""
#:
#~ msgid "Sources of identities, which can either be synced into authentik's database, like LDAP, or can be used by users to authenticate and enroll themselves, like OAuth and social logins"
#~ msgstr ""
#: src/pages/sources/SourcesListPage.ts
msgid "Sources of identities, which can either be synced into authentik's database, like LDAP, or can be used by users to authenticate and enroll themselves, like OAuth and social logins"
msgid "Sources of identities, which can either be synced into authentik's database, or can be used by users to authenticate and enroll themselves."
msgstr ""
#: src/pages/flows/BoundStagesList.ts