Versions Compared

Key

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

Table of Contents
maxLevel3

...

Introduction

Panel
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
titleDefinition

OTP Email MFA is a Multi-factor authentication plugin that sends a one-time password to a user's email providing an additional layer of security.

Multi-Factor Authentication (MFA) is  is a security best practice that adds an extra layer of protection on top of a username and password combination. By requiring an additional authentication code from a trusted device, MFA safeguards access to a user’s account even if the password is compromised.

Plugin Information

Plugins Available in the Bundle:

  1. OTP Email MFA

This plugin bundle is compatible with Joget DX 8 and Joget DX 7

Get Started

Prerequisites

1. Setup Set up SMTP values in the Joget App for the email tool to be working properly.

Image Modified

Figure 1: SMTP Settings

Refer to Sign in with app passwords to generate the password for SMTP Gmail.


For more details, please refer to to General Settings > SMTP Settings.    

SMTP settings in General settings will enable Joget DX to use these SMTP values as as global default values for  for all your apps.

Joget apps will ignore this global SMTP settings if the respective apps already has have the settings configured, either in the the Plugin Default Properties or  or Email Tool - Configure SMTP Settings page page.


Steps to Import this Plugin

1. Go to the website https://github.com/jogetoss/otp-email-mfa.

2. Go to the "Releases" page (See Figure 2).

Image Modified

Figure 2:Plugin Releases

3. Click on the .jar file to initiate the download (See Figure 3).

Image Modified

Figure 3: Download .jar file

4. Go to your Joget Workflow localhost or server and log in as admin.

5. In Joget Console navigate to "Admin Bar > Systems Settings > Manage Plugins" and click the "Upload Plugins" button.

6. In "Upload Plugin", select the plugin .jar file you just downloaded, then click "Upload".

7. You should be able to view the newly installed plugin under the "Installed Plugins" tab.

8. Remember to always uninstall the old plugin before uploading a new version.

9. The Joget Workflow Knowledge Base has more information on managing and developing plugins.


Steps to Use this Plugin

Steps for Administrators

1. Start the Joget server and open the the App Center.

2. Log in as admin, click on Settings in the admin bar, and navigate to Directory Manager Settings. (See Figure 4)

Image Modified 

Figure 4 :Directory Manager Settings


3.  Choose the  Choose the Security Enhanced Directory Manager in the Select Plugin field and select OTP Email MFA Authenticator for the  for the Multi-Factor Authenticator  Authenticator property. (See figure Figure 5)

Image Modified

Figure 5 : Multi Factor Authenticator


One-

...

Time Password OTP Email MFA Authenticator Properties

Configure One-time Password OTP Email MFA Authenticator

1. This configuration will determine the properties for of your OTP Email MFA Authenticator and the outcome of your plugin.
In General > Configure One-time Password Email MFA Authenticator


Image Modified
Figure 6: Configure OTP Password Email MFA Authenticator

NameDescription
Validity Period (minute)Expiration The expiration time for the One Time Password (OTP) sent to the user's email registered in the profile to remain remains valid in minutes. The default value is 5 minutes.
SubjectThe subject of the email with the OTP.
Message

The message is to be displayed in the email.


2. Then, in General > Configure One-time Password Email MFA Authenticator>Default Directory Password Policy

Image Modified

Figure 7 : Default Directory Password Policy


3.In General > Configure One-time Password Email MFA Authenticator>Default Directory Password Policy>Notification

Tip

If you leave the Notification tab below empty, Joget will read the default SMTP configuration values from the General Settings > SMTP Settings page.

Image Modified

Figure 8 Notification
4.The Notification for the OTP Email MFA Authenticator will be sent according to the SMTP settings in General Settings or in this Notification settings: Notification

 

Info
titleImportant
If you set the values in this Notification tab, this settings will ignore the values that you have set from the SMTP Settings > General Settings and send notification based on the configured values here.
NameDescription
HostKey in your mail server address, either via domain name or IP address. 
PortKey in your mail server port number.
SecurityKey in either TLS or SSL depending on your mail server.
UsernameKey in the sender email username.
PasswordKey in the sender email password
From Email AddressKey in the sender email address to be shown to the recipient.

