HTTP basic authentication

Set this as default authentication, providing codeception test case
This commit is contained in:
paolo
2016-04-15 15:41:38 +02:00
parent aec2e7b5ac
commit 9aef5dcc30
12 changed files with 4329 additions and 75 deletions
+6 -5
View File
@@ -110,7 +110,7 @@ $config['rest_realm'] = 'FHC REST API';
| authorization key
|
*/
$config['rest_auth'] = 'digest';
$config['rest_auth'] = 'basic';
/*
|--------------------------------------------------------------------------
@@ -119,7 +119,8 @@ $config['rest_auth'] = 'digest';
|
| Is login required and if so, the user store to use
|
| '' Use config based users or wildcard testing
| '' Use config based users or wildcard testing, only for testing purpose
| it would be very unsecure to let unset in a production environment
| 'ldap' Use LDAP authentication
| 'library' Use a authentication library
|
@@ -145,10 +146,10 @@ $config['auth_source'] = 'library';
$config['auth_library_class'] = 'FHC_Auth';
// rest_auth is basic
//$config['auth_library_function'] = 'auth';
$config['auth_library_function'] = 'basicAuthentication';
// rest_auth is digest
$config['auth_library_function'] = 'digestAuthentication';
//$config['auth_library_function'] = 'digestAuthentication';
/*
|--------------------------------------------------------------------------
@@ -515,4 +516,4 @@ $config['rest_ajax_only'] = FALSE;
| Language file to load from the language directory
|
*/
$config['rest_language'] = 'en-US';
$config['rest_language'] = 'en-US';