Twee-factor-authenticatie

Two-factor authentication (2FA) is a security measure that helps prevent unauthorized access to user accounts.

Practically, 2FA means storing a secret in an authenticator, usually on a mobile phone, and exchanging a code from the authenticator when logging in.

This means an unauthorized user would need to guess the account password and have access to the authenticator, which is a more difficult proposition.

Notitie

Some governments, such as the Australian government, require 2FA. For these fiscal localizations, it is not possible to deactivate 2FA.

Vereisten

Belangrijk

Deze lijsten zijn slechts voorbeelden. Het zijn geen goedkeuringen van specifieke software.

Op telefoon gebaseerde authenticators zijn de eenvoudigste en meest gebruikte. Voorbeelden zijn:

Wachtwoordmanagers zijn een andere optie. Bekende voorbeelden zijn:

Notitie

In de rest van dit document wordt Google Authenticator als voorbeeld gebruikt, omdat dit een van de meest gebruikte is. Dit is geen goedkeuring van het product.

Twee-factor authenticatie instellen

After selecting an authenticator, log in to Odoo, then click the profile avatar in the upper-right corner, and select My Preferences from the resulting drop-down menu.

Click the Security tab, then click Enable 2FA.

The account secuirty tab in a user profile.

This generates an Access Control pop-up window that requires password confirmation to continue. Enter the Odoo account password, then click Confirm Password. Next, a Two-Factor Authentication Activation pop-up window appears, with a QR code.

The 2fa authentication QR code in Odoo.

Using the desired authenticator application, scan the QR code code.

Tip

If scanning the screen is not possible (e.g., the setup is being completed on the same device as the authenticator application), click the provided Cannot scan it? link, or copying the code to set up the authenticator manually, is an alternative.

A 2fa secret code on an authentication popup.

Daarna moet de authenticator een verificatiecode weergeven.

A view of the Google authenticator app with the six digit code for 2fa.

Enter the code into the Verification code field, then click Enable Two-Factor Authentication.

The success message that appears in a user profile when 2fa is successfully enabled.

Inloggen

Om te bevestigen dat de setup voltooid is, log je uit bij Odoo.

Voer op de inlogpagina de gebruikersnaam en het wachtwoord in en klik vervolgens op Log in. Voer op de Twee-factor Authenticatie pagina de code van de gekozen authenticator in het Authenticatiecode veld in en klik vervolgens op Log in.

De aanmeldpagina met 2fa ingeschakeld.

Gevaar

Als een gebruiker de toegang tot zijn authenticator verliest, dan moet een beheerder eerst 2FA op het account deactiveren voordat de gebruiker kan inloggen.

Twee-factor-authenticatie afdwingen

To enforce 2FA for every user in the database, navigate to the Settings app. In the Permissions section, tick the checkbox labeled Enforce two-factor authentication. Then, use the radio buttons to choose whether to apply this setting to Employees only or All users.

Notitie

Selecting All users applies the setting to portal users in addition to employees.

Klik op Opslaan om alle niet-opgeslagen wijzigingen vast te leggen.

De twee-factor instelling afdwingen in de Instellingen toepassing.

Notitie

If users are frequently required to log in again and complete two-factor authentication, it may be due to session or inactivity timeout policies configured for one or more of their user groups.

Administrators can configure these policies using the Timeouts settings available on user groups when the auth_timeout module is installed. See Session and inactivity timeouts for more information.