Minor items
This commit is contained in:
parent
8f8b50d630
commit
bdff9462d3
@ -26,7 +26,7 @@ You'll then need to configure the following:
|
||||
DB_CONNECTION=sqlite # Your databsae configuration (must the same as SQRL_DATABASE below)
|
||||
...
|
||||
SQRL_DATABASE=sqlite # Points to the SQRL database connection
|
||||
SQRL_URL_LOGIN=https://site/sqrl/login # URL to your login page (not used with LUMEN
|
||||
SQRL_URL_LOGIN=https://site/sqrl/login # URL to the page after successful authentication
|
||||
SQRL_KEY_DOMAIN=site # URL to yours SQRL Server without http:// and https:// SQRL_API_ROUTE=/index.php/api/sqrl # Route to SQRL Server API
|
||||
SQRL_NONCE_MAX_AGE_MINUTES=5 # Max age in minutes of the valid nonce
|
||||
SQRL_NONCE_SALT=RANDOM # Generate a random salt value to calculate the nonce
|
||||
|
@ -52,6 +52,7 @@ class Nonce
|
||||
$o->can = SQRL::base64_encode_url($can);
|
||||
$o->save();
|
||||
|
||||
Log::debug(sprintf('NUT [%s] created for (%s)',$o->nonce,$o->ip));
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
@ -100,11 +100,11 @@ class SQRLController extends Controller
|
||||
} else {
|
||||
foreach (['ver','cmd'] as $y)
|
||||
Log::debug(sprintf('API-client-%s [%s]',str_pad($y,5,' '),Arr::get($decode_request,'client.'.$y)));
|
||||
Log::debug(sprintf('API-client-opt [%s]',join('|',Arr::get($decode_request,'client.opt'))));
|
||||
Log::debug(sprintf('API-client-idk [%s]',base64_encode(Arr::get($decode_request,'client.idk'))));
|
||||
Log::debug(sprintf('API-server [%s]',serialize(Arr::get($decode_request,'server'))));
|
||||
Log::debug(sprintf('API-client-opt [%s]',join('|',Arr::get($decode_request,'client.opt'))));
|
||||
Log::debug(sprintf('API-client-idk [%s]',base64_encode(Arr::get($decode_request,'client.idk'))));
|
||||
Log::debug(sprintf('API-server [%s]',serialize(Arr::get($decode_request,'server'))));
|
||||
|
||||
Log::debug(sprintf('API-type [%s]',$sqrl_nonce->type));
|
||||
Log::debug(sprintf('API-type [%s]',$sqrl_nonce->type));
|
||||
|
||||
switch ($sqrl_nonce->type) {
|
||||
case 'auth':
|
||||
|
Loading…
Reference in New Issue
Block a user