https://github.com/cakephp/authentication
Authentication plugin for CakePHP. Can also be used in PSR7 based applications.
https://github.com/cakephp/authentication
authentication cakephp cakephp-plugin middleware php psr7-middleware
Last synced: 4 days ago
JSON representation
Authentication plugin for CakePHP. Can also be used in PSR7 based applications.
- Host: GitHub
- URL: https://github.com/cakephp/authentication
- Owner: cakephp
- License: mit
- Created: 2016-11-29T02:50:33.000Z (over 8 years ago)
- Default Branch: 3.x
- Last Pushed: 2025-03-22T15:00:35.000Z (25 days ago)
- Last Synced: 2025-04-05T19:06:41.995Z (11 days ago)
- Topics: authentication, cakephp, cakephp-plugin, middleware, php, psr7-middleware
- Language: PHP
- Homepage:
- Size: 2.15 MB
- Stars: 116
- Watchers: 30
- Forks: 105
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-cakephp - Authentication plugin - Official CakePHP authentication middleware plugin. (Authentication and Authorization)
README
# CakePHP Authentication

[](https://packagist.org/packages/cakephp/authentication)
[](https://packagist.org/packages/cakephp/authentication/stats)
[](https://coveralls.io/r/cakephp/authentication?branch=master)
[](LICENSE)[PSR7](https://www.php-fig.org/psr/psr-7/) Middleware authentication stack for the CakePHP framework.
Don't know what middleware is? [Check the CakePHP documentation](https://book.cakephp.org/4/en/controllers/middleware.html) and additionally [read this.](https://philsturgeon.uk/php/2016/05/31/why-care-about-php-middleware/)
## Authentication, not Authorization
This plugin intends to provide a framework around authentication and user
identification. Authorization is a [separate
concern](https://en.wikipedia.org/wiki/Separation_of_concerns) that has been
packaged into a separate [authorization plugin](https://github.com/cakephp/authorization).## Installation
You can install this plugin into your CakePHP application using
[composer](https://getcomposer.org):```
php composer.phar require cakephp/authentication
```Load the plugin by adding the following statement in your project's
`src/Application.php`:
```php
public function bootstrap(): void
{
parent::bootstrap();$this->addPlugin('Authentication');
}
```## Documentation
Documentation for this plugin can be found in the [CakePHP Cookbook](https://book.cakephp.org/authentication/3/en/).
## IDE compatibility improvements
For `AuthenticationService::loadIdentifier()` you an find an IdeHelper task in [IdeHelperExtra plugin](https://github.com/dereuromark/cakephp-ide-helper-extra/).