Debian Codegraph @

doc/sources/admin/authwebauthn.rst

raw
1 Passkeys / WebAuthn
2 ===================
3
4 ============== ===== ========
5 Authentication Users Password
6 ============== ===== ========
7 ✔
8 ============== ===== ========
9
10 .. versionadded:: 2.20.0
11
12 |beta|
13
14 .. |beta| image:: /documentation/beta.png
15
16 Presentation
17 ------------
18
19 This mode allow you to authenticate to LemonLDAP::NG using nothing but your FIDO2 credential.
20
21 Requirements
22 ------------
23
24 As of version 2.20.0, authenticating with Passkeys requires enabling :doc:`webauthn2f`
25
26 .. important::
27
28 Passkeys require the *Use discoverable credential* option to be set to *preferred* or *required*
29
30 Non-discoverable credentials can only be used as second factors
31
32 Configuring passkeys as an alternate authentication method
33 ----------------------------------------------------------
34
35 The simplest way to use Passkeys is to enable :doc:`authchoice` and add a new authentication choice using the *WebAuthn* module and your usual LDAP/AD/etc. user backend, in addition to another (LDAP/AD/etc.) authentication backend that users can use on their first login to register their passwordless credential.
36
37 Passwordless credentials have to be registered in the portal's *Second factor manager* at the moment.
38
39 Tips
40 ----
41
42 Custom second factor activation rule
43 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
45 If you used custom rule to trigger *WebAuthn* second factors, you may notice that *WebAuthn* is asked *twice* in order to authenticate with passkeys. In order to prevent this, add ::
46
47 and $_auth ne "WebAuthn"
48
49 to the *WebAuthn* activation rule.
50
51 You should also add this rule if you have enabled other 2FA types and want to skip them after authenticating with WebAuthn