jmleroux/zf-simple-auth

此包已被 弃用 且不再维护。未建议替代包。
此包的最新版本(v1.1)没有可用的许可证信息。

简约认证模块

v1.1 2016-12-08 21:55 UTC

This package is not auto-updated.

Last update: 2020-01-24 15:22:43 UTC


README

[Master Branch Build Status] (http://travis-ci.org/jmleroux/zf-simple-auth)

一个简约的认证模块。

当我在需要使用 ZendSkeletonApplication 进行认证模式开发测试时,我会使用这个模块。

不适用于生产环境,但在开发中很有用。

它提供了一个表单,可以使用基本的 ZendSkeletonApplication 登录和登出。

最初用于测试 ZfcRbac,使用简单的角色提供身份。

安装

  • 在您的 composer.json 中添加依赖
  • 在 application.config.php 中添加 'ZfSimpleAuth'
  • 将 zf-simple-auth.local.php.dist 复制到 config/autoload/zf-simple-auth.local.php
  • 在 config/autoload/zf-simple-auth.local.php 中配置用户