cakephp / authentication
CakePHP的认证插件
3.1.0
2024-07-28 23:56 UTC
Requires
- cakephp/http: ^5.0
- laminas/laminas-diactoros: ^3.0
- psr/http-client: ^1.0
- psr/http-message: ^1.1 || ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- cakephp/cakephp: ^5.0
- cakephp/cakephp-codesniffer: ^5.0
- firebase/php-jwt: ^6.2
- phpunit/phpunit: ^10.1.0
Suggests
- ext-ldap: Make sure this php extension is installed and enabled on your system if you want to use the built-in LDAP adapter for "LdapIdentifier".
- cakephp/cakephp: Install full core to use "CookieAuthenticator".
- cakephp/orm: To use "OrmResolver" (Not needed separately if using full CakePHP framework).
- cakephp/utility: Provides CakePHP security methods. Required for the JWT adapter and Legacy password hasher.
- firebase/php-jwt: If you want to use the JWT adapter add this dependency
- 3.x-dev
- 3.1.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.10.2
- 2.10.1
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.x-dev
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 1.0.0-rc9
- 1.0.0-rc8
- 1.0.0-rc7
- 1.0.0-rc6
- 1.0.0-rc5
- 1.0.0-rc4
- 1.0.0-rc3
- 1.0.0-rc2
- 1.0.0-rc1
- 1.0.0-beta4
- 1.0.0-beta3
- 1.0.0-beta2
- 1.0.0-beta1
- 1.0.0-alpha1
- dev-2.next
- dev-2.next-merge
- dev-3.next
- dev-3.x-dic-port-from-2.x
- dev-1.next
This package is auto-updated.
Last update: 2024-09-13 16:23:44 UTC
README
PSR7 中间件认证栈,用于 CakePHP 框架。
不知道什么是中间件?请查看 CakePHP 文档,并且阅读这篇文章。
认证而非授权
此插件旨在提供一个围绕认证和用户身份识别的框架。授权是一个独立关注点,已封装到单独的授权插件中。
安装
您可以使用composer将此插件安装到您的 CakePHP 应用程序中
php composer.phar require cakephp/authentication
通过在项目的 src/Application.php
文件中添加以下语句来加载插件:
public function bootstrap(): void { parent::bootstrap(); $this->addPlugin('Authentication'); }
文档
有关此插件的文档可以在CakePHP 烹饪书中找到。
IDE 兼容性改进
对于 AuthenticationService::loadIdentifier()
,您可以在IdeHelperExtra 插件中找到一个 IdeHelper 任务。