ngabor84/laravel-escher-auth
Escher Auth Middleware
Escher authentication middleware for the Laravel and Lumen framework.
About
This package allows you to authenticate the incoming requests with Escher authentication.
Installation
Require the ngabor84/laravel-escher-auth package in your composer.json and update your dependencies:
composer require ngabor84/laravel-escher-auth
Usage with Laravel
Add the service provider to the providers array in the config/app.php config file as follows:
'providers' => [
...
\Middleware\Auth\Escher\Providers\LaravelServiceProvider::class,
]
Run the following command to publish the package config file:
php artisan vendor:publish --provider="Middleware\Auth\Escher\Providers\LaravelServiceProvider"
You should now have a config/escher.php file that allows you to configure the basics of this package.
Usage with Lumen
Add the following snippet to the bootstrap/app.php file under the providers section as follows:
$app->register(\Middleware\Auth\Escher\Providers\LumenServiceProvider::class);
...
$app->configure('escher');
Create a config directory (if it's not exist), and create an escher.php in it with the plugin configuration like this:
return [
'hashAlgo' => 'SHA256',
'algoPrefix' => 'EMS',
'vendorKey' => 'EMS',
'authHeaderKey' => 'X-EMS-Auth',
'dateHeaderKey' => 'X-EMS-Date',
'clockSkew' => '300',
'credentialScope' => env('ESCHER_CREDENTIAL_SCOPE'),
'keyDB' => env('ESCHER_KEY_DB'),
];
Related Packages
This package provides a flexible way to add Role-based Permissions to Laravel/Lu...
This package provides a flexible way to add Role-based Permissions to Laravel/Lu...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 3.2.0 | ^8.4 | ^11.0 | | MIT | |
| 3.1.0 | ^8.2 | ^v11.26 | MIT | |
| 3.0.1 | ^8.1 | ^v10.13 | MIT | |
| 3.0.0 | ^8.1 | ^v10.13 | MIT | |
| 2.0.0 | ^8.0 | ^v9.9 | MIT | |
| 1.0.1 | ^7.3| | ^v8.41 | MIT | |
| 1.0.0 | ^7.3| | ^v8.41 | MIT | |
| 0.6.0 | >=7.3 | ^7.16 | MIT | |
| 0.5.0 | >=7.3 | ^6.6 | MIT | |
| 0.4.1 | >=7.3 | ^6.6 | MIT | |
| 0.4.0 | >=7.3 | ^6.6 | MIT | |
| 0.3.3 | >=7.1 | ^5.7 | MIT | |
| 0.3.2 | >=7.1 | ^5.7 | MIT | |
| 0.3.1 | >=7.1 | ^5.7 | MIT | |
| 0.3.0 | >=7.1 | ^5.7 | MIT | |
| 0.2.0 | >=7.1 | ^5.7 | MIT | |
| 0.1.5 | >=7.1 | ^5.7 | MIT | |
| 0.1.4 | >=7.1 | ^5.7 | MIT | |
| 0.1.3 | >=7.1 | ^5.7 | MIT | |
| 0.1.2 | >=7.1 | ^5.7 | MIT | |
| 0.1.1 | >=7.1 | ^5.7 | MIT | |
| 0.1.0 | >=7.1 | ^5.7 | MIT |