You are here

public function MiniorangeSAMLCustomer::sendOtp in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

Send OTP.

File

includes/customer_setup.php, line 77
Contains miniOrange Customer class.

Class

MiniorangeSAMLCustomer
@file This class represents configuration for customer.

Code

public function sendOtp() {
  $url = MiniorangeSAMLConstants::BASE_URL . '/moas/api/auth/challenge';
  $customer_key = $this->defaultCustomerId;
  $username = variable_get('miniorange_saml_customer_admin_email', NULL);
  $fields = array(
    'customerKey' => $customer_key,
    'email' => $username,
    'authType' => 'EMAIL',
  );
  return $this
    ->callService($url, $fields, true);
}