Commit 0b97767e authored by Zachary Seguin's avatar Zachary Seguin
Browse files

RT#564655 Correct configuration of Services API authentication

parent 21dbb970
......@@ -8,9 +8,6 @@
* Implements hook_default_services_endpoint().
*/
function uw_ct_event_default_services_endpoint() {
$web_service_user = user_load_by_name('WCMS web service user');
$web_service_user_id = $web_service_user->uid;
$export = array();
$endpoint = new stdClass();
......@@ -22,7 +19,8 @@ function uw_ct_event_default_services_endpoint() {
$endpoint->authentication = array(
'services_api_key_auth' => array(
'api_key' => '96ab9383e6ad48c23aa1504dc9cc5c52',
'user' => $web_service_user_id,
'api_key_source' => 'request',
'user' => 'WCMS web service user',
),
);
$endpoint->server_settings = array();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment