You are here

function _services_client_connection_auth in Services Client 7.2

Same name and namespace in other branches
  1. 7 services_client_connection/include/plugin_definition.inc \_services_client_connection_auth()

List of auth plugins provided by module

1 call to _services_client_connection_auth()
services_client_connection_services_client_connection_auth in services_client_connection/services_client_connection.module
Implementation of hook_services_client_connection_auth().

File

services_client_connection/include/plugin_definition.inc, line 11
Plugin definition

Code

function _services_client_connection_auth() {
  $path = drupal_get_path('module', 'services_client_connection') . '/plugins';
  $info = array();
  $info['ServicesClientConnectionSessionAuth'] = array(
    'name' => 'Session Authentication',
    'description' => 'Provides session authentication against services module',
    'services_version' => array(
      1,
      3,
    ),
    'handler' => array(
      'parent' => 'ServicesClientConnectionAuth',
      'class' => 'ServicesClientConnectionSessionAuth',
      'file' => 'ServicesClientConnectionSessionAuth.inc',
      'path' => $path,
    ),
  );
  $info['ServicesClientConnectionBasicAuth'] = array(
    'name' => 'HTTP Basic Authentication',
    'description' => 'Provides http basic authentication against services module',
    'services_version' => array(
      1,
      3,
    ),
    'handler' => array(
      'parent' => 'ServicesClientConnectionAuth',
      'class' => 'ServicesClientConnectionBasicAuth',
      'file' => 'ServicesClientConnectionBasicAuth.inc',
      'path' => $path,
    ),
  );
  return $info;
}