function auth0_basic_settings_form in Auth0 Single Sign On 7.2
The Auth0 basic configuration settings form callback.
1 string reference to 'auth0_basic_settings_form'
- auth0_menu in ./
auth0.module - Implements hook_menu().
File
- ./
auth0.module, line 671
Code
function auth0_basic_settings_form($form, &$form_state) {
if (!auth0_check_dependencies()) {
// Set message.
auth0_missing_dependencies_message();
}
$form['auth0_domain'] = array(
'#type' => 'textfield',
'#title' => t('Domain'),
'#default_value' => variable_get('auth0_domain', ''),
'#description' => t('Your Auth0 domain, you can see it in the auth0 dashboard.'),
'#required' => TRUE,
);
$form['auth0_client_id'] = array(
'#type' => 'textfield',
'#title' => t('Client id'),
'#default_value' => variable_get('auth0_client_id', ''),
'#description' => t('Application id, copy from the auth0 dashboard.'),
'#required' => TRUE,
);
$form['auth0_client_secret'] = array(
'#type' => 'textfield',
'#title' => t('Client secret'),
'#default_value' => variable_get('auth0_client_secret', ''),
'#description' => t('Application secret, copy from the auth0 dashboard.'),
'#required' => TRUE,
);
$form['auth0_secret_base64_encoded'] = array(
'#type' => 'checkbox',
'#title' => t('Client Secret is Base64 Encoded'),
'#default_value' => variable_get('auth0_secret_base64_encoded', FALSE),
'#description' => t('This is stated below the client secret in your Auth0 Dashboard for the client. If your client was created after September 2016, this should be false.'),
);
$form['auth0_jwt_signature_alg'] = array(
'#type' => 'select',
'#title' => t('JWT Signature Algorithm'),
'#options' => [
'HS256' => t('HS256'),
'RS256' => t('RS256'),
],
'#default_value' => variable_get('auth0_jwt_signature_alg', 'HS256'),
'#description' => t('Your JWT Signing Algorithm for the ID token. RS256 is recommended, but must be set in the advanced settings under oauth for this client.'),
'#required' => TRUE,
);
return system_settings_form($form);
}