ublaboo/simple-http-auth

Nette 框架扩展:设置用户、密码和演示者名称以进行安全保护,它们将通过简单的 HTTP 认证进行保护

v2.0.0 2019-08-20 19:44 UTC

This package is auto-updated.

Last update: 2024-09-21 19:57:43 UTC


README

Build Status Latest Stable Version License Total Downloads Gitter

SimpleHttpAuth

1、通过 composer 安装

composer require ublaboo/simple-http-auth

2、在 config.neon 中注册扩展

extensions:
	simpleHttpAuth: Ublaboo\SimpleHttpAuth\DI\SimpleHttpAuthExtension

3、指定需要保护的演示者(如果没有指定演示者名称,则所有演示者都将被保护)。格式 - 模块:模块:演示者

simpleHttpAuth:
	username: admin
	password: rbxpmYsPB6RSlqMIUV8i
	presenters: [Front:Admin] # Secure presenter class App\FrontModule\Presenters\AdminPresenter