Upgrading
Upgrading to Version 3.1
- the
Nette\Security\Authenticatorinterface differs fromIAuthenticatorin the signature of theauthenticate(string $user, string $password)method - the
Nette\Security\UserStorageinterface differs fromNette\Security\IUserStorage - the class
Nette\Security\Identitywas renamed toNette\Security\SimpleIdentityso that in the distant future the interfaceNette\Security\IIdentitycan be renamed toIdentity - the interface
Nette\Security\UserStorage, which decides where the information about the logged-in user is kept, is brand new and differs from the originalNette\Security\IUserStorage; it is whatUser::getStorage()returns. Implementations storing the data in a session or in a cookie are available. - an authenticator can implement the interface
Nette\Security\IdentityHandlerand thus influence what happens to the identity when it is saved to and restored from the storage, for example to refresh the roles
How to use IdentityHandler and how to build a website with logging in that needs no sessions at all is shown in
the article News in Nette Security 3.1.
Upgrading to Version 3.0
- the
Nette\Security\Passwordsclass is now used as an object, i.e. the methods are no longer static