You are here

public function ServicesClientConnectionSessionAuth::configForm in Services Client 7

Same name and namespace in other branches
  1. 7.2 services_client_connection/plugins/ServicesClientConnectionSessionAuth.inc \ServicesClientConnectionSessionAuth::configForm()

Implements configForm().

Overrides ServicesClientConnectionPlugin::configForm

File

services_client_connection/plugins/ServicesClientConnectionSessionAuth.inc, line 33
Session authentication for 3.x version

Class

ServicesClientConnectionSessionAuth
@file Session authentication for 3.x version

Code

public function configForm(&$form, &$form_state) {
  $form['username'] = array(
    '#type' => 'textfield',
    '#title' => t('Username'),
    '#default_value' => isset($this->config['username']) ? $this->config['username'] : '',
  );
  $form['password'] = array(
    '#type' => 'textfield',
    '#title' => t('Password'),
    '#default_value' => isset($this->config['password']) ? $this->config['password'] : '',
  );
  $form['token'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use tokens'),
    '#description' => t("Services 3.5+ requires CSRF tokens in each request."),
    '#default_value' => isset($this->config['token']) ? $this->config['token'] : '',
  );
}