Search Results :
×Secure Headless/Decoupled Drupal with a robust Two Factor Authentication (2FA) using Drupal Two Factor Authentication - 2FA / Passwordless Login. This guide will help to configure Two-Factor Authentication (2FA / MFA) for Headless Drupal site. Drupal 2FA module will add a second layer of authentication to Drupal account to increase the security of site from unwanted hacks and unauthorized login attempts. The Drupal Two Factor Authentication - 2FA / Passwordless Login is available for Drupal 7, Drupal 8, Drupal 9 and Drupal 10.
composer require 'drupal/miniorange_2fa'
{BaseURL}/admin/config/people/miniorange_2fa/customer_setup
drush en miniorange_2fa
drush cr
{BaseURL}/admin/config/people/miniorange_2fa/customer_setup
{BaseURL}/admin/config/people/miniorange_2fa/customer_setup
API: POST {drupal-base-URL}/headless/authenticate.
What you will send:
{"username":"xxxxx","password":"xxxxx","apiKey":"xxxxx"}
If successful, you will receive back the following response:
{"username":"xxxxx","status":"SUCCESS","message":"xxxxx","transactionID":"xxxxx","authType":"xxxxx"}
PARAMETER | TYPE | REQUIRED? | DESCRIPTION |
---|---|---|---|
username | string | required | Entered by the user on the login form. |
password | string | required | Entered by the user on the login form. |
apiKey | string | required | Send the apiKey provided in the module. |
API: POST {drupal-base-URL}/headless/login
What you will send:
{"username":"xxxxx","transactionID":"xxxxx","authType":"xxxxx","otp":"xxxxx","apiKey":"xxxxx"}
If successful, you will receive back the following response:
{"username":"xxxxx","status":"SUCCESS","message":"xxxxx","userprofile":"xxxxx"}
PARAMETER | TYPE | REQUIRED? | DESCRIPTION |
---|---|---|---|
username | string | required | You will get this in response to the first API call. |
transactionID | string | required | You will get this in response to the first API call. |
authType | string | required | You will get this in response to the first API call. |
otp | string | required | You will get this in response to the first API call. |
apiKey | string | required | Send the apiKey provided in the module. |
ERROR CODE | DESCRIPTION |
---|---|
400 Authentication Failed | API Authentication Failed |
404 Not Found | Headless 2FA setting is not enabled. Please enable the same under the Headless 2FA Setup tab of the module. |
401 Unauthorized | User has entered invalid credentials (username/password) |
403 Forbidden | User has entered the incorrect OTP (One time passcode) |
500 Internal Server Error | You will get 500 Internal Server Error due to various reasons, please check Drupal logs for more details. |
Explore the advanced features offered by the module with full-featured trial. You can initiate the trial request using Request 7-day trial button under Register/Login tab of the module or reach out to us at drupalsupport@xecurify.com for one-on-one assistance from Drupal expert.
Need Help? We are right here!
Thanks for your inquiry.
If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com
This privacy statement applies to miniorange websites describing how we handle the personal information. When you visit any website, it may store or retrieve the information on your browser, mostly in the form of the cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not directly identify you, but it can give you a more personalized web experience. Click on the category headings to check how we handle the cookies. For the privacy statement of our solutions you can refer to the privacy policy.
Necessary cookies help make a website fully usable by enabling the basic functions like site navigation, logging in, filling forms, etc. The cookies used for the functionality do not store any personal identifiable information. However, some parts of the website will not work properly without the cookies.
These cookies only collect aggregated information about the traffic of the website including - visitors, sources, page clicks and views, etc. This allows us to know more about our most and least popular pages along with users' interaction on the actionable elements and hence letting us improve the performance of our website as well as our services.