CakePHP Authentication
April 6, 2026 ยท View on GitHub
PSR7 Middleware authentication stack for the CakePHP framework.
Don't know what middleware is? Check the CakePHP documentation and additionally read this.
Authentication, not Authorization
This plugin intends to provide a framework around authentication and user identification. Authorization is a separate concern that has been packaged into a separate authorization plugin.
Installation
You can install this plugin into your CakePHP application using composer:
composer require cakephp/authentication
Then load the plugin:
bin/cake plugin load Authentication
Documentation
Documentation for this plugin can be found in the CakePHP Cookbook.
IDE compatibility improvements
There are IdeHelper tasks in IdeHelperExtra plugin to provide auto-complete:
AuthenticationService::loadAuthenticator()