From 6e2b5c0ca6453912c704625519294f1a2573043e Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 16 Jan 2019 14:40:06 +0100 Subject: [PATCH] Initialized IDE-project with existing files --- include/lucidAuth.functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/lucidAuth.functions.php b/include/lucidAuth.functions.php index 438fd4c..57337c7 100644 --- a/include/lucidAuth.functions.php +++ b/include/lucidAuth.functions.php @@ -18,10 +18,10 @@ function authenticateLDAP (string $username, string $password) { $strFullname = ldap_get_entries($ds, $ldapSearchResults)[0]['cn'][0]; // Create JWT-payload $jwtPayload = [ - 'iat' => time(), // Issued at: time when the token was generated - 'iss' => $_SERVER['SERVER_NAME'], // Issuer - 'sub' => $strGivenname, // Subject (ie. username) - 'name' => $strFullname // Full name (as retrieved from AD) + 'iat' => time(), // Issued at: time when the token was generated + 'iss' => $_SERVER['SERVER_NAME'], // Issuer + 'sub' => $strGivenname, // Subject (ie. username) + 'name' => $strFullname // Full name (as retrieved from AD) ]; $secureToken = JWT::encode($jwtPayload, base64_decode($settings->JWT['PrivateKey_base64']));