From 963a9ab35f58f1f3ff5ca2822aed3b908717bb68 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 7 Nov 2009 22:36:23 +0000 Subject: combined the two different pams into one and fixed an issue with hmac authentication git-svn-id: http://code.elgg.org/elgg/trunk@3635 36083f99-b078-4883-b0ff-0f9b5a30f544 --- services/api/rest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'services') diff --git a/services/api/rest.php b/services/api/rest.php index 8ac63022d..4d3e39aaa 100644 --- a/services/api/rest.php +++ b/services/api/rest.php @@ -34,8 +34,10 @@ if (trigger_plugin_hook('rest', 'init', null, false) == false) { // user token can also be used for user authentication register_pam_handler('pam_auth_usertoken'); - // for api authentication, we default to a simple API key check - register_api_auth_handler('api_auth_key'); + // simple API key check + register_pam_handler('api_auth_key', "sufficient", "api"); + // hmac + register_pam_handler('api_auth_hmac', "sufficient", "api"); } // Get parameter variables -- cgit v1.2.3