Nette\Web\User Authentication test
isAuthenticated?
bool(FALSE)
getIdentity
NULL
authenticate without handler
InvalidStateException: Service 'Nette\Security\IAuthenticator' not found.
authenticate as jane
AuthenticationException: Unknown user #1
authenticate as john
AuthenticationException: Password not match #2
authenticate as john#2
[onAuthenticated]
isAuthenticated?
bool(TRUE)
getIdentity
object(Identity) (3) {
"name" private => string(8) "John Doe"
"roles" private => array(1) {
0 => string(5) "admin"
}
"data" private => array(0)
}
signing out...
[onSignedOut 1]
isAuthenticated?
bool(FALSE)
getIdentity
object(Identity) (3) {
"name" private => string(8) "John Doe"
"roles" private => array(1) {
0 => string(5) "admin"
}
"data" private => array(0)
}
signing out and clearing identity...
isAuthenticated?
bool(FALSE)
getIdentity
NULL
authenticate as john#2?
[onAuthenticated]
isAuthenticated?
bool(TRUE)
setNamespace(...)
isAuthenticated?
bool(FALSE)
getIdentity
NULL