Skip to content

Releases: cakephp/authentication

CakePHP Authentication 4.1.0

22 Apr 11:31
ed41893

Choose a tag to compare

Improvements

  • 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

CakePHP Authentication 4.0.1

27 Feb 07:53
5c6afb1

Choose a tag to compare

What's Changed

Full Changelog: 4.0.0...4.0.1

CakePHP Authentication 4.0.0

09 Feb 13:45

Choose a tag to compare

Breaking Changes

  • 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:

    • CakeRouterUrlCheckerDefaultUrlChecker
    • DefaultUrlChecker (framework-agnostic) → GenericUrlChecker
  • SessionAuthenticator 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

Improvements

  • Lazy identifier initialization via getIdentifier() method
  • Cleaner authenticator/identifier relationship
  • Redirect validation feature (backported from 3.x)
  • Plugin now properly declares cakephp/cakephp as dependency
  • Identity::get() now supports dot-separated field names for nested data access
  • New IdentityHelper::getIdentity() method for easier identity access in templates
  • PrimaryKeySessionAuthenticator now has a default TokenIdentifier configured

Migration

Rector rules available at cakephp/upgrade#370 for automated migration assistance.

Full Changelog: 3.3.5...4.0.0

CakePHP Authentication 3.3.5

09 Feb 13:43
9a12edc

Choose a tag to compare

Deprecations

  • SessionAuthenticator 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)

Fixes

  • Fixed PHP deprecation errors (#759)
  • Improved deprecation notice wording for authenticators without identifiers

Full Changelog: 3.3.4...3.3.5

CakePHP Authentication 3.3.4

29 Nov 15:48
8575216

Choose a tag to compare

What's Changed

  • Rename Plugin to AuthenticationPlugin by @ADmad in #750
  • Add optional redirect loop protection to AuthenticationService by @dereuromark in #752
  • Fix loadIdentifier called after loadAuthenticator losing resolver config by @dereuromark in #755 (Fix regression)

Full Changelog: 3.3.3...3.3.4

CakePHP Authentication 3.3.3

06 Nov 02:10
86b48f2

Choose a tag to compare

What's Changed

New Contributors

  • @txj made their first contribution in #738

Full Changelog: 3.3.2...3.3.3

CakePHP Authentication 3.3.2

30 Jul 20:39
76e8592

Choose a tag to compare

What's Changed

  • Remove deprecation warning for creating an Authenticator without Identifier by @umer936 in #734

Full Changelog: 3.3.1...3.3.2

CakePHP Authentication 3.3.1

27 Jul 19:59
4955b28

Choose a tag to compare

What's Changed

  • Fix argument type for AuthenticationComponent::setIdentity(). by @ADmad in #730
  • Fix error message generation when using multiple array login URLs. by @ADmad in #731

Full Changelog: 3.3.0...3.3.1

CakePHP Authentication 3.3.0

18 Jul 15:31

Choose a tag to compare

What's Changed

Full Changelog: 3.2.5...3.3.0

CakePHP Authentication 3.2.5

15 May 16:15
445aef3

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 3.2.4...3.2.5