You are here

public function OpenIDConnectClientBase::settingsForm in OpenID Connect / OAuth client 7

Returns the settings form.

The client settings form is embedded into the module's main settings form, and the configured values are injected into the client class through the constructor.

Overrides OpenIDConnectClientInterface::settingsForm

1 call to OpenIDConnectClientBase::settingsForm()
OpenIDConnectClientGeneric::settingsForm in plugins/openid_connect_client/generic/OpenIDConnectClientGeneric.class.php
Returns the settings form.
1 method overrides OpenIDConnectClientBase::settingsForm()
OpenIDConnectClientGeneric::settingsForm in plugins/openid_connect_client/generic/OpenIDConnectClientGeneric.class.php
Returns the settings form.

File

includes/OpenIDConnectClientBase.class.php, line 74
Base class for OpenID Connect clients.

Class

OpenIDConnectClientBase
Base class for OpenID Connect clients.

Code

public function settingsForm() {
  $form['client_id'] = array(
    '#title' => t('Client ID'),
    '#type' => 'textfield',
    '#default_value' => $this
      ->getSetting('client_id'),
  );
  $form['client_secret'] = array(
    '#title' => t('Client secret'),
    '#type' => 'textarea',
    '#default_value' => $this
      ->getSetting('client_secret'),
  );
  return $form;
}