You are here

public function DeployAuthenticatorSession::configForm in Deploy - Content Staging 7.2

Same name and namespace in other branches
  1. 7.3 plugins/DeployAuthenticatorSession.inc \DeployAuthenticatorSession::configForm()

Defines the configuration form for the authenticator.

Parameters

array $form_state: The complete form state.

Return value

array An array representing the configuation form.

Overrides DeployAuthenticator::configForm

File

plugins/DeployAuthenticatorSession.inc, line 160
Session based authentication plugin.

Class

DeployAuthenticatorSession
Authentication class that uses session authentication.

Code

public function configForm(&$form_state) {
  return array(
    'username' => array(
      '#type' => 'textfield',
      '#title' => t('Username'),
      '#description' => t('Enter the username that you want to authenticate with on this endpoint.'),
      '#default_value' => $this->config['username'],
    ),
    'password' => array(
      '#type' => 'password',
      '#title' => t('Password'),
      '#description' => t('Enter the password that you want to authenticate with on this endpoint.'),
      '#default_value' => $this->config['password'],
    ),
  );
}