mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 18:02:18 +00:00
RESTv1
This commit is contained in:
@@ -94,7 +94,7 @@ $config['enable_emulate_request'] = TRUE;
|
||||
| e.g: My Secret REST API
|
||||
|
|
||||
*/
|
||||
$config['rest_realm'] = 'REST API';
|
||||
$config['rest_realm'] = 'FHC REST API';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -110,7 +110,7 @@ $config['rest_realm'] = 'REST API';
|
||||
| authorization key
|
||||
|
|
||||
*/
|
||||
$config['rest_auth'] = FALSE;
|
||||
$config['rest_auth'] = 'session';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -126,7 +126,7 @@ $config['rest_auth'] = FALSE;
|
||||
| Note: If 'rest_auth' is set to 'session' then change 'auth_source' to the name of the session variable
|
||||
|
|
||||
*/
|
||||
$config['auth_source'] = 'ldap';
|
||||
$config['auth_source'] = 'RestAPISession';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -144,8 +144,8 @@ $config['auth_source'] = 'ldap';
|
||||
| e.g: md5('admin:REST API:1234') = '1e957ebc35631ab22d5bd6526bd14ea2'
|
||||
|
|
||||
*/
|
||||
$config['auth_library_class'] = '';
|
||||
$config['auth_library_function'] = '';
|
||||
$config['auth_library_class'] = 'FHCAuth';
|
||||
$config['auth_library_function'] = 'auth';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -353,7 +353,7 @@ $config['rest_key_length'] = 40;
|
||||
| 2012/06/12. See RFC 6648 specification for more details
|
||||
|
|
||||
*/
|
||||
$config['rest_key_name'] = 'WSP-API-KEY';
|
||||
$config['rest_key_name'] = 'FHC-API-KEY';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user