Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

To improve login security, Abiquo supports two-factor authentication for the user interface to improve login security. 

  1. The Systems Administrator configures two-factor authentication for the platform (see steps below)

  2. The Cloud Administrator can configure tenants to force users to work with two-factor authentication

  3. If two-factor authentication is configured for the platform but not required for a user's tenant, the user can still choose to enable it

For a description of the user functionality, see Starting Abiquo for the first time in the section on Use two factor authentication.

Note: UI with basic authentication.

Abiquo can send an authentication code:

  • via email

  • using Google Authenticator

The steps to use 2FA are:

  1. Configure the authentication options in the platform

  2. Activate 2FA for the platform

  3. If 2FA must be used in an enterprise, edit the enterprise and select the required option

  4. Users activate 2FA for their accounts.

    1. This is optional if 2FA is not mandatory for their enterprise

Tip

When you enable the Abiquo OpenID Connect integration, Abiquo disables two-factor authentication.

Table of Contents

...

Configure 2FA for the platform

Excerpt

To configure the authentication system do these stepsBasic requirements of 2FA:

Configure Google Authenticator properties. Set
  • Synchronize system times because two-factor codes are dependent on the system time

  • For a multi-datacenter configuration, configure Appliance manager for template upload and download as described in Uploading and downloading templates in multi datacenter

  • For each enterprise that requires 2FA, migrate automation and integrations to OAuth, see Authentication#OAuthv1.0VersionAAuthentication.
    To implement two-factor authentication for a portal, see Authentication

  • For events and event streaming, if the M-user belongs to a tenant that must use 2FA, configure the M-user to use OAuth.
    Enter the OAuth credentials in the Abiquo properties file. See Abiquo configuration properties and search for “m”.
    See Authentication#OAuthv1.0VersionAAuthentication

  • For integration and events requirements, see below.

    To configure 2FA, customize properties and files, and enable it on the platform:

    1. Log in to the Abiquo API Server

    2. Go to /opt/abiquo/config and edit the abiquo.properties file. For full details about any Abiquo property see Abiquo configuration properties

    3. For Google Authenticator

      1. set the property with the name of the issuer of authentication codes

    . See Abiquo configuration properties and search for “2fa”.

    Configure email authentication properties:

    Set the email server configuration
      1. .

        Code Block
        abiquo.2fa.issuer=Abiquo
    1. For email:

      1. configure the mail server with server.mail properties, including the sender with the

    "
      1. from

    "
      1. property.

    See Abiquo configuration properties and search for “server”.Set the length of time
      1. You can also set custom properties by replacing {javax mail property}with a property name.

        Code Block
        abiquo.server.mail.from=  
        abiquo.server.mail.password=none  
        abiquo.server.mail.port=25
        abiquo.server.mail.server=127.0.0.1  
        abiquo.server.mail.ssl=false
        abiquo.server.mail.tls=false
        abiquo.server.mail.user=none@none.es
        abiquo.server.mail.extra.{javax mail property}=  
      2. Optionally, change the length of time in seconds that the email codes will be valid for

    . See Abiquo configuration properties and search for “2fa”.
  • For email authentication, you can edit the email message. See Configure custom platform messages

  • Troubleshooting two-factor authentication

    • Check server date and time synchronization as part of the user issue troubleshooting process.

    Manage two-factor authentication in the UI

    To enable 2fa
      1. Code Block
         abiquo.2fa.email.timestep=60 
      2. To customize the email message, see Customize emails for two factor authentication

    1. In Abiquo, enable two-factor authentication for the platform:

      1. Go to Configuration → Security

      2. Edit the options and select Enable two factor authentication

    Image RemovedTo require 2fa for a tenant
    Enable 2FA in Configuration viewImage Added

    Requirements for integrations:

    Requirements for events and event streaming:


    Require 2FA for a tenant

    To configure a tenant so that all the users must work with two-factor authentication:

    1. Go to Users

    → edit Enterprise →
    1. Edit an enterprise and go to General

    2. Select the checkbox to Require two-factor authentication for all users in the enterprise

    Image Removed
    1. Click Save

    Select a checkbox to require two-factor authentication for a tenantImage Added


    2FA for users

    When a user’s enterprise requires two-factor authentication is required, the user must enable it from the username user icon menu.

    If Even if the enterprise does not require two-factor authentication is not required, the user may optionally can enable it for their own account from the username or user icon menu. To disable the display of the two factor authentication item in the username or user icon menu, the administrator can set the 

    For details of how the user must enable 2FA, see https://abiquo.atlassian.net/wiki/spaces/doc/pages/311370224/Starting+Abiquo+for+the+first+time#Use-two-factor-authentication.

    User icon menu with 2FA optionImage Added


    Remove the option for users to enable 2fa

    By default, the option to enable 2fa appears in the user icon menu. To remove the Two factor authentication option, edit the client-config-custom.json file, and set the following property:

    Code Block
    client.2fa.activated
     property to false in the UI configuration. See Configure Abiquo UI .

    See Starting Abiquo for the first time in the section Use two factor authentication.

    Image Removed
    =false

    For more details, see Configure Abiquo UI.


    Manage two factor authentication via the API

    To require 2fa mandatory for a tenant, edit the enterprise and set the value of the twoFactorAuthenticationMandatory attribute to true.

    To enable or disable 2fa for a user, post the authentication method to the action link of the user.

    ...