darkin1 / digest-auth
Lumen 的 Digest Authentication RFC 2617
v0.1.3
2016-12-22 13:13 UTC
Requires
- php: >=5.4
This package is not auto-updated.
Last update: 2024-09-23 13:13:30 UTC
README
Digest Authentication RFC 2617 for Lumen 5.x
安装
使用 composer 安装
composer require darkin1/digest-auth
并在 config/app.php
中添加服务提供者
Darkin1\DigestAuth\DigestAuthServiceProvider::class,
配置
在 app/config/digest-auth.php
中更改默认设置
<?php return [ 'realm' => env('DIGEST_REALM', '****'), 'user' => env('DIGEST_USER', '****'), 'password' => env('DIGEST_PASS', '****'), 'driver' => env('DIGEST_DRIVER', 'env'), ];