You are here

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

Check if customer exists.

File

src/MiniorangeSAMLCustomer.php, line 38
Contains miniOrange Customer class.

Class

MiniorangeSAMLCustomer

Namespace

Drupal\miniorange_saml

Code

public function checkCustomer() {
  $url = MiniorangeSAMLConstants::CUSTOMER_CHECK_API;
  $fields = array(
    'email' => $this->email,
  );
  $api = new MoAuthApi();
  return $api
    ->makeCurlCall($url, $fields);
}