fawno/ip-authentication
最新稳定版本:0.0.3
Composer 安装命令:
composer require fawno/ip-authentication
包简介
IP Authenticator for CakePHP 4.3
README 文档
README
IP Authenticator for CakePHP 4 Authentication plugin
This plugin provides an IP Authenticator for CakePHP 4 authentication plugin.
Table of contents
Requirements
- PHP >= 7.2.0
- CakePHP >= 4.3.0
- CakePHP Authentication >= 2.0
Installation
Install this plugin into your application using composer:
- Add
fawno/ip-authenticationpackage to your project:composer require fawno/ip-authentication
- Load the IPAuthenticator in your
Application.php:use IPAuthenticator\Authenticator\IPAuthenticator;
- Load the IPAuthenticator in your Authentication Service (
Application.php):// Load the authenticators. Session should be first. $service->loadAuthenticator('Authentication.Session'); $service->loadAuthenticator(IPAuthenticator::class, [ 'auth' => [ '127.0.0.1' => [ 'username' => 'localhost', 'displayname' => 'Local Host', 'dn' => [], 'memberof' => [ 'Group' => 'Group', ], ], ], ]);
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-19