DownloadDigest Authentication
  
 
  
Digest Authentication RFC 2617 for Lumen 5.x 
Installation
Installation using composer: 
composer require darkin1/digest-auth
 
And add the service provider in config/app.php: 
Darkin1\DigestAuth\DigestAuthServiceProvider::class,
 
Configuration
Change your default settings in app/config/digest-auth.php: 
<?php
return [
    'realm' => env('DIGEST_REALM', ''),
    'user' => env('DIGEST_USER', ''),
    'password' => env('DIGEST_PASS', ''),
    'driver' => env('DIGEST_DRIVER', 'env'),
];
 
Documentation
Digest Authentication RCF 
php.net example  |