function _services_keyauth_security_settings in Services 7
Same name and namespace in other branches
- 6.2 auth/services_keyauth/services_keyauth.inc \_services_keyauth_security_settings()
@file The implementation of the key authentication scheme
1 call to _services_keyauth_security_settings()
- _services_keyauth_security_settings_submit in auth/
services_keyauth/ services_keyauth.inc
1 string reference to '_services_keyauth_security_settings'
- services_keyauth_authentication_info in auth/
services_keyauth/ services_keyauth.module - Implements hook_authentication_info().
File
- auth/
services_keyauth/ services_keyauth.inc, line 8 - The implementation of the key authentication scheme
Code
function _services_keyauth_security_settings() {
$form['security']['options']['services_use_key'] = array(
'#type' => 'checkbox',
'#title' => t('Use keys'),
'#default_value' => variable_get('services_use_key', TRUE),
'#description' => t('When enabled all method calls need to provide a validation token to autheciate themselves with the server.'),
);
$form['security']['options']['services_key_expiry'] = array(
'#type' => 'textfield',
'#prefix' => "<div id='services-key-expiry'>",
'#suffix' => "</div>",
'#title' => t('Token expiry time'),
'#default_value' => variable_get('services_key_expiry', 30),
'#description' => t('The time frame for which the token will be valid. Default is 30 secs'),
);
$form['security']['options']['services_use_sessid'] = array(
'#type' => 'checkbox',
'#title' => t('Use sessid'),
'#default_value' => variable_get('services_use_sessid', TRUE),
'#description' => t('When enabled, all method calls must include a valid sessid. Only disable this setting if the application will user browser-based cookies.'),
);
return $form;
}