http身份验证:PSR-15中间件,用于实现基本和摘要Http身份验证

时间:2021-02-17 04:56:35
【文件属性】:
文件名称:http身份验证:PSR-15中间件,用于实现基本和摘要Http身份验证
文件大小:10KB
文件格式:ZIP
更新时间:2021-02-17 04:56:35
http middleware psr-15 basic-authentication digest-authentication 中间件/ http身份验证 实现中间件。 包含以下组件: 要求 PHP> = 7.2 安装 该软件包可以通过Composer作为安装和自动加载。 composer require middlewares/http-authentication 基本认证 是最简单的技术。 您必须为Array或ArrayAccess提供所有可用用户的用户名和密码。 键是用户名,值是密码。 Dispatcher :: run ([ new Middlewares \ BasicAuthentication ([ 'username1' => 'password1' , 'username2' => 'password2' ]) ]); (可选)您可以提供Psr\Http\Message\ResponseFactoryInterface作为第二个参数,该参
【文件预览】:
http-authentication-master
----.github()
--------workflows()
----src()
--------HttpAuthentication.php(1KB)
--------DigestAuthentication.php(3KB)
--------BasicAuthentication.php(2KB)
----CONTRIBUTING.md(3KB)
----LICENSE(1KB)
----README.md(4KB)
----CHANGELOG.md(2KB)
----composer.json(1KB)

网友评论