ngabor84/laravel-escher-auth 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ngabor84/laravel-escher-auth

最新稳定版本:3.1.0

Composer 安装命令:

composer require ngabor84/laravel-escher-auth

包简介

Escher authentication middleware for the Laravel and Lumen framework

README 文档

README

GitHub license

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'),
];

统计信息

  • 总下载量: 9.07k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-23