Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: dereuromark/cakephp-tinyauth

3.2.2

Choose a tag to compare

@dereuromark dereuromark released this 25 Jun 12:35
7f1b689

Fixes

  • Keep wildcard-public controllers public for unknown actions (#173). With a * allow rule, an action that does not exist as a controller method is no longer treated as protected; unauthenticated users now get the MissingActionException (404) instead of a login redirect. Explicit denies still take precedence.
  • Fix isPublic() plugin/prefix scope leak: a plugin-scoped or prefix-scoped allow rule no longer matches a request that has no plugin/prefix.
  • Fix hasRole() type juggling: role lookup compares strictly after string coercion, so 0 no longer matches a non-numeric role string while numeric-string vs int equivalence is preserved.

Note: 3.2.1 was retracted. It was accidentally tagged on the CakePHP 3 (cake3) branch and was not installable on the 3.x (CakePHP 4) line. This 3.2.2 release supersedes it and ships the same fixes built from cake4. See #177.

Full Changelog: 3.2.0...3.2.2

5.3.1

Choose a tag to compare

@dereuromark dereuromark released this 24 Jun 09:42
fa67b40

Fixes

  • Wildcard-public controllers (Controller = * in auth_allow.ini) now stay public for actions that do not exist. Previously an unknown action on a fully public controller redirected unauthenticated users to the login page instead of returning a 404 (MissingActionException). Explicit denies are still honored.

Full Changelog: 5.3.0...5.3.1

5.3.0

Choose a tag to compare

@dereuromark dereuromark released this 25 May 23:23
3311863

Fixes

  • Apply the configured cachePrefix to the ACL/Allow cache keys — two TinyAuth installs sharing a CakePHP cache pool previously collided on the bare acl / allow keys, so multi-tenant or test setups could read another install's permission data. Keys are now namespaced (tiny_auth_acl / tiny_auth_allow by default); existing bare-key caches go cold once and repopulate (#169)
  • Fix route-slot matching swallowing falsy plugin/prefix values — _isPublic / _getAllowRule mixed isset() with !empty(), comparing falsy slots like '0' or an empty string inconsistently between request and rule. Matching now treats null and empty string as the "no plugin / no prefix" sentinel and requires an exact match otherwise (#169)

Improvements

  • Allow cakephp/authentication v4 — the plugin now supports authentication v3 and v4 (#171)

Full Changelog: 5.2.0...5.3.0

5.2.0

Choose a tag to compare

@dereuromark dereuromark released this 04 May 13:04
759147e

Fixes

  • Use plugin-specific i18n domain for translations — strings now live under the tinyauth domain instead of leaking into the host app's default domain (#166)

Improvements

  • Add PHP adapter for ACL and Allow config — PhpAclAdapter / PhpAllowAdapter work alongside the existing INI adapters, with shared AbstractAclAdapter / AbstractAllowAdapter base classes for custom backends (#168)

Full Changelog: 5.1.4...5.2.0

5.1.4

Choose a tag to compare

@dereuromark dereuromark released this 02 May 14:33
919f2d9

Fixes

  • Fix isPublic plugin/prefix scope leak so plugin- or prefix-scoped allow rules no longer match unscoped requests (#165)
  • Fix hasRole() type juggling that allowed loose matches between 0 and non-numeric strings, and rejected non-scalar input (#165)

Full Changelog: 5.1.3...5.1.4

5.1.3

Choose a tag to compare

@dereuromark dereuromark released this 18 Mar 02:53
2cf447c

Improvements

  • Add roleIdColumn config option for UUID-based role systems (#163)

Full Changelog: 5.1.2...5.1.3

5.1.2

Choose a tag to compare

@dereuromark dereuromark released this 07 Feb 09:23
dbc0160

Fixes

  • Fix null array offset deprecation (PHP 8.5+)

Full Changelog: 5.1.1...5.1.2

5.1.1

Choose a tag to compare

@dereuromark dereuromark released this 19 Dec 15:45

Fixes

  • Fix AuthPanel serialization issue with PDO objects

Full Changelog: 5.1.0...5.1.1

5.1.0

Choose a tag to compare

@dereuromark dereuromark released this 26 Nov 14:07

Improvements

Allow grouping of commands now:

tiny_auth:
  tiny_auth add
  tiny_auth sync 

Full Changelog: 5.0.0...5.1.0

5.0.0

Choose a tag to compare

@dereuromark dereuromark released this 04 Nov 03:38

Improvements

Removed all old Cake (v3) legacy code and Auth component.
It now uses only the 2 new plugins and further extends and improves those in usability.

The docs have been simplified.