function hybridauth_provider_esia_configuration_form_callback in HybridAuth Social Login 7.2
1 string reference to 'hybridauth_provider_esia_configuration_form_callback'
File
- plugins/
provider/ ESIA/ ESIA.inc, line 15 - HybridAuth ESIA specific settings.
Code
function hybridauth_provider_esia_configuration_form_callback(&$form, $provider_id) {
$app_settings =& $form['vtabs']['application'];
unset($app_settings['hybridauth_provider_' . $provider_id . '_keys_key']);
unset($app_settings['hybridauth_provider_' . $provider_id . '_keys_secret']);
$app_settings['hybridauth_provider_' . $provider_id . '_oauth2_server'] = array(
'#type' => 'textfield',
'#title' => t('OAuth2 Server'),
'#default_value' => variable_get('hybridauth_provider_' . $provider_id . '_oauth2_server', 'https://server.example.org'),
'#description' => t('Server to send authentication requests to, like the test one @link.', array(
'@link' => 'https://esia-portal1.test.gosuslugi.ru',
)),
'#weight' => -10,
);
$app_settings['hybridauth_provider_' . $provider_id . '_certificate_path'] = array(
'#type' => 'textfield',
'#title' => t('Certificate'),
'#default_value' => variable_get('hybridauth_provider_' . $provider_id . '_certificate_path', ''),
'#description' => t('Server path to the certificate file.'),
);
$app_settings['hybridauth_provider_' . $provider_id . '_private_key_path'] = array(
'#type' => 'textfield',
'#title' => t('Private key'),
'#default_value' => variable_get('hybridauth_provider_' . $provider_id . '_private_key_path', ''),
'#description' => t('Server path to the private key file.'),
);
$app_settings['hybridauth_provider_' . $provider_id . '_private_key_pass'] = array(
'#type' => 'textfield',
'#title' => t('Private key password'),
'#default_value' => variable_get('hybridauth_provider_' . $provider_id . '_private_key_pass', ''),
'#description' => t('Password for the private key.'),
);
$app_settings['hybridauth_provider_' . $provider_id . '_scope'] = array(
'#type' => 'textfield',
'#title' => t('Scope'),
'#default_value' => variable_get('hybridauth_provider_' . $provider_id . '_scope', 'openid http://esia.gosuslugi.ru/usr_inf'),
'#description' => t(''),
);
}