NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1497 most downloaded on Packagist
Authentication plugin for CakePHP
Latest stable
4.2.1
Last release 3 months ago
05 Aug 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 58 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
79 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Bump actions/checkout from 6 to 7 by @dependabot [bot] in #800
Full Changelog: 4.2.0...4.2.1
Full Changelog: https://github.com/cakephp/authentication/compare/4.2.0...4.2.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add AuthenticationComponent::replaceIdentity() by @dereuromark in #788
Full Changelog: 4.1.1...4.2.0
Full Changelog: https://github.com/cakephp/authentication/compare/4.1.1...4.2.0
Update PHPUnit version requirement to include 13.0 by @dereuromark in #790
Full Changelog: 4.1.0...4.1.1
Full Changelog: https://github.com/cakephp/authentication/compare/4.1.0...4.1.1
Added AuthenticationComponent::redirectAfterLogin() helper to make the safe post-login redirect path the obvious one. It resolves the validated local
Added AuthenticationComponent::redirectAfterLogin() helper to make the safe post-login redirect path the obvious one. It resolves the validated local redirect target via the existing getLoginRedirect() logic and falls back to the provided default, returning the controller redirect response directly (#787).
if ($result->isValid()) {
return $this->Authentication->redirectAfterLogin('/dashboard');
}Full Changelog: 4.0.1...4.1.0
Update all.py for display on book by @WideeFr in #771
Full Changelog: 4.0.0...4.0.1
Full Changelog: https://github.com/cakephp/authentication/compare/4.0.0...4.0.1
SessionAuthenticator `identify` option removed - This deprecated option has been removed. Use PrimaryKeySessionAuthenticator if you need session-based…
Identifier configuration format changed - Moved from nested array to flatter structure:
// Before
'identifier' => ['Authentication.Token' => ['tokenField' => 'id', ...]]
// After
'identifier' => ['className' => 'Authentication.Token', 'tokenField' => 'id', ...]
Class renames:
CakeRouterUrlChecker → DefaultUrlCheckerDefaultUrlChecker (framework-agnostic) → GenericUrlCheckerSessionAuthenticator identify option removed - This deprecated option has been removed. Use PrimaryKeySessionAuthenticator if you need session-based authentication without password re-verification.
Identifier parameter now optional in AbstractAuthenticator constructor
Removed deprecated code including loadIdentifier() method
Updated dependency: firebase/php-jwt now requires ^7.0
getIdentifier() methodcakephp/cakephp as dependencyIdentity::get() now supports dot-separated field names for nested data accessIdentityHelper::getIdentity() method for easier identity access in templatesPrimaryKeySessionAuthenticator now has a default TokenIdentifier configuredRector rules available at cakephp/upgrade#370 for automated migration assistance.
Full Changelog: https://github.com/cakephp/authentication/compare/3.3.5...4.0.0
Update link to finder documentation by @PhantomWatson in #804
Full Changelog: 3.3.6...3.3.7
Full Changelog: https://github.com/cakephp/authentication/compare/3.3.6...3.3.7
Fix an open redirect weakness in getLoginRedirect() by @markstory in #796
Full Changelog: 3.3.5...3.3.6
Full Changelog: https://github.com/cakephp/authentication/compare/3.3.5...3.3.6
SessionAuthenticator `identify` option deprecated - This option was ineffective for detecting password changes or remotely invalidating sessions. Use…
identify option deprecated - This option was ineffective for detecting password changes or remotely invalidating sessions. Use PrimaryKeySessionAuthenticator instead if you need to fetch fresh user data from the database on each request. (#763)Full Changelog: https://github.com/cakephp/authentication/compare/3.3.4...3.3.5
Rename Plugin to AuthenticationPlugin by @ADmad in https://github.com/cakephp/authentication/pull/750
Full Changelog: https://github.com/cakephp/authentication/compare/3.3.3...3.3.4
Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/cakephp/authentication/pull/736
Full Changelog: https://github.com/cakephp/authentication/compare/3.3.2...3.3.3
Remove deprecation warning for creating an Authenticator without Identifier by @umer936 in https://github.com/cakephp/authentication/pull/734
Full Changelog: https://github.com/cakephp/authentication/compare/3.3.1...3.3.2
Fix argument type for AuthenticationComponent::setIdentity(). by @ADmad in https://github.com/cakephp/authentication/pull/730
Full Changelog: https://github.com/cakephp/authentication/compare/3.3.0...3.3.1
Deprecate identifier collection approach. by @dereuromark in https://github.com/cakephp/authentication/pull/712
Full Changelog: https://github.com/cakephp/authentication/compare/3.2.5...3.3.0
Fix token auth prefix removal. by @dereuromark in https://github.com/cakephp/authentication/pull/721
Full Changelog: https://github.com/cakephp/authentication/compare/3.2.4...3.2.5
Allow unauthenticatedRedirect as array cake style. by @dereuromark in https://github.com/cakephp/authentication/pull/714
Full Changelog: https://github.com/cakephp/authentication/compare/3.2.3...3.2.4
Cleanup deprecated stuff. by @dereuromark in https://github.com/cakephp/authentication/pull/702
Full Changelog: https://github.com/cakephp/authentication/compare/3.2.2...3.2.3
3.x update stan by @LordSimal in https://github.com/cakephp/authentication/pull/682
Full Changelog: https://github.com/cakephp/authentication/compare/3.2.1...3.2.2
Cleanup release archives by @ADmad in https://github.com/cakephp/authentication/pull/680
Full Changelog: https://github.com/cakephp/authentication/compare/3.2.0...3.2.1
add phpunit 11 support by @LordSimal in https://github.com/cakephp/authentication/pull/672
Full Changelog: https://github.com/cakephp/authentication/compare/3.1.1...3.2.0
Update stan by @LordSimal in https://github.com/cakephp/authentication/pull/671
Full Changelog: https://github.com/cakephp/authentication/compare/3.1.0...3.1.1
Fix deprecations by @markstory in https://github.com/cakephp/authentication/pull/641
Full Changelog: https://github.com/cakephp/authentication/compare/3.0.3...3.1.0
3.x: change composer.json to cake5 stable version by @LordSimal in https://github.com/cakephp/authentication/pull/632
Full Changelog: https://github.com/cakephp/authentication/compare/3.0.2...3.0.3
* Update to stable dependencies. Full Changelog: https://github.com/cakephp/authentication/compare/3.0.0...3.0.2
Full Changelog: https://github.com/cakephp/authentication/compare/3.0.0...3.0.2
Nothing published for this version
First version compatible with CakePHP 5.0
First version compatible with CakePHP 5.0
Full Changelog: https://github.com/cakephp/authentication/compare/2.10.1...3.0.0
Update AuthenticationComponent.php to clear cookie auth when a login doesn't enable cookie auth by @bancer in #802
Full Changelog: 2.11.2...2.11.3
Full Changelog: https://github.com/cakephp/authentication/compare/2.11.2...2.11.3
2.x - Backport #805 by @markstory in #807
Full Changelog: https://github.com/cakephp/authentication/compare/2.11.1...2.11.2
Backport security patches from 3.x and 4.x by @markstory in #799
Full Changelog: 2.11.0...2.11.1
Full Changelog: https://github.com/cakephp/authentication/compare/2.11.0...2.11.1
2.next: fix CakePHP 4.5 deprecations and update stan setup by @LordSimal in https://github.com/cakephp/authentication/pull/610
Full Changelog: https://github.com/cakephp/authentication/compare/2.10.2...2.11.0
Fix deprecations by @markstory in https://github.com/cakephp/authentication/pull/641
Full Changelog: https://github.com/cakephp/authentication/compare/2.10.1...2.10.2
Added link to Users table structure by @yosus in https://github.com/cakephp/authentication/pull/601
Full Changelog: https://github.com/cakephp/authentication/compare/2.10.0...2.10.1
Bump to php-jwt 6.2 and remove temporary/deprecated code by @swiffer in https://github.com/cakephp/authentication/pull/507
AuthenticationComponent identityCheckEvent option by @Erwane in https://github.com/cakephp/authentication/pull/555null value causing a type error in the password identifier. by @ndm2 in https://github.com/cakephp/authentication/pull/542Full Changelog: https://github.com/cakephp/authentication/compare/2.9.0...2.10.0
Support for JSON Web Key Sets by @swiffer in https://github.com/cakephp/authentication/pull/505
Full Changelog: https://github.com/cakephp/authentication/compare/2.8.0...2.9.0
Allow skipping the challenge exception generation for Http Basic/Digest Auth. by @ADmad in https://github.com/cakephp/authentication/pull/498
This release changes the default stored token for Cookie Authenticator. The token is now comprised of hash(username + password-hash + hmac(username + password, salt)). This helps prevent forged tokens from being created in case an application database is compromised. This change will invalidate all existing cookie tokens. If you do not desire that, be sure to set salt => false in your configuration for CookieAuthenticator
Full Changelog: https://github.com/cakephp/authentication/compare/2.7.0...2.8.0
Bump firebase/php-jwt to v5.5, and deprecate algorithms in favour of only using a single algorithm in JwtAuthenticator. by @markstory, @ADmad, @pabloe…
algorithms in favour of only using a single algorithm in JwtAuthenticator. by @markstory, @ADmad, @pabloelcolombiano in https://github.com/cakephp/authentication/pull/500Full Changelog: https://github.com/cakephp/authentication/compare/2.6.2...2.7.0
Fix cakephp 4.3 deprecations by @othercorey in https://github.com/cakephp/authentication/pull/486
Full Changelog: https://github.com/cakephp/authentication/compare/2.6.1...2.6.2
Cleaned up extra parameters passed in tests.
loginUrl mismatch error message.IdentityInterface were being wrapped in a decorator when it wasn't necessary.Update AuthenticationRequiredException to extend HttpException so that proper status code is set. #437
AuthenticationRequiredException to extend HttpException so that proper status code is set. #437IdentityHelper. #436Updated exception base classes to extend HttpException so that status codes continue to work.
The httpOnly option of CookieAuthenticator is deprecated. Use httponly instead.
Cookie::create() to create cookies. This enables the usage of the samesite attribute.httpOnly option of CookieAuthenticator is deprecated. Use httponly instead.expire option of CookieAuthenticator is deprecated. Use expires instead.Improve documentation for CallbackIdentifier.
Improved documentation for JwtAuthenticator.
subjectKey option to JwtAuthenticator. This new option allows you to define the claim/subject key used in your JWT tokens. This option defaults to the previously hardcoded value of subImproved documentation fixing incorrect signatures and broken links.
AuthenticationService::getUnauthenticatedRedirectUrl()LegacyPasswordHasher now supports unsalted hashes if you need to interoperate with older systems.
LegacyPasswordHasher now supports unsalted hashes if you need to interoperate with older systems.Fixed type errors in TokenAuthenticator when requests contained neither the query parameter or header.
Redirect URLs no longer include the base URL as this results in a duplicate base path in the redirect after login.
Improved documentation for Token authenticator.
URL mismatch errors from FormAuthenticator now include the URL base path.
When setting the identity with setIdentity() persisted identity data will be cleared first. This prevents stale data from being used later in the requ
setIdentity() persisted identity data will be cleared first. This prevents stale data from being used later in the request.Nothing published for this version
Redirect URLs no longer include the base URL as this results in a duplicate base path in the redirect after login.
URL mismatch errors from FormAuthenticator now include the URL base path.
getIdentificationProvider() has been added to get the successful identification provider if available.
AuthenticationComponent::getLoginRedirect() was added to make getting the post-login redirect URL simpler.
AuthenticationComponent::getLoginRedirect() was added to make getting the post-login redirect URL simpler.Fix logout not taking effect when using SessionAuthenticator.
Setting the unauthenticatedRedirect, queryParam and identityAttribute options on AuthenticationMiddleware is deprecated. These options should now be s…
unauthenticatedRedirect, queryParam and identityAttribute options on AuthenticationMiddleware is deprecated. These options should now be set on the service.unauthenticatedRedirect, and queryParam options can now be configured on the AuthenticationService. This makes it easier to use Router to generate the redirect URL.To fix a potential session fixation problem in the SessionAuthenticator without impacting SecurityComponent identity information is now persisted to the session after the controller action is complete. If your application accesses the currently logged in identity through the session directly you will get information from the previous request. You should consider updating your code to use $request->getAttribute('identity') instead.
The session id rotation changes added in 1.1.3 have been reverted. They broke compatibility with SecurityComponent in a way that could not be fixed wi
SecurityComponent in a way that could not be fixed without other changes.Fixed session being rotated on each request. Now the session is only rotated when the session storage moves from empty to not empty.
Removed protocol and host from redirect query string parameter.
One column per quarter.