function restws_basic_auth_restws_request_alter in RESTful Web Services 7.2
Same name and namespace in other branches
- 7 restws_basic_auth/restws_basic_auth.module \restws_basic_auth_restws_request_alter()
Implements hook_restws_request_alter().
File
- restws_basic_auth/
restws_basic_auth.module, line 54 - Basic authentication login - module file.
Code
function restws_basic_auth_restws_request_alter(array &$request) {
// Disable page caching for security reasons so that an authenticated user
// response never gets into the page cache for anonymous users.
// This is necessary because the page cache system only looks at session
// cookies, but not at HTTP Basic Auth headers.
drupal_page_is_cacheable(FALSE);
}