You are here

class MoAuthConstants in Google Authenticator / 2 Factor Authentication - 2FA 8.2

Same name and namespace in other branches
  1. 8 src/MoAuthConstants.php \Drupal\miniorange_2fa\MoAuthConstants

@file This class represents constants used throughout project.

Hierarchy

Expanded class hierarchy of MoAuthConstants

10 files declare their use of MoAuthConstants
authenticate_user.php in src/Form/authenticate_user.php
This is used to authenticate user during login.
configure_otp_over_sms_and_email.php in src/Form/configure_otp_over_sms_and_email.php
configure_qrcode_authentication.php in src/Form/configure_qrcode_authentication.php
miniorange_2fa.module in ./miniorange_2fa.module
Module file for miniOrange 2FA Module.
miniorange_2fa_inline_registration.php in src/Form/miniorange_2fa_inline_registration.php
Page 1: Select Email address. Page 2: Verify OTP. Page 3: Select Auth Method. Page 4: Configure Auth Method. Page 5: Configure KBA.

... See full list

File

src/MoAuthConstants.php, line 12
Contains constants class.

Namespace

Drupal\miniorange_2fa
View source
class MoAuthConstants {
  public static $PLUGIN_NAME = 'Drupal Two-Factor Plugin';
  public static $TRANSACTION_NAME = 'Drupal Two-Factor Module';
  public static $PREMIUM_PLAN = 'drupal8_2fa_premium_plan';
  public static $ADD_USER_PLAN = 'drupal8_2fa_add_user_plan';
  public static $RENEW_SUBSCRIPTION_PLAN = 'drupal8_2fa_renew_subscription_plan';
  public static $WBSITE_SECURITY = 'https://plugins.miniorange.com/drupal-web-security-pro';
  public static $DEFAULT_CUSTOMER_ID = '16622';
  public static $DEFAULT_CUSTOMER_API_KEY = 'XzjkmAaAOzmtJRmXddkXyhgDXnMCrdZz';
  public static $CUSTOMER_CHECK_API = '/rest/customer/check-if-exists';
  public static $CUSTOMER_CREATE_API = '/rest/customer/add';
  public static $CUSTOMER_GET_API = '/rest/customer/key';
  public static $CUSTOMER_CHECK_LICENSE = '/rest/customer/license';
  public static $SUPPORT_QUERY = '/rest/customer/contact-us';
  public static $USERS_CREATE_API = '/api/admin/users/create';
  public static $USERS_GET_API = '/api/admin/users/get';
  public static $USERS_UPDATE_API = '/api/admin/users/update';
  public static $USERS_SEARCH_API = '/api/admin/users/search';
  public static $AUTH_CHALLENGE_API = '/api/auth/challenge';
  public static $AUTH_VALIDATE_API = '/api/auth/validate';
  public static $AUTH_STATUS_API = '/api/auth/auth-status';
  public static $AUTH_REGISTER_API = '/api/auth/register';
  public static $AUTH_REGISTRATION_STATUS_API = '/api/auth/registration-status';
  public static $AUTH_GET_GOOGLE_AUTH_API = '/api/auth/google-auth-secret';
  public static $AUTH_GET_ALL_USER_API = '/api/admin/users/getall';

  /**
   * Function that handles the custom organization name
   */
  public static function getBaseUrl() {
    $getBrandingName = \Drupal::config('miniorange_2fa.settings')
      ->get('mo_auth_custom_organization_name');
    return "https://" . $getBrandingName . ".xecurify.com/moas";
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MoAuthConstants::$ADD_USER_PLAN public static property
MoAuthConstants::$AUTH_CHALLENGE_API public static property
MoAuthConstants::$AUTH_GET_ALL_USER_API public static property
MoAuthConstants::$AUTH_GET_GOOGLE_AUTH_API public static property
MoAuthConstants::$AUTH_REGISTER_API public static property
MoAuthConstants::$AUTH_REGISTRATION_STATUS_API public static property
MoAuthConstants::$AUTH_STATUS_API public static property
MoAuthConstants::$AUTH_VALIDATE_API public static property
MoAuthConstants::$CUSTOMER_CHECK_API public static property
MoAuthConstants::$CUSTOMER_CHECK_LICENSE public static property
MoAuthConstants::$CUSTOMER_CREATE_API public static property
MoAuthConstants::$CUSTOMER_GET_API public static property
MoAuthConstants::$DEFAULT_CUSTOMER_API_KEY public static property
MoAuthConstants::$DEFAULT_CUSTOMER_ID public static property
MoAuthConstants::$PLUGIN_NAME public static property
MoAuthConstants::$PREMIUM_PLAN public static property
MoAuthConstants::$RENEW_SUBSCRIPTION_PLAN public static property
MoAuthConstants::$SUPPORT_QUERY public static property
MoAuthConstants::$TRANSACTION_NAME public static property
MoAuthConstants::$USERS_CREATE_API public static property
MoAuthConstants::$USERS_GET_API public static property
MoAuthConstants::$USERS_SEARCH_API public static property
MoAuthConstants::$USERS_UPDATE_API public static property
MoAuthConstants::$WBSITE_SECURITY public static property
MoAuthConstants::getBaseUrl public static function Function that handles the custom organization name