You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a Telegram/Signal/SMS gateway and `U2F <https://en.wikipedia.org/wiki/Universal_2nd_Factor>`_.
13
+
- At least one 2FA provider must be enabled by the administrator.
14
+
- A user must activate 2FA on their account (or) the administrator must enforce the use of 2FA.
16
15
17
-
18
-
Developers can `build new two-factor provider apps <https://docs.nextcloud.com/server/latest/developer_manual/digging_deeper/two-factor-provider.html>`_.
19
-
20
-
.. TODO ON RELEASE: Update version number above on release
16
+
Both steps are described below.
21
17
22
18
Enabling two-factor authentication
23
19
----------------------------------
24
20
25
-
You can enable 2FA by installing and enabling a 2FA app like TOTP which works
26
-
with Google Authenticator and compatible apps. The apps are available in the
27
-
Nextcloud App store so by navigating there and clicking **enable** for the app
28
-
you want, 2FA will be installed and enabled on your Nextcloud server.
21
+
2FA in Nextcloud is pluggable, meaning that various 2FA providers can be used to support different
22
+
types of factors. Three providers are automatically installed (but may need to be enabled):
29
23
30
-
.. figure:: ../images/2fa-app-install.png
24
+
**Two-Factor TOTP Provider**
31
25
32
-
Once 2FA has been enabled, users have to `activate it in their personal settings. <https://docs.nextcloud.com/server/latest/user_manual/en/user_2fa.html>`_
26
+
- A 2FA factor provider that enables the use of a `TOTP <https://en.wikipedia.org/wiki/Time-based_One-time_Password_Algorithm>`_
27
+
(RFC 6238) app installed on a phone (or other device) to be used as the secondary factor
28
+
- Compatible with any RFC 6238 compliant TOTP client app (such as `Aegis <https://github.com/beemdevelopment/aegis>`_ or Google Authenticator).
29
+
- Disabled by default. Go to *Apps->Disabled apps* and find *Two-Factor TOTP Provider* to enable this factor.
33
30
34
-
.. TODO ON RELEASE: Update version number above on release
31
+
**Two-Factor Authentication via Nextcloud notifications**
35
32
36
-
Disabling two-factor authentication
37
-
-----------------------------------
33
+
- A 2FA factor provider that enables the use of a logged in device as the secondary factor.
34
+
- Disabled by default. Go to *Apps->Disabled apps* and find *Two-Factor Authentication via Nextcloud
35
+
notification* to enable this factor.
38
36
39
-
Two-factor providers can be disabled via :ref:`occ <occ>`::
.. TODO ON RELEASE: Update version number above on release
46
54
47
55
Enforcing two-factor authentication
48
56
-----------------------------------
49
57
50
58
By default 2FA is *optional*, hence users are given the choice whether to enable
51
-
it for their account. Admins may enforce the use of 2FA.
59
+
it for their account `under their personal settings <https://docs.nextcloud.com/server/latest/user_manual/en/user_2fa.html>`_.
60
+
Admins may, however, enforce the use of 2FA.
52
61
62
+
Enforcement is possible system-wide (all users) or for selected groups only. Select groups
63
+
can also be excluded from 2FA requirements.
53
64
54
-
Enforcement is possible system-wide (all users), for selected groups only and can
55
-
also be excluded for certain groups.
56
-
57
-
58
-
These settings can be found in the administrator's security settings.
65
+
These settings can be found under *Administration Settings->Security*.
59
66
60
67
.. figure:: ../images/2fa-admin-settings.png
61
68
@@ -69,10 +76,29 @@ a user has 2FA enforced:
69
76
Provider removal
70
77
----------------
71
78
72
-
Nextcloud keeps records about the enabled two-factor authentication providers of every user. If a provider is simply removed/:ref:`disabled <apps_commands_label>`, Nextcloud will still consider the provider active for the user at login and show a warning like *Could not load at least one of your enabled two-factor auth methods*.
79
+
Nextcloud keeps records about the enabled two-factor authentication providers of every user.
80
+
If a provider is simply removed/:ref:`disabled <apps_commands_label>`,
81
+
Nextcloud will still consider the provider active for the user at login and show a warning like *Could not load at least one of your enabled two-factor auth methods*.
73
82
74
83
The associations of removed providers can be cleaned up via :ref:`occ <occ>`::
.. warning:: This operation is irreversible. Only run it for providers you do not intend to enable again.
87
+
.. warning:: This operation is irreversible. Only run it for providers you do not intend to enable again as then you have to setup the configuration for all users from scratch.
88
+
89
+
90
+
Disabling two-factor authentication
91
+
-----------------------------------
92
+
93
+
Two-factor providers can be disabled via :ref:`occ <occ>`::
0 commit comments