5.The settings here can be left empty if you are using the same values as the SMTP settings in General Settings.

From

Sender email address.

Info
titleExample

no-reply@your-company-name.com

SMTP Host

Email Server SMTP Host

Info
titleExample

smtp.gmail.com

SMTP Port

Email Server SMTP Port

Info

Typically, port 465 for SSL security option and 587 for TLS

Security
  • None
  • TLS
  • SSL

Alternatively, you can click on the "hash" symbol to allow the input of hash variables.

SMTP Username

Email Server Account Username

Info

On Google email account, use your full email address.

SMTP Password

Email Server Account Password

Info

Password submitted will be encrypted for security reason.

CC

Fully qualified address is expected.

Multiple values can be accepted by separating them with semicolons.

Info

CC: lets you send a copy of a message to someone who's interested, but is not the primary recipient.

HTML Content?

Check if "Message" is intended to be a HTML content.

User Creation (Subject)

Email Subject.

User Creation (Message)

Email Message.

Info
titleQuick Test

Hit on the "Send Test Email" button to quickly validate and test the email settings.


6.Before submitting the 6. Before submitting the OTP Email MFA Authenticator, you may may click on Send Test Email Email to verify your Email configuration (See Figure 9)

Image Modified

Figure 9: Send Test Email


7. Once all configurations have been inspected and tested, you may submit the OTP Email MFA Authenticator to Enable it. Once enabled, users will be able to enable MFA individually in their User profile.

8. Optionally, you may also activate all userusers to use OTP Email MFA Authenticator by default by adding their username as entries into the dir_user_meta table. 

Here's an sql SQL query where you can do so :

Code Block
insert into dir_user_meta (username, meta_key, meta_value) 
    select username,'OTP_EMAIL','enabled' 
    from dir_user t1
    where not exists(
        select id 
        from dir_user_meta t2
        where t2.username = t1.id
    );

9. This query will add all the existing users in the dir_user table into the dir_user_meta table with the following values :

username : <username>

meta_key : OTP_EMAIL

meta_value : enabled

The "where not existsexist" clause is to check and skip for existing users already having otp enabled.

Joget authentication will automatically check if the user exists in this table and prompt them with the "please enter OTP" message.


Steps for Users

1. Users can activate OTP Email MFA Authenticator in their respective user profiles by clicking the "Activate" button. (See Figure 10)

Image Modified

Figure 10: Activate button

2. Before activating OTP Email MFA Authenticator, users should make sure that a valid and working email has been registered in their profile under the User Details section as the email containing the OTP will be sent to this registered email.

3. A popup dialog will appear showing a Password field to submit the email OTP sent to the user. If the code is valid, OTP Email MFA will be activated (See Figure 11).

Image Modified

Figure 11:Password  Password field to submit the email OTP sent to the user

4. The users should always remember to save their user profile after activating MFA.

5. On subsequent logins, the users will be prompted for an OTP password which will always be sent to the user's email.


Deactivating Multi-Factor Authentication

1. As a user, you can disable OTP Email MFA Authenticator by clicking on the the Deactivate button  button in your user profile. (See Figure 12)

Image Modified

Figure 12: Deactivate 

2. Administrators  Administrators can also disable MFA for a specific user by selecting the Setup Users under Users in the admin bar and clicking on the Deactivate MFA button. (See Figure 13)

Image Modified

Figure 13 :Deactivate MFA button 


Disable the Deactivate MFA button for all users in their profile section

  1. Administrator can hide/(disable) the Deactivate MFA button from all users profile section to prevent users from individually disabling the MFA.
  2. To achieve this, you can add this css to the application UI that you want to hide the button from at UI Builder > Settings > Configure [theme name] > Custom CSS
Code Block
.form-input.deactivate .form-button.btn.button[value='Deactivate']{
  display: none !important;
}


Image Added

Figure 13 : Apply Custom CSS in UI Builder > Settings > Configure [theme name] > Custom CSS

3.Expected outcome on the implementation of the CSS code:
The Deactivate MFA button is hidden/disabled for the user to access nor view it.


Image Added

Figure 14 : Expected outcome > Deactivate MFA button is not visible



Related Documentation

General Settings

Security Enhanced Directory Manager