NewYour coding agent can read the release notes before it upgrades.Set up the MCP server β
Packagist
Packagist, #1855 most downloaded on Packagist
π Nette Security: authentication and authorization. Login and user identity, roles, ACL with resources and assertions, and safe password hashing.
Latest stable
v3.2.7
Last release 1 months ago
22 Oct 2026
Release timing varies
gaps range from 2 weeks to 13 months
Nearly every release is documented
notes for 33 of 35 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
35 releases Β· first in 2014
Drag across the ruler to compare, or tap a release to open it.
The authenticator defined by security: users: in NEON is now autowired to services that require Nette\Security\Authenticator
security: users: in NEON is now autowired to services that require Nette\Security\AuthenticatorHashed passwords in `SimpleAuthenticator` β stored passwords may now be crypt-format hashes (anything password_hash() produces) and can be freely mixe
SimpleAuthenticator β stored passwords may now be crypt-format hashes (anything password_hash() produces) and can be freely mixed with plain-text ones. The format is detected automatically, so hashes just work in the security: users: config section with no extra option. A hash whose algorithm the PHP build doesn't know fails closed instead of being compared as plain text, and plain-text comparison is timing-safe.Passwords::bcrypt() and Passwords::argon2id() β name the algorithm instead of juggling PASSWORD_* constants and options arrays: Passwords::bcrypt(12) or Passwords::argon2id(memoryCost: 65536). Omitted parameters keep PHP's defaults, and argon2id() fails with a clear exception on builds without Argon2 support.rules section lets you define permissions declaratively next to your roles and resources:security:
rules:
allow:
- [guest, article, view]
- [registered, comment, [add, edit]]
- [admin]
deny:
- [banned, comment, add]
Each rule is [role(s), resource(s), privilege(s)]; an omitted or null item means "all", and a bare string grants or revokes everything for that role. Malformed rules are rejected at config time, not at runtime.logout() no longer touches the storage when there is nothing to change, so logging out a guest doesn't needlessly regenerate the session ID or overwrite the logout reason. A stored authentication vetoed by wakeupIdentity() (a revoked token, say) is still properly cleared.Permission::isAllowed() now saves and restores the queried role and resource, making it re-entrant and exception-safe β an assertion callback can call isAllowed() again without corrupting the results of the outer query.Your coding agent can read these notes before it upgrades. Set up the MCP server β
fixed compatibility with nette/http 3.4
Guest identity β an IdentityHandler authenticator may now implement getGuestIdentity(): ?IIdentity to hand anonymous visitors a real identity. When pr
Guest identity β an IdentityHandler authenticator may now implement getGuestIdentity(): ?IIdentity to hand anonymous visitors a real identity. When present, getIdentity(), getId() and getRoles() transparently fall back to it, so guests carry their own roles and data instead of just the $guestRole string. The guest identity is resolved on read only and never written to storage.
$persistIdentity β the new User::$persistIdentity property lets you decide what happens to the identity after logout or expiration. It stays available for personalization by default; flip it to false and getIdentity()/getId() return null once the user is no longer logged in. Configurable straight from the security.authentication DI section.
SessionStorage no longer refreshes the sliding expiration timestamp once the session has already expired β an expired identity stays expired instead of being silently kept alive for another round
Adopted nette/phpstan-rules and made static analysis a mandatory part of the build, then resolved the errors it surfaced
Improved phpDoc types and descriptions across the codebase
Nothing published for this version
optimized global function calls
SecurityExtension: password can be dynamic #74
$user => $username #73removed deprecated IUserStorage (BC break)
used #[\SensitiveParameter] to mark sensitive parameters
composer: allows nette/utils 4.0
CookieStorage: getState returns the previously set ID #67
SessionStorage::setExpiration() does not overwrite data in the sessionverifyPassword()SessionStorage: used new sessionSection API to not start the session unless needed
User::setExpiration() second argument accept also bool $clearIdentity
User::setExpiration() second argument accept also bool $clearIdentityRevert "SecurityExtension: 'roles' & 'resources' are deprecated"
logout() steps reorderinInRole() works with object RoleFor the details you can have a look at the diff.
SecurityExtension: added section 'authentication'
SecurityExtension: 'roles' & 'resources' are deprecated
User: added method refreshStorage() to clear identity cache.
refreshStorage() to clear identity cache. (#46) (#50)SecurityExtension: detects Tracy by presence of service @Tracy\Bar nette/di#245
@Tracy\Bar nette/di#245hash(): Password can not be empty. (#47)For the details you can have a look at the diff.
SecurityExtensions, SimpleAuthenticator: add option for users data
For the details you can have a look at the diff.
User: identity and authenticated state are cached, UserStorage is not called repeatedly
For the details you can have a look at the diff.
User: deprecated hasAuthenticator() & hasAuthorizator()
getAuthorizatorIfExists()hasAuthenticator() & hasAuthorizator()For the details you can have a look at the diff.
User: added hasAuthenticator() & hasAuthorizator(), deprecated $throw in getAuthenticator() & getAuthorizator()
SecurityExtension: added service 'passwords'
For the details you can have a look at the diff.
Permission: used native callback invocation
setFactory() instead of misused setClass()For the details you can have a look at the diff.
coding style: fixes, lowercase true/false/null
For the details you can have a look at the diff.
UserStorage: removed BROWSER_CLOSED expiration reason nette/http#112
For the details you can have a look at the diff.
uses Nette\SmartObject & StaticClass
hash() removed option 'salt' (BC break)For the details you can have a look at the diff.
For the details you can have a look at the diff.
For the details you can have a look at the diff.
travis: migrating to container-based infrastructure
For the details you can have a look at the diff.
Nothing published for this version
travis: migrating to container-based infrastructure
For the details you can have a look at the diff.
Identity: fixed conversion of big ints nette/nette#1520
For the details you can have a look at the diff.
UserPanel: is rendered only when headers are not sent Closes #7
For the details you can have a look at the diff.
Passwords: removed useless PASSWORD_MAX_LENGTH [Closes #1]
For the details you can have a look at the diff.
The first standalone release. For more information see readme.md.
The first standalone release. For more information see readme.md.
One column per quarter.