Implemented storage of authentication token in database and cookies (latter are isolated per domain)
This commit is contained in:
@ -18,8 +18,6 @@ return (object) array(
|
||||
// Specify the NetBios name of the domain; to allow users to log on with just their usernames.
|
||||
],
|
||||
|
||||
'DomainNames' => ['*.subdomain.domain.{(tld1|tld2)}'],
|
||||
|
||||
'Sqlite' => [
|
||||
'Path' => '../data/lucidAuth.sqlite.db'
|
||||
// Relative path to the location where the database should be stored
|
||||
@ -30,7 +28,7 @@ return (object) array(
|
||||
|
||||
'JWT' => [
|
||||
'PrivateKey_base64' => '',
|
||||
// A base64-encoded string of a random string (see https://www.base64encode.org/)
|
||||
// A base64-encoded random (preferably long) string (see https://www.base64encode.org/)
|
||||
'Algorithm' => [
|
||||
'HS256',
|
||||
]
|
||||
@ -39,7 +37,11 @@ return (object) array(
|
||||
'Session' => [
|
||||
'Duration' => 2592000,
|
||||
// In seconds (2592000 is equivalent to 30 days)
|
||||
# 'CookiePrefix' => 'lucidAuth_'
|
||||
'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)
|
||||
],
|
||||
|
||||
'Debug' => [
|
||||
|
Reference in New Issue
Block a user