Skip to content
Snippets Groups Projects
Select Git revision
  • 2.1.0
  • 1.0.x default
  • 2.1.x
  • 2.0.x
  • 8.x-1.x
  • 2.0.9
  • 2.0.8
  • 2.0.7
  • 2.0.6
  • 2.0.5
  • 2.0.4
  • 2.0.3
  • 2.0.2
  • 2.0.1
  • 2.0
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
22 results

tfa_headless

  • Open with
  • Download source code
  • Your workspaces

      A workspace is a virtual sandbox environment for your code in GitLab.

      No agents available to create workspaces. Please consult Workspaces documentation for troubleshooting.

  • TFA Headless

    Provides headless TFA support for Google Authenticator, using the TFA Module.

    Features

    The module exists of 4 endpoints:

    /api/totp/generate

    Generates an uri for a QR code and a seed.

    /api/totp/status

    Checks the status of the user, if TFA is enabled or not.

    /api/totp/register

    Registers the user so it can use TFA

    /api/totp/login

    Checks if the user is authorized to login with the given code.

    Setup

    • composer require drupal/tfa_headless
    • drush en tfa_headless The endpoints can be enabled under Settings > Webservices > REST. Don't forget to set the necessary permissions per endpoint to the desired roles.

    Additional Requirements

    Depends on the module TFA. Uses REST to provide the endpoints. RESTUI is a nice to have. This projects enables it by default.