You are here

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

1 call to MiniorangeSAMLCustomer::getCustomerDetails()
MiniorangeSAMLCustomer::getHeader in includes/customer_setup.php

File

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

Class

MiniorangeSAMLCustomer
@file This class represents configuration for customer.

Code

public function getCustomerDetails() {
  $customerKey = variable_get('miniorange_saml_customer_id');
  $apikey = variable_get('miniorange_saml_customer_api_key');
  if (!is_null($customerKey) && !is_null($apikey) && !empty($customerKey) && !empty($apikey)) {
    return array(
      $customerKey,
      $apikey,
    );
  }
  else {
    return array(
      $this->defaultCustomerId,
      $this->defaultCustomerApiKey,
    );
  }
}