2019-01-16 10:37:35 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
error_reporting(E_ALL & ~E_NOTICE);
|
|
|
|
|
|
|
|
include_once('include/JWT/JWT.php');
|
|
|
|
|
|
|
|
return (object) array(
|
|
|
|
'LDAP' => [
|
|
|
|
'Server' => 'server.domain.tld',
|
|
|
|
// FQDN of the LDAP-server
|
|
|
|
'Port' => 389,
|
|
|
|
// Port of the LDAP-server; default port is 389
|
|
|
|
'BaseDN' => 'OU=Users,DC=domain,DC=tld',
|
|
|
|
// Location of your useraccounts
|
|
|
|
// Syntax:
|
|
|
|
// 'OU=container,DC=domain,DC=tld'
|
|
|
|
'Domain' => 'domain'
|
|
|
|
// Specify the NetBios name of the domain; to allow users to log on with just their usernames.
|
|
|
|
],
|
|
|
|
|
|
|
|
'Sqlite' => [
|
2019-01-23 21:08:30 +00:00
|
|
|
'Path' => '../data/lucidAuth.sqlite.db'
|
2019-01-16 10:37:35 +00:00
|
|
|
// Relative path to the location where the database should be stored
|
|
|
|
],
|
|
|
|
|
|
|
|
'ApiKeyFile' => 'externalResource.api.key',
|
|
|
|
// File containing your <externalresource> token
|
|
|
|
|
|
|
|
'JWT' => [
|
2019-01-24 16:17:53 +00:00
|
|
|
'PrivateKey_base64' => '',
|
2019-01-28 10:48:05 +00:00
|
|
|
// A base64-encoded random (preferably long) string (see https://www.base64encode.org/)
|
2019-01-16 10:37:35 +00:00
|
|
|
'Algorithm' => [
|
|
|
|
'HS256',
|
|
|
|
]
|
|
|
|
],
|
|
|
|
|
2019-01-24 16:17:53 +00:00
|
|
|
'Session' => [
|
|
|
|
'Duration' => 2592000,
|
2019-01-16 10:37:35 +00:00
|
|
|
// In seconds (2592000 is equivalent to 30 days)
|
2019-01-28 10:48:05 +00:00
|
|
|
'CookieDomains' => [
|
|
|
|
'domain1.tld' #, 'domain2.tld', 'subdomain.domain3.tld'
|
|
|
|
]
|
|
|
|
// Domain(s) that will be used to set cookie-domains to
|
|
|
|
// (multiple domains are allowed; remove the '#' above)
|
2019-01-16 10:37:35 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'Debug' => [
|
|
|
|
'Verbose' => False,
|
|
|
|
'LogToFile' => False
|
|
|
|
]
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
?>
|