NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3519 most downloaded on Packagist
Authentication and Authorization for CodeIgniter 4
Latest stable
v1.4.1
Last release 3 months ago
18 Aug 2026
Release timing varies
gaps range from 4 weeks to 13 months
Nearly every release is documented
notes for 9 of 9 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
17 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
fix: PwnedValidator cannot reach the HIBP API by @michalsn in https://github.com/codeigniter4/shield/pull/1372
Full Changelog: https://github.com/codeigniter4/shield/compare/v1.4.0...v1.4.1
fix: require login actions for magic links by @memleakd in https://github.com/codeigniter4/shield/pull/1329
loginView() by @tomatlscomm in https://github.com/codeigniter4/shield/pull/1306only option for authentication routes configuration by @dimtrovich in https://github.com/codeigniter4/shield/pull/1323Full Changelog: https://github.com/codeigniter4/shield/compare/v1.3.0...v1.4.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
If you are using the JWT authenticator with an HMAC algorithm (HS256, HS384, HS512), note that the underlying firebase/php-jwt library was upgraded to
If you are using the JWT authenticator with an HMAC algorithm (HS256, HS384, HS512), note that the underlying firebase/php-jwt library was upgraded to v7, which now enforces minimum key lengths at runtime. If your secret is too short, every JWT encode and decode call will throw: LogicException: Cannot encode/decode JWT: Provided key is too short.
How to fix it? Generate a new key:
php -r 'echo base64_encode(random_bytes(32));' # HS256
php -r 'echo base64_encode(random_bytes(48));' # HS384
php -r 'echo base64_encode(random_bytes(64));' # HS512
Then update your configuration:
// app/Config/AuthJWT.php
'secret' => '<output of the command above>',
[!WARNING] Existing tokens signed with the old (short) secret will become invalid after updating. Users will need to re-authenticate to obtain new tokens.
withPermissions() for users without permissions by @michalsn in https://github.com/codeigniter4/shield/pull/1290Full Changelog: https://github.com/codeigniter4/shield/compare/v1.2.0...v1.3.0
fix: escape string to prevent XSS attack by @warcooft in https://github.com/codeigniter4/shield/pull/1148
lang('Auth.invalidEmail') by @kenjis in https://github.com/codeigniter4/shield/pull/1159chain filter does not update last_active by @kenjis in https://github.com/codeigniter4/shield/pull/1160AuthToken::$authenticatorHeader config by @alxjzx100 in https://github.com/codeigniter4/shield/pull/1169emailer() function by @FrancoisChaumont in https://github.com/codeigniter4/shield/pull/1174shield:user create does not assign a default group by @kenjis in https://github.com/codeigniter4/shield/pull/1162shield:user addgroup/removegroup by @kenjis in https://github.com/codeigniter4/shield/pull/1176invalidEmail by @kenjis in https://github.com/codeigniter4/shield/pull/1175invalidEmail to return user email. by @warcooft in https://github.com/codeigniter4/shield/pull/1145shield:user create by @kenjis in https://github.com/codeigniter4/shield/pull/1164UserModel::createNewUser() and RegisterController uses it by @kenjis in https://github.com/codeigniter4/shield/pull/1196invalidEmail by @kenjis in https://github.com/codeigniter4/shield/pull/1158Full Changelog: https://github.com/codeigniter4/shield/compare/v1.1.0...v1.2.0
<!-- Release notes generated using configuration in .github/release.yml at develop -->
<!-- Release notes generated using configuration in .github/release.yml at develop -->
Config\Autoload::$helpers with multiple lines by @kenjis in https://github.com/codeigniter4/shield/pull/1110private to protected by @michalsn in https://github.com/codeigniter4/shield/pull/1113Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.3...v1.1.0
<!-- Release notes generated using configuration in .github/release.yml at develop -->
<!-- Release notes generated using configuration in .github/release.yml at develop -->
Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.2...v1.0.3
<!-- Release notes generated using configuration in .github/release.yml at develop -->
<!-- Release notes generated using configuration in .github/release.yml at develop -->
JWT::loggedIn() does not remove Bearer prefix by @kenjis in https://github.com/codeigniter4/shield/pull/1040'Y-m-d H:i:s' by @kenjis in https://github.com/codeigniter4/shield/pull/1027Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.1...v1.0.2
<!-- Release notes generated using configuration in .github/release.yml at develop -->
<!-- Release notes generated using configuration in .github/release.yml at develop -->
Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.0...v1.0.1
This has breaking changes. See Upgrade Guide.
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.0-beta.8...v1.0.0
This has breaking changes. See Upgrade Guide.
url_is() by @kenjis in https://github.com/codeigniter4/shield/pull/915errorPasswordPwned by @datamweb in https://github.com/codeigniter4/shield/pull/954/> with > for input tags by @kenjis in https://github.com/codeigniter4/shield/pull/894$hashCost to 12 by @datamweb in https://github.com/codeigniter4/shield/pull/916Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.0-beta.7...v1.0.0-beta.8
And it has breaking changes. See Upgrade Guide.
$allowMagicLinkLogins is false by @datamweb in https://github.com/codeigniter4/shield/pull/778$validFields by @kenjis in https://github.com/codeigniter4/shield/pull/829strong_password from shield:user validation rules by @kenjis in https://github.com/codeigniter4/shield/pull/853revokeAccessTokenBySecret() by @WaaaghNL in https://github.com/codeigniter4/shield/pull/858shield:setup does Email setup by @kenjis in https://github.com/codeigniter4/shield/pull/876getMaxLengthRule() method name by @bgeneto in https://github.com/codeigniter4/shield/pull/728Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.0-beta.6...v1.0.0-beta.7
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.0-beta.5...v1.0.0-beta.6
<!-- Release notes generated using configuration in .github/release.yml at master -->
<!-- Release notes generated using configuration in .github/release.yml at master -->
parent::initialize() to customized UserModel for access the table name by @datamweb in https://github.com/codeigniter4/shield/pull/670errorPasswordTooLongBytes for fa by @datamweb in https://github.com/codeigniter4/shield/pull/663Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.0-beta.4...v1.0.0-beta.5
Password Shucking Vulnerability
username in $validFields by default by @kenjis in https://github.com/codeigniter4/shield/pull/498shield:setup for correct run in CI4.3.0+ by @datamweb in https://github.com/codeigniter4/shield/pull/594shield:model command by @paulbalandan in https://github.com/codeigniter4/shield/pull/558::class constants by @kenjis in https://github.com/codeigniter4/shield/pull/540Auth::class by @datamweb in https://github.com/codeigniter4/shield/pull/588namespace from language files by @datamweb in https://github.com/codeigniter4/shield/pull/619getIdentity() for improve action Email2FA by @datamweb in https://github.com/codeigniter4/shield/pull/625Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.0-beta.3...v1.0.0-beta.4
Numerous bug fixes and enhancements.
Numerous bug fixes and enhancements.
updated_at by @pjsde in https://github.com/codeigniter4/shield/pull/392last_active by @datamweb in https://github.com/codeigniter4/shield/pull/404authenticatorHeader by @datamweb in https://github.com/codeigniter4/shield/pull/442magic-link by @datamweb in https://github.com/codeigniter4/shield/pull/351shield:setup for Security Setup by @datamweb in https://github.com/codeigniter4/shield/pull/384Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.0-beta.2...v1.0.0-beta.3
Includes security fixes; please update any `beta 1` instances immediately.
Numerous bug fixes and enhancements.
Includes security fixes; please update any beta 1 instances immediately.
Requirements:
testtestDisplayLoggedIn to testDisplayLoggedIn by @datamweb in https://github.com/codeigniter4/shield/pull/208loggedIn() and called /login page by @datamweb in https://github.com/codeigniter4/shield/pull/215loggedIn() and called /login/magic-link page by @datamweb in https://github.com/codeigniter4/shield/pull/223use is missing in the replaced source files by @kenjis in https://github.com/codeigniter4/shield/pull/220Session::logout() does not work by @kenjis in https://github.com/codeigniter4/shield/pull/231syncGroups() by @kenjis in https://github.com/codeigniter4/shield/pull/278syncPermissions() by @datamweb in https://github.com/codeigniter4/shield/pull/309getGroups(),getPermissions(),hasPermission() by @datamweb in https://github.com/codeigniter4/shield/pull/311startUpAction() in LoginController() by @datamweb in https://github.com/codeigniter4/shield/pull/316permissions from allowedFields UserModel by @datamweb in https://github.com/codeigniter4/shield/pull/325force_pass_reset by @kenjis in https://github.com/codeigniter4/shield/pull/337createIdentity() method by @sammyskills in https://github.com/codeigniter4/shield/pull/346Full Changelog: https://github.com/codeigniter4/shield/compare/v1.0.0-beta...v1.0.0-beta.2
This is the first release of an official authentication/authorization package for CodeIgniter ever.
This is the first release of an official authentication/authorization package for CodeIgniter ever.
One column per quarter.