You are here

function _invoice_api_authenticate in Invoice 7

Authenticates through basic HTTP authentication

1 call to _invoice_api_authenticate()
_invoice_api_dispatch in ./invoice_api.inc
Invoice API dispatcher

File

./invoice_api.inc, line 81

Code

function _invoice_api_authenticate() {

  /**
   * Remove any previous sessions to stay stateless
   */
  $sessionId = session_id();
  _drupal_session_destroy($sessionId);
  _invoice_api_check_user_pass();
  _invoice_api_check_allowed_ips();
}